Is there a simple way to compact the /var/vm/swapfile0 etc, short of rebooting?
They can get quite large if things start swap'ing, and my laptop doesn't have much free disc space..
|
Is there a simple way to compact the They can get quite large if things start swap'ing, and my laptop doesn't have much free disc space..
| |||||
feedback
|
|
As far as I know, the only way to force the /var/vm/swapfile* files to compact is (as you say) to reboot. I believe that more recent versions of OS X will compact these files automatically if enough memory is free and the system is idle. You could try closing some applications and waiting. | |||
|
feedback
|
|
Not really. Swap files are important system files and should not be modified by the user. For more clarification, check out this article:
| |||
feedback
|
|
Mac OS X does remove swap files that it has dynamically created, if it no longer needs them. I always find exiting/restarting Safari (or Firefox, if that's your browser of choice) tends to help... | |||
|
feedback
|
|
Mac OS X really comes under pressure when you have less and less disk space, which can cause issues. I would suggest backing some data up and removing it. Also check out the Caches in your Library folder to make sure your programs are cleaning up after themselves. | |||
|
feedback
|