/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Development/peformance/memory.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2015-08-21 03:52:00 UTC
  • Revision ID: csa@suren.me-20150821035200-xu1zh22cqlk2omcq
Profiling

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Page faults
 
2
===========
 
3
 - A potential source of memory latency is called a minor page fault. They are 
 
4
 created when a process attempts to access a portion of memory before it has been 
 
5
 initialized. In this case, the system will need to perform some operations to fill 
 
6
 the memory maps or other management structures. The severity of a minor page fault 
 
7
 can depend on system load and other factors, but they are usually short and have a 
 
8
 negligable impact.
 
9
 - A more severe memory latency is a major page fault. These can occur when the system 
 
10
 has to synchronize memory buffers with the disk, swap memory pages belonging to other 
 
11
 processes, or undertake any other Input/Output activity to free memory. This occurs 
 
12
 when the processor references a virtual memory address that has not had a physical page 
 
13
 allocated to it. The reference to an empty page causes the processor to execute a fault, 
 
14
 and instructs the kernel code to allocate a page and return, all of which increases 
 
15
 latency dramatically.