Editing IO 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 9: Line 9:
 
The following resources are accounted:
 
The following resources are accounted:
 
; read bytes
 
; read bytes
: is the number of bytes read by tasks. Reads are always synchronous in the kernel so this type of resource is the easiest one.
+
: is the amount of bytes read by tasks. Reads are always synchronous in kernel so this type of resources is the easiest one.
  
 
; dirty bytes
 
; dirty bytes
: is the number of bytes that were dirty since VE start, i. e. data that isn't yet flushed to disk. This type of resource is accumulated using [[RSS_fractions_accounting|page beancounters]] and the context the page was dirtied by is determined like this:
+
: is the amount of bytes that were dirty since VE start, i. e. data that isn't yet flushed to disk. This type of resources is accounted using [[RSS_fractions_accounting|page beancounters]] and the context the page was dirtied by is determined like this:
 
:* if a page is mapped it's "mapper" is used as this may happen in any context (unmapping of a page under memory pressure);
 
:* if a page is mapped it's "mapper" is used as this may happen in any context (unmapping of a page under memory pressure);
 
:* if a page is not mapped — current BC is used as this can happen during usual write (writev) only.
 
:* if a page is not mapped — current BC is used as this can happen during usual write (writev) only.
  
 
; written bytes
 
; written bytes
: is the number of bytes flushed to disk. The beancounter charged with this is the one by which the page was dirtied.
+
: is the amount of bytes flushed to disk. The beancounter to charge this to is the one the page was dirtied by.
  
 
; canceled bytes
 
; canceled bytes
: is the number of bytes that were dirty but weren't flushed to disk.
+
: is the amount of bytes that were dirty but weren't flushed to disk.
  
 
; missed bytes
 
; missed bytes
: is the number of bytes that were dirtied but the context (beancounter) wasn't saved due to lack of memory.
+
: is the amount of bytes that were dirtied but the context (beancounter) wasn't saved due to lack of memory.
  
 
== Proc interface ==
 
== Proc interface ==

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)