Difference between revisions of "UBC configuration examples table"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(created)
 
(added helper)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{UBC toc}}
 
{{UBC toc}}
  
See [[UBC configuration examples]] for the explanations.
+
See [[UBC configuration examples]] for the explanations. Configuration files using these values are found in /etc/vz/conf/ 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 22: Line 22:
 
| numproc || 40 || 65 || 400 || 32,000
 
| numproc || 40 || 65 || 400 || 32,000
 
|-
 
|-
| numtcpsock || 40 || 80 || 500 || [[MAX_ULONG]]
+
| numtcpsock || 40 || 80 || 500 || [[LONG_MAX]]
 
|-
 
|-
| numothersock || 40 || 80 || 500 ||  [[MAX_ULONG]]
+
| numothersock || 40 || 80 || 500 ||  [[LONG_MAX]]
 
|-
 
|-
 
| vmguarpages || 1,725 || 6,144 || 102,400 || 0
 
| vmguarpages || 1,725 || 6,144 || 102,400 || 0
Line 30: Line 30:
 
! colspan="5" | Secondary parameters
 
! colspan="5" | Secondary parameters
 
|-
 
|-
| kmemsize || 870,400 / 923,648 || 2,457,600 / 2,621,400 || 16,384,000 / 18,022,400 || [[MAX_ULONG]] / [[MAX_ULONG]]
+
| kmemsize || 870,400 / 923,648 || 2,457,600 / 2,621,400 || 16,384,000 / 18,022,400 || [[LONG_MAX]] / [[LONG_MAX]]
 
|-
 
|-
 
| tcpsndbuf || 159,744 / 262,144 || 319,488 / 524,288 || 5,365,760 / 10,485,760 || 402,653,184 / 402,653,184
 
| tcpsndbuf || 159,744 / 262,144 || 319,488 / 524,288 || 5,365,760 / 10,485,760 || 402,653,184 / 402,653,184
Line 36: Line 36:
 
| tcprcvbuf || 159,744 / 262,144 || 319,488 / 524,288 || 5,365,760 / 10,485,760 || 402,653,184 / 402,653,184
 
| tcprcvbuf || 159,744 / 262,144 || 319,488 / 524,288 || 5,365,760 / 10,485,760 || 402,653,184 / 402,653,184
 
|-
 
|-
| othersockbuf || 61,440 / 163,840 || 122,880 / 327,680 || 1,503,232 / 4,063,232 || [[MAX_ULONG]] / [[MAX_ULONG]]
+
| othersockbuf || 61,440 / 163,840 || 122,880 / 327,680 || 1,503,232 / 4,063,232 || [[LONG_MAX]] / [[LONG_MAX]]
 
|-
 
|-
| dgramrcvbuf || 32,768 || 65,536 || 262,144 || [[MAX_ULONG]]
+
| dgramrcvbuf || 32,768 || 65,536 || 262,144 || [[LONG_MAX]]
 
|-
 
|-
 
| oomguarpages || 1,725 || 6,144 || 102,400 || 0
 
| oomguarpages || 1,725 || 6,144 || 102,400 || 0
Line 44: Line 44:
 
! colspan="5" | Auxiliary parameters
 
! colspan="5" | Auxiliary parameters
 
|-
 
|-
| lockedpages || 4 || 32 || 4,096 || [[MAX_ULONG]]
+
| lockedpages || 4 || 32 || 4,096 || [[LONG_MAX]]
 
|-
 
|-
| shmpages || 1,152 || 8,192 || 131,072 || [[MAX_ULONG]]
+
| shmpages || 1,152 || 8,192 || 131,072 || [[LONG_MAX]]
 
|-
 
|-
| privvmpages || 9,326 / 10,350 || 22,528 / 24,576 || 262,144 / 292,912 || [[MAX_ULONG]] / [[MAX_ULONG]]
+
| privvmpages || 9,326 / 10,350 || 22,528 / 24,576 || 262,144 / 292,912 || [[LONG_MAX]] / [[LONG_MAX]]
 
|-
 
|-
| numfile ||  512 ||  1,280 || 8,192 || [[MAX_ULONG]]
+
| numfile ||  512 ||  1,280 || 8,192 || [[LONG_MAX]]
 
|-
 
|-
| numflock || 50 / 60 || 100 / 110 || 200 / 220 || 1,000 / [[MAX_ULONG]]
+
| numflock || 50 / 60 || 100 / 110 || 200 / 220 || 1,000 / [[LONG_MAX]]
 
|-
 
|-
| numpty  || 4 || 16 || 64 || [[MAX_ULONG]]
+
| numpty  || 4 || 16 || 64 || [[LONG_MAX]]
 
|-
 
|-
 
| numsiginfo || 256 || 256 || 512 || 1,024
 
| numsiginfo || 256 || 256 || 512 || 1,024
 
|-  
 
|-  
| dcachesize || 196,608 / 202,752 || 524,288 / 548,864 || 4,194,304 / 4,317,184 || [[MAX_ULONG]] / [[MAX_ULONG]]
+
| dcachesize || 196,608 / 202,752 || 524,288 / 548,864 || 4,194,304 / 4,317,184 || [[LONG_MAX]] / [[LONG_MAX]]
 
|}
 
|}

Latest revision as of 06:32, 18 October 2012

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

See UBC configuration examples for the explanations. Configuration files using these values are found in /etc/vz/conf/

Name A B C D
Power 2GB/400 2GB/120 2GB/8 2GB/1
Helper values
total mem 5056KB 16256KB 248MB 1984MB
kernel mem 1606KB 3968KB 42304KB 300MB
user mem 3540KB 12288KB 200MB 1684MB
avnumproc 15 40 200
Primary parameters
numproc 40 65 400 32,000
numtcpsock 40 80 500 LONG_MAX
numothersock 40 80 500 LONG_MAX
vmguarpages 1,725 6,144 102,400 0
Secondary parameters
kmemsize 870,400 / 923,648 2,457,600 / 2,621,400 16,384,000 / 18,022,400 LONG_MAX / LONG_MAX
tcpsndbuf 159,744 / 262,144 319,488 / 524,288 5,365,760 / 10,485,760 402,653,184 / 402,653,184
tcprcvbuf 159,744 / 262,144 319,488 / 524,288 5,365,760 / 10,485,760 402,653,184 / 402,653,184
othersockbuf 61,440 / 163,840 122,880 / 327,680 1,503,232 / 4,063,232 LONG_MAX / LONG_MAX
dgramrcvbuf 32,768 65,536 262,144 LONG_MAX
oomguarpages 1,725 6,144 102,400 0
Auxiliary parameters
lockedpages 4 32 4,096 LONG_MAX
shmpages 1,152 8,192 131,072 LONG_MAX
privvmpages 9,326 / 10,350 22,528 / 24,576 262,144 / 292,912 LONG_MAX / LONG_MAX
numfile 512 1,280 8,192 LONG_MAX
numflock 50 / 60 100 / 110 200 / 220 1,000 / LONG_MAX
numpty 4 16 64 LONG_MAX
numsiginfo 256 256 512 1,024
dcachesize 196,608 / 202,752 524,288 / 548,864 4,194,304 / 4,317,184 LONG_MAX / LONG_MAX