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 > Why is my swap file 3 GIGS?!

Why is my swap file 3 GIGS?!
Thread Tools
Professional Poster
Join Date: Mar 2002
Location: Smallish town in Ohio
Status: Offline
Reply With Quote
Aug 4, 2005, 05:15 PM
 
Why is my swap space SO HUGE? and why do I have so many pageins and pageouts??

My uptimes is only 1 day and 21 hours.



I think this is really slowing down my 867Mhz 12" PB.
     
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Aug 4, 2005, 05:28 PM
 
Wow, that is a lot of page outs. You must of run something with major memory use. But page files don't really slow down your computer (the paging that creates the files might, but that's momentary). Also, are you running Tiger? It seems a bit smarter when it comes to VM use. But as long as you have the HD space, swap files aren't a problem.
     
Professional Poster
Join Date: Mar 2002
Location: Smallish town in Ohio
Status: Offline
Reply With Quote
Aug 4, 2005, 06:14 PM
 
yea I'm running Tiger.

I don't know, it's weird. I don't do anything memory intensive, just use Safari, Mail, iChat, MS Word, and that sort of thing. No Photoshop, no games, nothing.
     
Mac Elite
Join Date: Jan 2001
Location: Kansas City, Mo
Status: Offline
Reply With Quote
Aug 4, 2005, 06:41 PM
 
What do you use to show these stats?
     
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Aug 4, 2005, 08:26 PM
 
MenuMeters
     
Mac Elite
Join Date: Jan 2000
Location: Columbus, OH
Status: Offline
Reply With Quote
Aug 4, 2005, 10:15 PM
 
My swap file is 5.45 gb.
whoop-de-doo.

Normal.
HyperNova Software, LLC
     
Mac Enthusiast
Join Date: Sep 2004
Status: Offline
Reply With Quote
Aug 4, 2005, 11:02 PM
 
I'm running on a 333 PB. I do all sorts of memory hungry things like photoshop, and my swap files at the moment total just over 500 meg. Sounds like something's not quite right. Have you checked Activity Monitor to see if something is hogging memory?
     
Mac Elite
Join Date: May 2004
Location: on 650 cc's
Status: Offline
Reply With Quote
Aug 5, 2005, 02:56 AM
 
Here's mine :



I've never seen GB swap files... and I can push this machine...

stuffing feathers up your b*tt doesn't make you a chicken.
     
JLL
Professional Poster
Join Date: Apr 1999
Location: Copenhagen, Denmark
Status: Offline
Reply With Quote
Aug 5, 2005, 03:35 AM
 
Remember that they double in size every time a new is made after the first couple of files.
JLL

- My opinions may have changed, but not the fact that I am right.
     
Mac Elite
Join Date: Nov 2001
Status: Offline
Reply With Quote
Aug 5, 2005, 04:41 AM
 
Originally Posted by d.fine
Here's mine :



I've never seen GB swap files... and I can push this machine...
You've got 2GB of RAM, i'd hope you don't have too many swap files. The OP only has 640Mb, I'd say 3 Gigs is maybe slightly excessive, I was usually around 1.5-2Gig with my iBook with 384Mb of RAM under panther, haven't checked with Tiger.
     
Junior Member
Join Date: Dec 2003
Location: sheung wan, hong kong, p.r.c.
Status: Offline
Reply With Quote
Aug 5, 2005, 06:18 AM
 
I have similar problems. After say, 10 days uptime I reach around 11Gb of VM. Pageins and -outs are usually around 1-3 million. The thing is that I usually just have around 3Gb free space on my HD and when the VM is going up, it leaves me with virtually nothing left.

I cannot recall having this problem on Panther.

I'm on a 1,5GHz 12" PB, 768Mb RAM, 60Gb HD, Tiger 10.4.2 (fresh install, no archive) and usually running Safari (though lots of tabs), Mail, Address Book, Adium, iTunes, MS Word 2004, Preview (with a couple of not-that-large PDFs).

As the situation is now, I have to log out and in every 5 days to keep the VM in check. Doing that usually gets me half a gig of free space back on my HD.

Any suggestions varmly welcome, this is a bit annoying.
     
Addicted to MacNN
Join Date: Jan 2001
Location: The Sar Chasm
Status: Offline
Reply With Quote
Aug 5, 2005, 06:52 AM
 
Keep as few Dashboard widgets loaded as possible, and also keep an eye on them in Activity Monitor for memory leaks. A few of the 3rd party ones have been reported to absorb gobs of RAM. On average, they appear to take up 20-25 mb of RAM for each one you have out on our Dashboard.

When a true genius appears in the world you may know him by this sign, that the dunces are all in confederacy against him. -- Jonathan Swift.
     
Posting Junkie
Join Date: Mar 2004
Location: MacNN database error. Please refresh your browser.
Status: Offline
Reply With Quote
Aug 5, 2005, 06:54 AM
 
Run some cron jobs.

This is a computer-generated message and needs no signature.
     
Dedicated MacNNer
Join Date: Nov 2004
Location: Stockholm, Sweden
Status: Offline
Reply With Quote
Aug 5, 2005, 08:22 AM
 
Stop looking.
     
JKT
Professional Poster
Join Date: Jan 2002
Location: London, UK
Status: Offline
Reply With Quote
Aug 5, 2005, 08:48 AM
 
Originally Posted by ursus
I have similar problems. After say, 10 days uptime I reach around 11Gb of VM. Pageins and -outs are usually around 1-3 million. The thing is that I usually just have around 3Gb free space on my HD and when the VM is going up, it leaves me with virtually nothing left.

I cannot recall having this problem on Panther.

I'm on a 1,5GHz 12" PB, 768Mb RAM, 60Gb HD, Tiger 10.4.2 (fresh install, no archive) and usually running Safari (though lots of tabs), Mail, Address Book, Adium, iTunes, MS Word 2004, Preview (with a couple of not-that-large PDFs).

As the situation is now, I have to log out and in every 5 days to keep the VM in check. Doing that usually gets me half a gig of free space back on my HD.

Any suggestions varmly welcome, this is a bit annoying.
With that little space left on your hard drive, you seriously need to think about removing some files to make more room available.
     
Senior User
Join Date: Oct 2004
Location: Portugal
Status: Offline
Reply With Quote
Aug 5, 2005, 10:35 AM
 
Originally Posted by Phil Sherry
Stop looking.
that's a good advice!

I posted something similar some time ago, and because it doesn't really affect me (no real lag), I just stopped looking.
     
Junior Member
Join Date: Dec 2003
Location: sheung wan, hong kong, p.r.c.
Status: Offline
Reply With Quote
Aug 5, 2005, 11:01 AM
 
Thanks for the replies!

chris v: My widgets take up on average 200Mb of VM. I keep 16 of them running and they're mostly the ones that came with Tiger.

And yes, I should probably free some more space on my HD. Guess I'll have to go buy that 1Tb drive one of these days

Randman: I'm not too familiar with cron jobs, could you give me a hint on what I should do?
     
Mac Elite
Join Date: May 2004
Location: on 650 cc's
Status: Offline
Reply With Quote
Aug 5, 2005, 11:51 AM
 
The cron jobs are the maintenance scripts your machine is programmed to run at 2 in the morning or so. Which if it is turned of or sleeping it can't do. It is recommended that you run these maintenance scripts on a regular basis, like once or more a week.

There are apps out there that can do this for you if you don't want to leave your machine on all night, like f.e. MacJanitor, or Cocktail, and Onyx. Which one you use is just a matter of preference I guess. I like MacJanitor and Cocktail, yet use MacJanitor the most.

These scripts will clean out caches, rebuild databases, etc, just regular maintenance, but it should be done regularly.

stuffing feathers up your b*tt doesn't make you a chicken.
     
Mac Elite
Join Date: Aug 2001
Location: Capitol City
Status: Offline
Reply With Quote
Aug 5, 2005, 11:57 AM
 
Having a large swap file shouldn't bother performance. It could just be that you haven't restarted your computer for a while. It should release though, if your drive is getting full. The thing you want to watch is how many pages you're actually doing. That could slow things down. I only have 640mb ram, and its starting to become bothersom, after getting used to a work machine with 2 GB.
     
cgc
Mac Elite
Join Date: Mar 2003
Location: Virginia
Status: Offline
Reply With Quote
Aug 5, 2005, 12:15 PM
 
I'm sitting at 6GB of VMM swap files yet I have 1GB of physical mem. Can I flush the swap file?
     
Addicted to MacNN
Join Date: Jan 2003
Location: ~/
Status: Offline
Reply With Quote
Aug 5, 2005, 05:16 PM
 
Originally Posted by cgc
I'm sitting at 6GB of VMM swap files yet I have 1GB of physical mem. Can I flush the swap file?
Reboot.

     
Mac Enthusiast
Join Date: Aug 2003
Location: Canada, Planet Earth
Status: Offline
Reply With Quote
Aug 5, 2005, 07:17 PM
 
I just installed MenuMeters ... it doesn't look like that ...

How can I check these type of statistics ???
Tiger 10.4.8
     
Mac Elite
Join Date: May 2004
Location: on 650 cc's
Status: Offline
Reply With Quote
Aug 6, 2005, 03:22 AM
 
Originally Posted by bergy
I just installed MenuMeters ... it doesn't look like that ...

How can I check these type of statistics ???
You should be able to see these stats with MenuMeters. Enable the 'Display Menu Memory Meter' in the System Prefs, and you will get small numbers in the bar, usually green and red. When you click on these numbers you get a drop-down window where all these stats are displayed, like the screenshots posted in the thread.

edit : here's what it should look like :


stuffing feathers up your b*tt doesn't make you a chicken.
     
Mac Elite
Join Date: Jan 2001
Location: Kansas City, Mo
Status: Offline
Reply With Quote
Aug 6, 2005, 01:12 PM
 
Thanks dfine
     
Mac Elite
Join Date: Oct 2003
Location: New York City, NY
Status: Offline
Reply With Quote
Aug 6, 2005, 08:37 PM
 
Ouch.


i think i should restart my computer.
iamwhor3hay
     
Mac Enthusiast
Join Date: Mar 2005
Status: Offline
Reply With Quote
Aug 6, 2005, 09:09 PM
 
Originally Posted by MrForgetable
Ouch.


i think i should restart my computer.
...and buy more RAM.
"Mac Daddy" - 15" MBP, 2.2 GHz Core i7, 8GB, 750GB HDD
"Mommy Mac" - 13" Macbook, 2.4GHz C2D, 2GB, 160GB
"Baby Mac" - 15" PB, 1.5GHz, 1.5GB, 80GB
64GB iPod Touch (4th gen)
     
Mac Elite
Join Date: Oct 2003
Location: New York City, NY
Status: Offline
Reply With Quote
Aug 6, 2005, 09:19 PM
 
Originally Posted by spiff72
...and buy more RAM.
once people will give me a gig of RAM for just the cost of shipping, i'll take it
iamwhor3hay
     
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Aug 6, 2005, 10:40 PM
 
I recently put a 1GB stick in my iBook and it's like a dream. They used to be more than $300, but I got mine for closer to $130 at Crucial.
     
Mac Elite
Join Date: Oct 2003
Location: New York City, NY
Status: Offline
Reply With Quote
Aug 6, 2005, 11:13 PM
 
Originally Posted by wataru
I recently put a 1GB stick in my iBook and it's like a dream. They used to be more than $300, but I got mine for closer to $130 at Crucial.
i have a bunch of free RAM still even with only 512mb. i was running safari, itunes, word, adium, preview, photoshop at the time. maybe not intense editing in photoshop, but i was editing some photographs and writing a short essay. that's why i'm still hesitant to drop that much money for something i may not need (but nice to have). i'll get it when it drops in price some more
iamwhor3hay
     
Dedicated MacNNer
Join Date: Apr 1999
Location: Perth, Australia
Status: Offline
Reply With Quote
Aug 7, 2005, 12:54 AM
 
use chacheoutX and delete your swap file and you'll regain your space, it will build up again bt perhaps not to that size.
     
Mac Enthusiast
Join Date: Oct 2004
Status: Offline
Reply With Quote
Aug 8, 2005, 06:53 PM
 
The reason that you get big swap vm files is that some apps are not written very well to cope with being open over long periods of time. Two of the worst offenders are the Finder and Safari. I have seen both use up to 512MB vm space each after just a couple of days. By quitting applications, OS X usually frees up this space pretty quick.

You can also run the daily script by doing sudo /etc/daily in the terminal if OS X doesn't free the space by itself.

Another thing I noticed is that Tiger uses nearly twice the vm that Panther did - no doubt why the minimum Ram went from 128 to 256. Under Panther, the vm of the kernel was about 500MB and is now usually 900MB in Tiger.

I leave all my widgets off too and drag them into the window when needed. They used 1GB vm space. Java apps suck vm so badly. Azureus uses about 1GB alone.

What's a little strange just now is that because my internal drive is failing, I'm using an external firewire drive and my vm is sitting at 128MB in /private/var/vm. That is despite the activity monitor reporting the vm size as 4.87GB.

I also have much lower pageouts on this drive than usual.

Still, activity monitor is very handy for seeing what apps are using too much space. It's handy to be able to view all processes in case something is running that shouldn't be.
     
Mac Enthusiast
Join Date: Jan 2002
Status: Offline
Reply With Quote
Aug 10, 2005, 09:33 AM
 
As I was saying in a thread that was locked for god knows what reason (well, I have a theory), I don't understand why the system prefers creating huge swap files in my box when I still have more than 1.5GB RAM free out of my 2GB total sitting there. Menu Meters reports 380,000+ pageouts and a swap space of more than 1GB in just one day of uptime.

Why it relies so much on VM when there's all this physical RAM available?

As a result Exposè gets choppy during After Effects renders and when switching applications I have to wait out all this freaking memory swapping and disk thrashing. I don't get it.
     
Forum Regular
Join Date: Aug 2005
Status: Offline
Reply With Quote
Aug 10, 2005, 11:59 AM
 
Originally Posted by mAxximo
As I was saying in a thread that was locked for god knows what reason (well, I have a theory), I don't understand why the system prefers creating huge swap files in my box when I still have more than 1.5GB RAM free out of my 2GB total sitting there. Menu Meters reports 380,000+ pageouts and a swap space of more than 1GB in just one day of uptime.

Why it relies so much on VM when there's all this physical RAM available?

As a result Exposè gets choppy during After Effects renders and when switching applications I have to wait out all this freaking memory swapping and disk thrashing. I don't get it.
I am mystified by some of these postings. Each of the computers I work with (iMac G5, 1.5 Gig RAM 10.4.2; iMac G3, 1 Gig RAM 10.2.8; Powerbook G4, 1 Gig RAM 10.3.9) shows just a swapfile (called "swapfile0") of size 64 Megabytes. Sometimes these machines run for days or weeks, using different browsers (safari, firefox, netscape, even IE -- my wife insists on IE, sorry), MS-Office, Adobe software etc. I don't see these slowdowns or memory or paging issues, maybe I'm just not stressing the machines like others do ... One thing I Do NOT have are "haxies" ...
     
Mac Elite
Join Date: May 2004
Location: on 650 cc's
Status: Offline
Reply With Quote
Aug 10, 2005, 01:17 PM
 
Maybe that's because you're quiting the apps when you don't need them, while other people just close the windows and leave the app running in the background. Could explain the difference.

stuffing feathers up your b*tt doesn't make you a chicken.
     
Forum Regular
Join Date: Feb 2005
Status: Offline
Reply With Quote
Aug 13, 2005, 06:06 PM
 
Originally Posted by osxrules

Another thing I noticed is that Tiger uses nearly twice the vm that Panther did - no doubt why the minimum Ram went from 128 to 256. Under Panther, the vm of the kernel was about 500MB and is now usually 900MB in Tiger.
I've noticed this too. For some reason Tiger is a memory hog when it comes to file io.
     
Forum Regular
Join Date: Jul 2005
Status: Offline
Reply With Quote
Aug 13, 2005, 10:18 PM
 



uptime 1day 20hours
after i installed my extra gig of ram
1.5Ghz 15" Alluminum Powerbook, 1.5Gb RAM, 64mb VRAM
iPod 4g 40GB
Dell 2405FPW
     
Forum Regular
Join Date: Jul 2005
Status: Offline
Reply With Quote
Aug 13, 2005, 10:18 PM
 
*edit*
double post
1.5Ghz 15" Alluminum Powerbook, 1.5Gb RAM, 64mb VRAM
iPod 4g 40GB
Dell 2405FPW
     
Professional Poster
Join Date: Oct 2000
Location: Toronto, ON
Status: Offline
Reply With Quote
Aug 14, 2005, 12:07 PM
 
Originally Posted by jock
use chacheoutX and delete your swap file and you'll regain your space, it will build up again bt perhaps not to that size.
Dont' bother, just restart, since deleting the swap files forces you to restart anyway.
The Lord said 'Peter, I can see your house from here.'
     
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Aug 14, 2005, 01:20 PM
 
On Tiger, I usually have 2-4GB of swap files. I have 1GB of RAM, am running the server version, and I usually have a fair amount of applications open. Besides that, I know how to use server and therefore have most of the features running ( i.e. DHCP server, firewall, software update, open directory, web proxy, etc...). Under 10.3 server, I generally had 1-2GB of swap files.

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Fresh-Faced Recruit
Join Date: Mar 2004
Location: Iowa
Status: Offline
Reply With Quote
Aug 15, 2005, 08:51 PM
 

Yeah, I reboot every few days or so, it just gives me a real clean feeling.
     
   
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 07:58 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