More RAM for my Powerbook
Tuesday, November 23rd, 2004I finally got more RAM for my powerbook. As I posted previously, I bought the machine with only 256MB of RAM, because it is much more affordable to purchase the RAM seperately, than have it installed by Apple. So FedEx delivered a new 1GB RAM stick today- it has made a huge difference in performance. It is well known among Mac users that OS X is RAM-hungry and I can certainly attest to that. My 1.33 GHz G4 w/ 256 MB of RAM felt slower than my 800Mhz G3 w/ 680MB of RAM. Now the new machine feels much faster. For the computer-uneducated, this is due to Virtual Memory.
What is Virtual Memory? I’m glad you asked. In laymen’s terms…
Virtual Memory is a way to utilize more memory than your computer actually has. It does this by swaping out parts of memory to a section of your harddisk (called, incidentially ‘swap’). So, when you multitask, as I always do, you invariablly make use of VM. That means that your computer is constantly having to swap pieces of memory to and from your harddisk. This is an expensive process.
My adding more memory I’m able to avoid this swapping, thereby making my computer more responsive. If you’re on a unix machine, its quite easy to measure your VM usage. A a command prompt simply type:
$ top
This will open the top program, which is a process monitor program. The last line of the header section will have two values of importance. Here’s what mine looks like:
VM: 5.77G + 83.1M 31428(4) pageins, 158(0) pageouts
First is called ‘VM’ and it will show the total size of your virtual memory. Don’t be surprised if this is several times the amount of physical memory in your machine. Second is ‘pagouts.’ This is a count of the number of times a program went looking for something in main memory, but had to go find it on your harddisk instead. The lower this number the better. You can see min is at 158 now. Yesterday, after running my comptuer for several days straight it was at about 1.4 million- a significant change.
I hope this was enlightening.