Performance Testing, LoadRunner Tips&Tricks

This site is moving to a bigger space @ LoadRunner TnT

General: Understanding Memory - Page Fault Resolution

For all its virtues, virtual memory can raise some serious performance issues. Among them is execution delays encountered by programs whenever they reference virtual memory locations not in the current set of memory-resident pages. This is known as page fault. A program thread that incurs a page fault is halted during page fault resolution, the time it takes the OS to find the specific page on disk and restore it to real memory.

When a program execution thread attempts to reference an address on a page that is not currently resident in real memory, a hardware interrupt occurs that halts the executing program. An OS interrupt service routine (ISR) gains control following the interrupt and determines that the address referenced is valid, but is not currently resident. (If a program accesses an invalid memory location due to a logic error, e.g. referencing an un-initialized pointer, a similar hardware error occurs. It is up to the ISR to distinguish between the two conditions.) The OS then must remedy the situation by locating a copy of the desired page on a secondary storage, using an I/O operation to the paging file, and copying the designated page from disk into a free page in RAM. Once the page has been copied successfully, the OS re-dispatches the temporarily halted program, allowing the program thread to continue its normal execution cycle.

The above was extracted from the book, Windows 2000 Performance Guide by Mark Friedman & Odysseas Pentakalos.


Related Topics

Page Fault Resolution (Illustration)
Performance Concerns

Virtual Memory Shortage Alerts
Available Bytes

LRU
System Working Set
Detecting Memory Leaks
Measuring Memory Utilization

Labels: , , , , , , , , , , , , , , ,


Bookmark this article now! AddThis Social Bookmark Button



technorati del.icio.us reddit digg

0 Responses to “General: Understanding Memory - Page Fault Resolution”

Post a Comment


Powered by Google

Enter your email address:

Delivered by FeedBurner


Add to Technorati Favorites


XML

Powered by Blogger

make money online blogger templates

Powered by FeedBurner

Blog Directory

Top Blogs

Software Blogs -  Blog Catalog Blog Directory





© 2007 Performance Testing, LoadRunner Tips&Tricks | Blogger Templates by GeckoandFly.
No part of the content or the blog may be reproduced without prior written permission.
Learn how to make money online | First Aid and Health Information at Medical Health