Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Page fault
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Performance impact == Page faults degrade system performance and can cause [[thrashing (computer science)|thrashing]]. Major page faults on a conventional computer using [[hard disk drive]]s can have a significant impact on their performance, as a typical hard disk drive had an average [[rotational latency]] of 3 ms, a [[seek time]] of 5 ms and a transfer time of 0.05 ms/page. Therefore, the total time for paging is near 8 ms (8,000 μs). If the memory access time is 0.2 μs, then the page fault would make the operation about 40,000 times slower. With a more modern system using a fast [[solid-state drive]] with a page read latency of 0.030 ms (30 μs)<ref>{{Cite web |last=W1zzard |last2= |date=2023-08-08 |title=Samsung 990 Pro 2 TB Review |url=https://www.techpowerup.com/review/samsung-990-pro-2-tb/5.html |access-date=2025-05-19 |website=TechPowerUp |language=en |publication-date=}}</ref> and a memory access latency of 70 ns (0.070 μs),<ref>{{Cite web |last=W1zzard |last2= |last3= |first3= |date=2024-08-07 |title=AMD Ryzen 5 9600X Review - The Best Sub-$300 Gaming CPU |url=https://www.techpowerup.com/review/amd-ryzen-5-9600x/6.html |access-date=2025-05-19 |website=TechPowerUp |language=en}}</ref> a hard page fault is still over 400 times slower. Performance [[Optimization (computer science)|optimization]] of programs or operating systems often involves efforts to reduce the number of page faults. Two primary focuses of the optimization are reducing overall memory usage and improving [[memory locality]]. To reduce the page faults, OS developers must use an appropriate [[page replacement algorithm]] that maximizes the page hits. Many have been proposed, such as implementing [[heuristic algorithm]]s to reduce the incidence of page faults. Larger physical memory also reduces the likelihood of page faults. Chunks of [[Memory-mapped file|memory-mapped files]] can remain in memory longer and avoid slow re-reads from storage. Similarly, lower memory pressure lessens the need for frequent [[Memory paging|swapping out]] of memory pages to a backing storage device used for swap.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)