Changing dynamic_pager settings under SL not working
Instead of a collection of ever-larger 64M, 128M, 256M, etc. files, I typically change the dynamic_pager settings to make very large swap files in the hopes that I will need just one. (And this one file will be created at first-boot and I will not have to wait for the BeachBall while swap files are allocated/deleted at random points while I am trying to work.)
Historically, I simply add the argument "-S 1834100000" to create one ~1.8G swap file; that is usually all I need forever, especially with my 4GB MacBook. (The change is made in the com.apple.dynamic_pager.plist text file in /System/Library/LaunchDaemons.)
Under SnowLeopard, the file format changed for com.apple.dynamic_pager.plist, so you must use the Property List Editor to modify the file. (Really you have to make a copy, edit that, move the new one into place -- be sure to keep the original!)
Unfortunately, the dynamic_pager fails to work properly with with only the -S argument.
So I added high/low watermark settings of about ~100M and ~2G (-H 100000000 -L 2000000000), but this too seems to fail. The initial swapfile0 gets created and seems to work for some time, but later (perhaps after sleep and wakeup??) I start getting errors like this every 10 seconds as the dynamic_pager fails to start:
dynamic_pager: cannot create paging file /private/var/vm/swapfile0
Trial and error is just not yielding the answer I desire: how can one reliably change the settings for the dynamic_pager??
MacBook, Mac OS X (10.6)