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 1: Line 1:
This page describes accounting for I/O activity of CT processes, on a VFS I/O level.
+
This page describes how accounting is done for I/O activity of VE processes. This feature is available beginning with OpenVZ kernels version <code>028test008</code>.
The feature is available beginning with OpenVZ kernels version <code>028test008</code>.
 
 
 
If you are interested in [[I/O priorities for containers]], it is described in a separate article.
 
 
 
If you are looking for IO scheduler (i.e. lower level) statistics, see [[IO statistics]] instead.
 
  
 
== New resources ==
 
== New resources ==
Line 26: Line 21:
  
 
== Proc interface ==
 
== Proc interface ==
 
 
=== General information ===
 
=== General information ===
As was described in [[BC proc entries|another article]] each beancounter has its own <code>/proc/bc/$BCID</code> directory where subsystems add their entries. I/O accounting adds an <code>ioacct</code> entry to show I/O information. This entry contains the following information:
+
As it was described in [[BC proc entries|another article]] each beancounter has it's own <code>/proc/bc/$BCID</code> directory where subsystems add their entries. I/O accounting adds <code>ioacct</code> entry to show I/O information. This entry contains the following information:
 
<pre>
 
<pre>
 
# cat /proc/bc/101/ioacct  
 
# cat /proc/bc/101/ioacct  
Line 39: Line 33:
 
</pre>
 
</pre>
  
Note that <code>dirty</code> is not the size of dirty data at the moment, but the size of dirty data seen so far.
+
Note that <code>dirty</code> is not the size of a dirty data at the moment, but the size of a dirty data seen so far.
  
 
=== Debugging information ===
 
=== Debugging information ===
When <code>CONFIG_UBC_DEBUG_IO</code>, is on <code>/proc/bc/ioacct_debug</code> is added. This entry contains a snapshot of current dirty pages with its beancounter. For example:
+
When <code>CONFIG_UBC_DEBUG_IO</code>, is on <code>/proc/bc/ioacct_debug</code> is added. This entry contains a snapshot of current dirty pages with its beancounter in system. For example:
 
<pre>
 
<pre>
 
# cat /proc/bc/ioacct_debug  
 
# cat /proc/bc/ioacct_debug  
Line 107: Line 101:
 
         io_pbs                                  0
 
         io_pbs                                  0
 
</pre>
 
</pre>
 
== See also ==
 
* [[IO statistics]]
 
* [[I/O priorities]]
 
* [[I/O limits]]
 
  
 
[[Category:Resource management]]
 
[[Category:Resource management]]

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)