Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

What is taking up so much space on my HD?

My server is set up for ONLY mail and webmail. There is no other activity on it. Yet I have an 80GB hard drive that is almost full (less than 4GB left). When I added up the Quota Used in my Server Admin, I only get about 2-3GB worth of space used. How do I find out where the rest of my hard drive space went to?

2 x 2 GHz Dual-Core Intel Xeon Xserve, Mac OS X (10.4.8), 4 GB 667 MHz DDR2 FB-DIMM

Posted on Feb 18, 2008 5:54 AM

Reply
19 replies

Feb 19, 2008 2:08 PM in response to Simeon Miller1

Virtual memory is implemented using the available physical memory and backing disk storage, and some fakery.

What memory is actively being written or read is resident in physical memory, and what is not active is often paged out and onto disk. When the application needs to touch any memory data that is currently resident in the disk storage, the operating system pages the disk data into physical memory, and continues the processing. As the system runs, the contents of physical memory is also transfered (back) out (paged out) to disk, to make room.

The more virtual memory required -- whether more applications running, bigger applications, applications with memory leaks, or otherwise -- means you need more physical memory and (for the seemingly inevitable overflow) more backing disk storage.

And the swapfiles can be the disk files that contain what data doesn't fit into the available physical memory.

A reboot should clear these files out within the Mac OS X memory management processing, but -- when you load the box back up -- they'll be back. These files should go away if system load drops (sufficiently precipitously); that the files will also disappear if virtual memory requirements drops. (My system load seems to always go the other way; toward increased load.)

Mar 3, 2008 9:04 AM in response to Simeon Miller1

145 days is NOT a long time between reboots (at least the world of Linux, I come from). 4GB ram just for a mail server. That should be plenty. Are you running imap on this machine? I've recently starting using OS X Server 10.5.2 10-client version (in the lab still) and I'm loosing 45GB of disk space in a matter of days - lost is still not explained or identified. I found a similar post to os x server mailing list which seems to point to cyrus IMAP. Hopefully more light will be shed on this problem.

Mar 6, 2008 2:36 PM in response to ziondotcom

You might already have done this, but if not... Do ls or find (eg: +sudo find / -size n -print+), and try to locate where your large files are, or (based on dates) where you are stacking files up. Certainly suspicions are goodness, but I'd gather a little evidence, too.

45 gigabytes of disk consumed over a few days is a moderate leak, and should be visible somewhere. I'd wonder about a run-away look, monstrous incoming spam, or (as you suspect) a bug somewhere. Or maybe SUS is piling up the updates? (+find /usr/share/swupd -ls+)

Consider starting a new thread here, as this might or might not be related to the base thread, too. Leaks can be common, but there can be many triggers.

What is taking up so much space on my HD?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.