run-away swap memory
Since a recent upgrade, this Mac-mini running OS/X Snow Leopard runs out of disk space after running for several days. A reboot frees up some 30 GB of space. I tracked down the problem to virtual memory swap files stored under /private/var/vm. After a reboot, these files start out small then grow slowly over several days until they consume all available space and the OS begins to freeze up.
The only processes typically running on this machine are Google Chrome (Web Browser), Thunderbird (E-Mail) and Finder. If either Chrome or Thunderbird were causing the problem, then I would expect the virtual memory (swap files) to be free'ed up after the processes were shut down. But with only Finder running, the virtual memory swap space continues to grow.
Here is a list of the swap files currently on the system with only Finder, Activity Monitor and Terminal running. The machine was restarted yesterday.
ls -l /private/var/vm
total 23068672
-rw------- 1 root wheel 67108864 29 Nov 16:21 swapfile0
-rw------- 1 root wheel 67108864 29 Nov 17:20 swapfile1
-rw------- 1 root wheel 1073741824 29 Nov 17:18 swapfile10
-rw------- 1 root wheel 1073741824 29 Nov 17:18 swapfile11
-rw------- 1 root wheel 1073741824 29 Nov 17:18 swapfile12
-rw------- 1 root wheel 1073741824 29 Nov 17:18 swapfile13
-rw------- 1 root wheel 1073741824 29 Nov 17:18 swapfile14
-rw------- 1 root wheel 134217728 29 Nov 17:18 swapfile2
-rw------- 1 root wheel 268435456 29 Nov 17:20 swapfile3
-rw------- 1 root wheel 536870912 29 Nov 17:20 swapfile4
-rw------- 1 root wheel 1073741824 29 Nov 17:20 swapfile5
-rw------- 1 root wheel 1073741824 29 Nov 17:20 swapfile6
-rw------- 1 root wheel 1073741824 29 Nov 17:20 swapfile7
-rw------- 1 root wheel 1073741824 29 Nov 17:18 swapfile8
-rw------- 1 root wheel 1073741824 29 Nov 17:18 swapfile9
As you can see, there is more than 10 GB of swap space being reserved and it never gets released.
Activity monitor seems to think that a lot less memory is being used, only 1.26 GB. On the same screen, the VM size at 125 GB does not make sense to me since the hard drive is only 80 GB.
Can anyone shed some light on why swap space would just grow out of control like this? It may be directly related to the most recent upgrades of OS/X since I am not aware of it happening prior to the latest upgrades.
Thanks,
Chris.
Mac mini, Mac OS X (10.6.8)