Editing User pages accounting

Jump to: navigation, search

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.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 8: Line 8:
  
 
== Ways of accounting ==
 
== Ways of accounting ==
There are different approaches to user pages control:
+
There are tree approaches to user pages accounting.
  
 
; Account all the mappings on mmap/brk and reject as soon as the sum of VMA's lengths reaches the barrier.
 
; Account all the mappings on mmap/brk and reject as soon as the sum of VMA's lengths reaches the barrier.
 
: This approach is very bad as applications ''always'' map more than they really use, very often MUCH more.
 
: This approach is very bad as applications ''always'' map more than they really use, very often MUCH more.
 
; Account only the really used memory and reject as soon as {{H:title|Resident Set Size|RSS}} reaches the limit.
 
; Account only the really used memory and reject as soon as {{H:title|Resident Set Size|RSS}} reaches the limit.
: This approach is not good either as the only place where pages appear in user space is page fault handler and the only way to reject is killing the task. Comparing to previous scenarion this is much worse as application won't even be able to terminate gracefully.
+
: This approach is not good either as the only place where pages appear in user space is page fault handler and the only way to reject is killing the task. Comparing to previous scenarion this is much worse as application won't even be able to close correctly.
 
; Account a part of memory on mmap/brk and reject there, and account the rest of the memory in page fault handlers without any rejects.
 
; Account a part of memory on mmap/brk and reject there, and account the rest of the memory in page fault handlers without any rejects.
 
: This type of accounting is used in UBC.
 
: This type of accounting is used in UBC.
; Account physical memory and behave like a standalone kernel - reclaim user memory when run out of it.
 
: This type of memory control is to be introduced later as an addition to current scheme. UBC provides all the needed statistics for this (physical memory, swap pages etc.)
 
  
 
== UBC user pages accounting ==
 
== UBC user pages accounting ==

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)