zed wrote:bayswater wrote:...all of a sudden, over a few seconds, the drive filled up with swap files...
Where did you locate these swap files?
I am interested in this phenomenon because I used to have an issue with Tiger on my G5 where certain applications would cause my system drive to fill up and the only way I could get my disk space back was to restart the computer. Not sure if the issue was with swap files or not, but I could never find the offending files and I would be interested in knowing where to look if that ever happens again.
There are hidden system related folders at the root directory of your startup drive, and the swap files are there. An easy way to locate them is with the app Grandperspective. It will load a drive, folder, whatever, and show you a graphical map of the contents. The largest items you see are likely to be swap files and sleep files. If you "mouse over" them, the exact location is provided.
To see the hidden files, and delete them in the finder you can use the commands below. But be careful fooling around with this stuff. I've never had a problem deleting a swap file, and then immediately restarting, but I don't really know what risks there might be.
BTW, looking at the logs, I suspect DivX for Mac is the culprit in my case. A host of error messages about swap files occurred immediately after I tried to update this app. It did not indicate that it is SL compatible, but was more recent than the version I had.
------
Open Terminal and copy/paste:
defaults write com.apple.Finder AppleShowAllFiles TRUE; killall Finder
This allows all hidden files to be visible in Finder. You can delete them using the normal GUI way, then copy/paste:
defaults write com.apple.Finder AppleShowAllFiles FALSE; killall Finder
This will get you back to normal.