Difference between revisions of "UBC parameter units"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(linked to memory page)
m (formatting)
Line 2: Line 2:
  
  
# entries which name has word 'page' are measured in [[memory page]]s (4K on x86 and x86_64, 16K for IA64). These are privvmpages, oomguarpages and others.
+
# entries which name has word 'page' are measured in [[memory page]]s (4K on x86 and x86_64, 16K for IA64). These are <code>privvmpages</code>, <code>oomguarpages</code> and others.
# entries with names like 'num*' are measured in items. i.e. numproc - number of processes, numiptent - number of iptables entries.
+
# entries with names like 'num*' are measured in items. i.e. <code>numproc</code> - number of processes, <code>numiptent</code> - number of iptables entries.
# other entries like kmemsize, tcprcvbuf/tcpsndbuf are measured in bytes  
+
# other entries like <code>kmemsize</code>, <code>tcprcvbuf</code>, <code>tcpsndbuf</code> are measured in bytes  
  
 
== Overriding default units ==
 
== Overriding default units ==

Revision as of 01:39, 10 July 2007

User Beancounters
Definition
/proc/user_beancounters
/proc/bc/
General information
Units of measurement
VSwap
Parameters description
Primary parameters
numproc, numtcpsock, numothersock, vmguarpages
Secondary parameters
kmemsize, tcpsndbuf, tcprcvbuf, othersockbuf, dgramrcvbuf, oomguarpages, privvmpages
Auxiliary parameters
lockedpages, shmpages, physpages, numfile, numflock, numpty, numsiginfo, dcachesize, numiptent, swappages
Internals
User pages accounting
RSS fractions accounting
On-demand accounting
UBC consistency
Consistency formulae
System-wide configuration
vzubc(8)
Configuration examples
Basic
Derived
Intermediate configurations
Tables
List of parameters
Parameter properties
Consistency
Config examples


  1. entries which name has word 'page' are measured in memory pages (4K on x86 and x86_64, 16K for IA64). These are privvmpages, oomguarpages and others.
  2. entries with names like 'num*' are measured in items. i.e. numproc - number of processes, numiptent - number of iptables entries.
  3. other entries like kmemsize, tcprcvbuf, tcpsndbuf are measured in bytes

Overriding default units

You can set parameter units explicitly when appropriate, for example:

  • Set kmemsize limit to 512 Kb
# vzctl set --kmemsize 512k
  • Set privvmpages limit to 256 Mb
# vzctl set --privvmpages 256m
  • Set tcprcvbuf limit to 1000 pages (totals to almost 4 Mb on x86)
# vzctl set --tcprcvbuf 1000p