swapfile is not created even though dynamic_pager is loaded
Hi guys,
Recently I've faced the fact that I've had only 37M left on my SSD (which is the only disc in my system). I'm not sure if that's somehow connected with the thing I discovered several days later: the swap file is not created. That results in missing graphics in some places of a system. Lots of images in browser are just blank, some icons in dock won't show, some applications will crash and so on.
I've read the whole google about the problem and found tons of advice how to disable your swap and only few of them on how to enable it. So basically all of them just tend to execute the following line:
sudo launchctl load -wF /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
So running sudo launchctl list | grep page gives me the following output:
- 0 com.apple.dynamic_pager
which I assume as a proof that dynamic pager service is loaded. I've viewed the contents of the .plist file and executed the following line manually:
sudo /sbin/dynamic_pager -f /private/var/vm/swapfile
which resulted in exit code=0, but still no swap file is located at /private/var/vm/
I dunno what to think. I was told that the system kernel will create the swap file whenever it needs one and this 'service' only tells kernel where to create this file. I tried to change the swap file name, still no luck -- the file is just not created.
PS: yes, I tried to enable/disable swap service. yes, I rebooted after every enable/disable prcedure.
PPS: Macbook Pro 13 mid-2014/256Gb/8Gb/Core-i5
MacBook Pro with Retina display, OS X Yosemite (10.10.4)