virtual memory - does it slow my system down?

So I have a Mac Pro, quad core xeon with 12 GB of RAM.


I have noticed that when I watch videos, usually from YouTube but elsewhere also, the video is very choppy and the overally computer performance becomes laggy. I thought it was Flash, so I deleted flash and switched my youtube preferences to HTML 5. No change.


So I bust out activity monitor, and it doesn't seem to be a CPU issue, but I note that the VM size is 200-400 GB. That seems excessive. I've about 80 GB available free space on my startup drive; I can move some stuff to another drive to create more free space if that's the issue. But is that much VM normal in 10.7? It seems like a lot.

Mac Pro, Mac OS X (10.7.1)

Posted on Jun 11, 2012 5:44 PM

Reply
13 replies

Jun 11, 2012 6:26 PM in response to Liam Yore

That didn't "fix" anything. There has to be something wrong for something to get "fixed." Wait a few more hours and you'll likely see the same thing. That's because you really don't understand what those numbers mean - nothing to the user. There is nothing to fix. Memory usage of all kinds will drop after you reboot any computer.

Jun 11, 2012 5:52 PM in response to Liam Yore

200 to 400 GB of Virtual memory is just promises. Only a problem if it all comes due at once.


Use this Activity Monitor setup to look around.


Using Activity Monitor to read System Memory and determine how much RAM is being used


If you have less than 1/6 pie of green, you may be getting into trouble. If you have a non-trivial amount of PageOuts, you are in trouble.

Jun 11, 2012 6:18 PM in response to Liam Yore

Virtual in that scenerio is not real page out VM, it is "address space" and 140GB is very normal. When you boot using 64-bit kernel mode, guess what? those figures are higher.


Go To Folder /Var and take a look in VM and count how much actual page files there are.


If it was "real" your drive would crash but OS X would warn your first.


Disk drive space: boot drives: keep 35% or more free. That means yes it is good to not have anything but the OS and apps and mini home library.


For a 900GB drive that does mean 300GB free - you don't want slow long disk I/O seeks to find and write files and cause the disk to "thrash" about. And why SSD which have gotten cheaper can be ideal boot drive - $120 / 120GB or 240GB / $200. Along with 1TB / $120 to hold data files.


12GB should be fine for even medium work load with graphics. For what you were doing you might want to try with a guest or trial user (standard user) account.

Jun 11, 2012 6:32 PM in response to Liam Yore

The basic operations of the OS require a certain amount of swap space of their own. If you look in /private/var/vm (you may have to use the finder Go menu to look), and I say look, never touch, you will see the swap files created for the VM. Initially after reboot there will be only one file. With time the number of these swap files tends to increase. Depending on your total ram and how many new apps you start running over time having a larger number of these swap files will affect performance. That's one of the reasons your performance improved after rebooting.


What's a large number of swap files? Like I said that depends on your particular usage and ram. I only point this out to give you some way to try to correlate some of your performance slowdown with the number of swap files in see in /private/var/vm. Over time you should get a feel for your machine and when the number of swapfiles you see is "too much" and you should reboot.

Jun 11, 2012 7:10 PM in response to Kappy

There clearly is something to fix -- the computer's performance is clearly unacceptable, newly so, and not when under heavy loads.


Clearly you have a deep understanding of this (not being patronizing, really), and you've taken the time to comment a couple of times, which I appreciate. Do you have any suggestions on how to ... if not fix, then "improve" the performance when watching videos?


Thanks,


lty

Jun 11, 2012 7:52 PM in response to Liam Yore

With respect to watching youtube videos, a lot of them are "choppy", i.e., rebuffering "pinwheel", particularly since google took it over. I see it too, and I have 24GB 6-core 3.33GHz mac pro with a 12 Mbps internet connection. I suggest you try lowing the resolution of the video (click the little gear in the bottom right of the video screen).

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

virtual memory - does it slow my system down?

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