My VM is currently at 22 .56 GB and i also have 2 GB RAM. So i'd say yours was normal.
Wow, that's a lot. I still kinda think this is excessive. What does a widget need 600MB in VM for?
This isn't anything to worry about. The memory allocation isn't real. There's no 300+MB void of memory (real or swap) on your comp that is causing any kind of problems.
Based on what I'm seeing from the output of top on my Mac, the widgets all seem to be using roughly the same amount of virtual memory. One 'DashboardClient' process is running per widget. It is requesting 300MB of memory when it starts, but doesn't actually use that entire 300MB. It turns out it only uses between 5-20MB (on my system anyway) per widget. I get that 5-20MB number from the RPRVT (Resident PRiVaTe memory) field in top, or the "real memory" field in Activity Monitor.
Mac OS X does "sparse" memory allocation (similar to sparse files) where a process can request a large amount of memory. The OS will respond to the process that this is done. The OS has only done this "virtually"... that is the OS has set up all the pointers for this memory, but it hasn't actually allocated this memory, either in RAM or in swap. The OS will only allocate the real memory blocks when the process tries to write to the memory locations, and even then it will only allocate 1 page (4096 bytes) at a time.
In a nutshell if I write a program that requests 20GB of memory but only uses 1MB of memory, then that 1MB is all that will ever be really allocated, even though the program is told by the OS that all 20GB was allocated.
Use vm_stat (from the terminal) to see some more realistic virtual memory numbers. The important field is 'pages allocated'.
Wow, that's a lot. I still kinda think this is excessive. What does a widget need 600MB in VM for?
In a nutshell if I write a program that requests 20GB of memory but only uses 1MB of memory, then that 1MB is all that will ever be really allocated, even though the program is told by the OS that all 20GB was allocated.
I think the problem is that MacOS X just displays enough information to scare people, when there isn't any reason to be scared. Same with the inactive vs. free memory (I bought 2GB of RAM and only 5MB is free. What is wrong? Nothing! ). I think it would be a good idea for Apple to show things in a way that is more useful for everybody, especially for people who are not computer wizards.
hmmm...my VM's are at 7Gb and 11Gb atm
i've also noticed both macs have been slower recently (maybe because HDD's are nearly full)...would wiping the hard drive and reinstaling help?
hmmm...my VM's are at 7Gb and 11Gb atm
i've also noticed both macs have been slower recently (maybe because HDD's are nearly full)...would wiping the hard drive and reinstaling help?
repair disk permissions - how?DoFoT9 said:i would first:
xUKHCx said:how much space do you have left on them. The rule of thumb is that you should have 10% free, and less than this you'd be experiencing slowdowns etc.
repair disk permissions - how?
why wouldn't they make the Activity Monitor application reflect the actual amount of memory being used? It seems like that would be much more helpful.
Also, let's say an application is allotted 500MB of VM, and that this application has a bug in it that causes all of it's VM potential to actually be used. What happens when it comes time for it to write it's 501st MB to the disk? does it just kill the program or allot more VM?
It does... the 'Real Memory' field for each process shows how much actual real memory is set aside. And the 'Used: ###' field at the bottom will show how much of your total RAM is being used.
What it doesn't show (and what you're probably really asking about) is how much swap memory is being used. I guess that's a usability decision made by Apple. Swap isn't something the average user cares about (or even really understands). Apple hides swap in other aspects by managing swap space itself, dynamically growing it as needed without user intervention. So it seems reasonable to me they decided not to make it visible here.
You're confusing virtual memory with swap. Virtual memory exists in RAM as well. Say your comp has 750MB free in RAM right now, and the application you mention requests and fills up 500MB. That entire 500MB will stay in RAM, there's no reason for the OS to swap it out.
Now if said application tried to write past the 500MB ("write it's 501st MB"), the kernel would send it a memory access violation signal (SIGSEGV) and the process would be killed unless it were able to trap that error. Either way, the write wouldn't succeed.
I think the real question you were asking was "say a process requested 600MB of memory, but the system only had 500MB free in RAM. What would happen when the process wrote to the first page past 500MB?" The OS would start swapping pages to disk. Note: it won't necessarily swap pages from this process. The kernel will swap pages from any process if it (the kernel) has determined said page hasn't been used in a reasonable amount of time (which can be tuned).
1.get a program like disk warrior if you really want to - i may, will it be easier than reinstalling?
2.upgrade ram. - i've been thinking of doing that...atm both have 1Gb, and for AU$440 (about) i can have both at 2Gb
3.Desktop - 20% free
Laptop - 9% free
oh dear
thanks guys...i'll let you know how it all goes
Having just upgraded to Leopard I was curious. Check it out, at one point i saw it at 105 GBs
View attachment 88697
thats pretty crazy. how much free space u got on ur HD's????
mines sitting at 11.71gb after upgrading. seems to have reduced the VM seeing as though i used to use around 20gb.
btw i love leopard. so amazing