Tell me more ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I've got a hard disk of 120GB (20GB free space). I'm a developer in XCode and sometimes I get the "low disk space error"-message that I can't even save my coded files before cleaning some of the space.
I don't know why this happens because without performing anything I'm losing about 19GB of space. This lost space regains if I restart the mac. I asked around with my friends, and they don't get this kind of behavior, so it seems I'm the only one.

I've tried MACKeeper Utility to clear unused things but it's only a temporary solution!
Does any of you have an idea what to do?

share|improve this question

1 Answer

up vote 1 down vote accepted

The issue is probably that the space is being taken up by swap files and possibly a hibernate sleep image. To see this do an ls -l /var/vm These files are deleted on a reboot and start increasing as you use more memory and Xcode takes a lot of memory.

You need to reduce the space used by the rest of the system. apps and data. Basically 120GB is too small unless you only use it for development and not any music or other media files. You can save a bit of disc space by removing unused applications and clearing out other languages (see other questions here) but getting a bigger or external hard disk is probably a better use of your time.

To see where the space goes see the applications in this question or from the command line du.

share|improve this answer
Spot on, this is almost certainly caused by swapping. I'll point out that one of the few improvements in Mountain Lion over Lion is that the dynamic pager has apparently been fixed to not generate such huge swap files. So if the OP is running Lion, an upgrade to Mountain Lion might not be a bad idea. – pmjordan Nov 12 '12 at 10:23
@pmjordan - can you provide a source for that information – Mark Nov 19 '12 at 17:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.