| |||||||
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| Page ins and page outs - could somebody please explain this to me in idiot fashion?
Hi guys, I have been having some sluggish performance recently and I'm guessing it could be something to do with memory allocation. I have been reading a few things on this board and have found that page ins/outs can have an effect on performance (although I'm still not entirely sure what it all means). I have closed all my applications except for my browser and the activity viewer to see what is going on. My page readings on the system memory page state: Page ins/outs 182139/247702. I have read somewhere that if you have more page outs than ins then you have a problem. Therefore my questions are: a. Is this actually true and what do page in/outs actually mean? b. Will adding more RAM to my machine help? I currently own an eMac 1.25ghz with 512 RAM, running OS 10.3.5. c. What other tips might help its performance? d. What is the difference between inactive memory and free memory? In addition, my applications also seem to use up a lot of VM. Could this also cause performance problems? Thanks in advance for your time. Ian
__________________ http://www.hititstudios.com |
|
#2
| ||||
| ||||
|
OK, to summarise what it means, your computer has a certain amount of RAM, which is its "memory". It simulates more RAM by allowing extra data to be saved to the hard disk, which is known as Virtual Memory. To do this, it breaks your memory space up into "pages". Applications that need access to data that is in memory call the data by page. If an application calls a page and it is in the RAM, then it is a "page in" occurs. If an app calls for a page from memory, and that page is currently stored on the hard disk and has to be read back into the RAM, then a "Page Out" occurs. A "Page-out" slows the operation of the system down because it has to read the data from a hard disk into RAM first, rather than reading straight from the RAM. Hard disks take about 300 times as long to transfer a page of data, which adds up to slow performance. If page-outs exceed page-ins, you definitely don't have enough RAM. Ideally, page-outs should be less than 20% of the number of page-ins (the fewer page-outs, the faster your machine is performing) On my machine, I aim for less than 5%. Adding more RAM, or reducing the number of open applications, are the only ways to reduce page-outs. While freeing up memory by working with fewer and smaller files and apps may help, more RAM is the only reasaonable solution.
__________________ - iMac G5 1.8GHZ 17" | SuperDrive | 160GB | 512MB | Airport Extreme | Bluetooth Keyboard & Mouse | Wacom Intuos II - Pentax *ist DL - JVC MiniDV Camcorder - Airport Express - iPod Nano 1gb white |
| The Following User Says Thank You to symphonix For This Useful Post: | ||
lbj (April 17th, 2009) | ||
|
#3
| |||
| |||
|
You have a limited amount of RAM in your machine. Each process thinks it owns the entire machine, it has all the processor avalible, and it has infinite RAM. In order to do this, the OS has a swap system. When something is put into RAM, it is placed into a 'page' in RAM. When a page is not being used, then it is 'paged' out, and put into swap, which is on the hard drive. As you can imagine, using swap is a great idea, but your hard drive is slow as compared to RAM, so if you have more RAM, you do not have to swap as much. As for the number of page ins/outs, I dont see that as a problem. It just means that more stuff is being pulled out, than was being put in. The question you want to ask is, over what time period did this occur? On my machine: [bob@Freebird] ~%uptime 18:59 up 1 day, 5:36, 4 users, load averages: 0.18 0.14 0.14 86047 in 37538 out This is normal to me. |
|
#4
| |||
| |||
|
Hi guys, thanks for your prompt replies. From what you say I'm guessing this may also answer this question. Sometimes I'll check the available space on my internal hard drive and it will have say, 10GB available. Then when I restart the machine is suddenly has say 11GB available. I'm presuming this must be because it has emptied the VM or something like that anyway? Also, rbb, you asked what time period the page outs occurred over. How can I check this? Thanks again fellas - your help is very much appreciated. Ian
__________________ http://www.hititstudios.com |
|
#5
| |||
| |||
|
The command uptime. The extra space, I am going to say is from clearing out /tmp All my machines are setup to delete the contents of /tmp upon reboot. |
|
#6
| ||||
| ||||
|
I recently read a supposedly authoritative source that said there is a very big difference in Panther performance between a machine with 512 MB RAM and 640 MB. That source recommended 640 MB as the "sweet spot" although performance continues to improve all the way up to 1 GB and more. I cannot verify that scientifically, but from my experience I would be inclined to believe that is true. Perhaps this will help you understand OS X memory usage a little better:
__________________ G4/1.25 MDD, 1.5 GB, OS X 10.4.5 G4/133 Quicksilver, 1.2 GB, OS X 10.4.5 iBook G4/1.25, 1 GB, OS X 10.4.5 |
|
#7
| |||
| |||
|
Thanks perfessor101, the information that you have given is extremely helpful and certainly answers a lot of my questions. Well it looks like some more RAM will certainly benefit me. It's lucky that I've just been paid for my last project ![]() Thanks again for all your help. Ian
__________________ http://www.hititstudios.com |
|
#8
| |||
| |||
|
Hay all, can someone explain exactly what this means 12:06 up 3:18, 2 users, load averages: 0.24 0.38 0.40 I know : this is the actual up time - 12:06 up 3:18 But what do these represent? load averages: 0.24 0.38 0.40 |
![]() |
| Bookmarks |
| Thread Tools | |
|
|