Mac OS X with swap turned off uses 6 GB of space in a few hours of heavy use I have few GBs (5,38 GB at the moment) of free space on my hard disk (MacBook Pro 2010, 10.7.5). Few hours after I turn on/reboot my computer, the free space slowly goes down to zero and the system hangs. I've found out that these 2 programs cause this problem: xCode, Google Chrome (both programs are memory-consuming I believe), although I think the problem is related to OS itself.

I've found similar questions but they all seem to be related to vanishing some of the disk space, where in my case I slowly loose all of the disk space.

What I've tried so far:


Using OmniSweeper to clean my disk
Disabling Mac OS X Paging/Swap as described here
Deleting sleep image


Right now, the only solution for this problem is to reboot the system (then it has all these GBs back and I can work for few hours). When I close Google Chrome and wait for few minutes, the system frees some (no more than 600 MBs) of disk space.

What can cause this problem? What software can I use to investigate it?
First, if you want to free up some more space, I used xSlimmer.  It delocalizes AND gets rid of the "Universal" code that isn't used by Intel processors.  This makes all the Apps smaller.  Depending on the number of Apps you have installed you may only see another couple Gigs freed up.

Chrome is caching websites to your disk.  That's part of what it does to "speed up" page viewing.  Most people don't spend all day going to new websites.  They go to websites they are familiar with.  So Chrome (and other web browsers) cache to your hard drive.  Since material is pulled from the local disk, it "speeds up" the page view.

Quite honestly, this is not a "problem" (per se).  This is expected behavior.  You need to either remove unused programs, remove (or compress) unnecessary data files, or increase the size of your HD.  There's really not another option.  Programs may use hard drive space for other functions (auto saving is an example).

It's actually not a great idea to turn off your swap.  Now there are some exceptions to this, I have 16 GB of RAM and didn't Swap once in 30 days.  I have years of experience and decided to shut off my Swap temporarily.  That was a month ago.  No problems yet.

I'm not trying to sound condescending, you may know more about Swap files than I do (you may have invented them).  I'm just saying that usually this is not a good idea.  And if your system really only (yes, only) has 4GB of memory, you are going to cause yourself out of memory problems, or software crashes.  I know because my Mac Mini swaps all the time using 4GB.