Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Can I delete my swapfiles?

Can I delete my swapfiles?
Thread Tools
Junior Member
Join Date: Feb 2001
Status: Offline
Reply With Quote
Feb 27, 2003, 06:34 PM
 
I've pretty happy with my uptime thus far, but my swapfiles have gotten out of control in the process. I have 24 swapfiles at 80MB each!

I don't have another HD to use for the swapfiles, so that suggestion is out. Is it possible for me to just delete the files?

This machine has 768MB RAM, so I didn't think I would be using that much VM.
     
Mac Enthusiast
Join Date: Jan 2002
Location: Trondhjem, Norway
Status: Offline
Reply With Quote
Feb 27, 2003, 06:57 PM
 
I think it can be pretty dangerous to delete the swapfiles. There are utilities (Cache Out X) that do this, but they recommend rebooting immediately.

It's better to find out what program(s) are causing this. How many apps are open, and what type of work are they doing? Try quitting them one by one. The dynamic_pager should begin reducing the number of swapfiles. Also, log out and back in. That should leave you with one or two.

You can also open the Terminal, and enter the 'top' command to get a view of what apps are running. There are some memory usage indicators there too.

BTW, I have 384MB RAM, and usually have three swapfiles at most. But some disk images that launch automatically and begin installing, seem to increase the number of swapfiles way too much. Apple's Safari .dmg is one. If this happens, I log out.
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Feb 27, 2003, 07:02 PM
 
are you logging out/in? i know this doesn't clear them all, but it cures some things

is uptime such a big deal, though? if a mac is acting weird on me, and it's been up more than about 7-10 days (for example), i'll just reboot the frigger. no questions asked.

however, i wouldn't start deleting swap files. nope.
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Mac Elite
Join Date: Jan 2001
Location: Saint-Jean-sur-Richelieu, Québec, Canada
Status: Offline
Reply With Quote
Feb 27, 2003, 07:23 PM
 
Originally posted by philzilla:
are you logging out/in? i know this doesn't clear them all, but it cures some things

is uptime such a big deal, though? if a mac is acting weird on me, and it's been up more than about 7-10 days (for example), i'll just reboot the frigger. no questions asked.

however, i wouldn't start deleting swap files. nope.
ChacheOut deletes the swap files and tells you to reboot? I hope they're not asking for that.. because the OS does it by itself!

If you take a look at the ini scripts of the OS, you'll notice that the $swapdir is emptied at boot..
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Feb 27, 2003, 09:26 PM
 
From the look of it, he doesn't want to reboot. Uptime concerns and all that.

Deleting swapfiles is extremely dangerous. I suggest you not do it. The problem is, you have no way of telling which ones are still in use, and which might be safe to delete (or, indeed, if any of them are safe to delete).

Have you tried MacJanitor?
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 05:45 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2