21.02.2013 Views

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The sr column<br />

The sr column shows the number of pages that were examined per second by<br />

the page-replacement algorithm during the interval. The VMM page-replacement<br />

code scans the PFT and steals pages until the number of frames on the free list<br />

is at least the maxfree value. The page-replacement code might have to scan<br />

many entries in the PFT before it can steal enough to satisfy the free list<br />

requirements. With stable, unfragmented memory, the scan rate and free rate<br />

might be nearly equal. On systems with multiple processes using many different<br />

pages, the pages are more volatile and disjointed. In this scenario, the scan rate<br />

might greatly exceed the free rate.<br />

Memory is over committed when the ratio of fr to sr (fr:sr) is high. A fr:sr ratio of<br />

1:4 means that for every page freed, four pages had to be examined. It is difficult<br />

to determine a memory constraint based on this ratio alone, and what constitutes<br />

a high ratio is workload/application dependent.<br />

The cy column<br />

The cy column shows the number of cycles per second of the clock algorithm.<br />

The VMM uses a technique known as the clock algorithm to select pages to be<br />

replaced. This technique takes advantage of a referenced bit for each page as an<br />

indication of what pages have been recently used (referenced). When the<br />

page-stealer routine is called, it cycles through the PFT, examining each page's<br />

referenced bit. The cy column shows how many times per second the<br />

page-replacement code has scanned the PFT. Because the free list can be<br />

replenished without a complete scan of the PFT, and because all of the vmstat<br />

command fields are reported as integers, this field is usually zero. If not, it<br />

indicates a complete scan of the PFT, and the stealer has to scan the PFT again,<br />

because fre is still under the maxfree value.<br />

One way to determine the appropriate amount of RAM for a system is to look at<br />

the largest value for avm reported by the vmstat command. Multiply that by 4 KB<br />

to get the number of bytes, and then compare that to the number of bytes of RAM<br />

on the system. Ideally, avm should be smaller than the total RAM. If not, some<br />

amount of virtual memory paging will occur. How much paging occurs will<br />

depend on the difference between the two values. Remember, the idea of virtual<br />

memory is that it gives us the capability of addressing more memory than we<br />

have (some of the memory is in RAM and the rest is in paging space). If there is<br />

far more virtual memory than real memory, this could cause excessive paging,<br />

which then results in delays. If avm is lower than RAM, then paging-space<br />

paging could be caused by RAM being filled up with file pages. In that case,<br />

tuning the minperm or maxperm values could reduce the amount of<br />

paging-space paging. This can be done with the vmtune command.<br />

Another useful command for memory performance problem determination is the<br />

ps command.<br />

250 <strong>IBM</strong> ^ Certification Study Guide - <strong>AIX</strong> <strong>5L</strong> <strong>Problem</strong> <strong>Determination</strong> Tools and Techniques

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!