Editing User pages accounting
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 | + | 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 | + | : 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. | ||
− | |||
− | |||
== UBC user pages accounting == | == UBC user pages accounting == |