User Tools

Site Tools


realtime:documentation:howto:applications:memory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
realtime:documentation:howto:applications:memory [2017/07/15 02:18]
jithu [Dynamic memory allocation in RT threads]
realtime:documentation:howto:applications:memory [2017/07/15 02:25] (current)
jithu [Memory Locking]
Line 8: Line 8:
 ===== Memory Locking ===== ===== Memory Locking =====
 Memory locking APIs allow an application to instruct the kernel to associate (some or all of its) virtual memory pages with real page frames and keep it that way. In other words : Memory locking APIs allow an application to instruct the kernel to associate (some or all of its) virtual memory pages with real page frames and keep it that way. In other words :
-  * Memory locking APIs will trigger the necessary page-faults to bring in the pages being locked to physical memory ​and populates the application'​s page-table with the corresponding entries. Consequently first access to a locked-memory (following an ''​mlock*()''​ call) will already have physical memory assigned and will not page fault (in  RT-critical path) thus removing ​the need to explicitly pre-fault ​the memory ​otherwise+  * Memory locking APIs will trigger the necessary page-faultsto bring in the pages being lockedto physical memory. Consequently first access to a locked-memory (following an ''​mlock*()''​ call) will already have physical memory assigned and will not page fault (in  RT-critical path). This removes ​the need to explicitly pre-fault ​these memory. ​
   * Further memory locking prevents an application'​s memory pages, from being paged-out, anytime during its lifetime even in when the overall system is facing memory pressure.   * Further memory locking prevents an application'​s memory pages, from being paged-out, anytime during its lifetime even in when the overall system is facing memory pressure.
  
realtime/documentation/howto/applications/memory.txt ยท Last modified: 2017/07/15 02:25 by jithu