OS X 10.5 tmp folder/partition full?

I just deleted a weekly email backup which is about 130GB into trash. I noticed there is an error message on the email server (OS X 10.5) saying connect(/var/imap/socket/lmtp) failed: connection refused.

Could this be due to the tmp or swap partition being full?

How do I check if the swap partition is full?

I know this is OS X but posting to Linux as the problem may be similiar in Linux.

Who is Participating?
ygouthamConnect With a Mentor Commented:
you can run the terminal from applications -> utilities

run the command

df -h

that should give you a clear breakup (remove the -h flag if you want to view the report in bytes)
artradisAuthor Commented:
hi, the server HDD is 1TB and has abt 450GB free disk space. When I copy a 92GB file, it shows a malloc error. So I am suspecting the swap partition or virtual memory may be full. This is a 6GB ram server and it only runs email and IMAP with about 100 connectons.

How do I check virtual memory settings and health? Thanks.
ygouthamConnect With a Mentor Commented:
you can run a command again from terminal


this shows the total memory in the system and the swap memory used would be there on the top left hand side somewhere
Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

artradisAuthor Commented:
The error will only come up when I copy the 92GB archive file. If I copy using GUI (drag and drop) it just hangs. When I use command line "cp -p mailbackup*.zip /volumes/backup" it will give the error message:

*** malloc[246]: Deallocation of a pointer not malloced: 0xffffffff; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug

I am hesitant to repeat the experiment in mid week, maybe on weekends.

but is there a malloc setting I can use to increase the Virtual Memory etc? Thanks.
ygouthamConnect With a Mentor Commented:
it seems to be more an issue of a sector on the hard disk being corrupt.  probably a good thing would be to run


or the equivalent.  me no expert on os X, but that is how you do it in linux.  mac os X is mostly debian spruced up a bit.
ygouthamConnect With a Mentor Commented:
file copy is more a function of network or IO than being virtual memory as nothing hits the memory on a copy / paste function call.  it is only a series of hard disk blocks getting assigned to a file (in case the file is big) or a standard chunk getting assigned to a file (when the file is small).

so more a case of the journal / super block which handles the hard disk having duplicate node numbers or some such thing which is blocking the file copy
ygouthamConnect With a Mentor Commented:
the case can also be that the source file is corrupt than the target space.  have you verified that the 92 gig file is integral???  probably that is the partition which needs to be fsck-ed than the target space
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.