View Full Version : Swap File
03-29-2004, 02:07 PM
Does OSX automatically partition a swap file? My hard drive got down to about 100mb of free space, and I was having LOTS of problems. I when I checked partitions from the UNIX command line, there was no mention of a swap partition. I'm thinking the problems were coming from programs trying to use virtual memory, but there was none left to use.
03-29-2004, 02:45 PM
Swap files are generated and stored in /var/vm/ . That would be the root of your boot partition. If you want them to be on another partition, you have to do that yourself via the command line or using a 3rd party application.
03-29-2004, 02:50 PM
Here's the partition table. I don't see any mounted on /var/
Will this table even show the swap partition?
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/disk0s5 20003060 19662432 140600 99% /
devfs 100 100 0 100% /dev
fdesc 1 1 0 100% /dev
<volfs> 512 512 0 100% /.vol
/dev/disk1s4 120612352 14196960 106415392 11% /Volumes/Backup FireWire Drive
automount -fstab  0 0 0 100% /Network/Servers
automount -static  0 0 0 100% /automount
03-29-2004, 03:19 PM
As I said in my last post, there is no "swap partition" unless you created one yourself. By default, all swap files are stored in /var/vm, /var is part of the root (boot) partition.
ls -laF /var/vm
I should note also, if you reboot your computer, the swap files will be removed and you should regain your missing disk space. If you're still short, you should try something like OmniDiskSweeper to help find what is sucking up your disk space.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.