Article ID: 1354, created on Oct 6, 2008, last review on Sep 28, 2016

  • Applies to:
  • Odin Business Automation Standard 4.5
  • Virtuozzo
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor

Information

User Beancounters or UBC parameters are a set of limits and guarantees controlled by each container. UBC is the major component of Parallels Virtuozzo Containers (PVC) resource management and quality of service.

The proc filesystem entry showing resource control information is the proc/user_beancounters file inside a container.

/proc/user_beancounters on a Hardware Node contains the UBC parameters for all containers running on the Node.

An example /proc/user_beancounters is shown below:

[root@pvclinux ~]# cat /proc/user_beancounters
Version: 2.5
uid  resource           held  maxheld              barrier                limit   failcnt
331:kmemsize        2952339  3059712             24299200             26429120         0
    lockedpages           0        0                65536                65536         0
    privvmpages        2584     2766               362144               392912         0
    shmpages             18       18  9223372036854775807  9223372036854775807         0
    dummy                 0        0  9223372036854775807  9223372036854775807         0
    numproc              10       12  9223372036854775807  9223372036854775807         0
    physpages          4457     4803                65536                65536         0
    vmguarpages           0        0               131072               131072         0
    oomguarpages       1272     1272                65536                65536         0
    numtcpsock            6        6  9223372036854775807  9223372036854775807         0
    numflock              2        2  9223372036854775807  9223372036854775807         0
    numpty                0        0  9223372036854775807  9223372036854775807         0
    numsiginfo            0        3  9223372036854775807  9223372036854775807         0
    tcpsndbuf        104640   104640  9223372036854775807  9223372036854775807         0
    tcprcvbuf         98304    98304  9223372036854775807  9223372036854775807         0
    othersockbuf       6936     6936  9223372036854775807  9223372036854775807         0
    dgramrcvbuf           0        0  9223372036854775807  9223372036854775807         0
    numothersock         20       20  9223372036854775807  9223372036854775807         0
    dcachesize      1060752  1068020  9223372036854775807  9223372036854775807         0
    numfile             334      340                12000                12000         0
    dummy                 0        0  9223372036854775807  9223372036854775807         0
    dummy                 0        0  9223372036854775807  9223372036854775807         0
    dummy                 0        0  9223372036854775807  9223372036854775807         0
    numiptent            18       18  9223372036854775807  9223372036854775807         0

The output contains the following fields:

  • uid: the numeric identifier of a container

  • held: the current usage of a resource (an accounting-only parameter)

  • maxheld: an accounting parameter which shows the maximum value of a resource usage during the last accounting period. This period usually matches the container lifetime.

  • failcnt: the number of refused resource allocations for the whole lifetime of the process group

  • barrier: a control parameter which generally defines the normal resource allocation border. For some resources, the parameter can be undefined, while for others, it may be an effectively limiting parameter. See the UBC parameters description.

  • limit: a control parameter which generally defines the top border for a resource allocation. For some resources, the parameter can be undefined, while for others, it may be an effectively limiting parameter. See the UBC parameters description.

Additional information

For more information, see the following sources:

UBC Management Guide

OpenVZ Wiki

Parallels Virtuozzo Containers 4.7 for Linux User's Guide

112807 UBC resources in Parallels Virtuozzo Containers for Linux

Search Words

DNS zones are not synced to PBA-S-managed name servers

cronjobs killed inside ct

dig: isc_taskmgr_create: no available threads

dcachesize

beancounters

iptables

cannot allocate memory

update

e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223 a26b38f94253cdfbf1028d72cf3a498b 0dd5b9380c7d4884d77587f3eb0fa8ef 400e18f6ede9f8be5575a475d2d6b0a6 caea8340e2d186a540518d08602aa065 624ca542e40215e6f1d39170d8e7ec75 70a5401e8b9354cd1d64d0346f2c4a3e

Email subscription for changes to this article
Save as PDF