What are measurement units for UBC parameters?

Article ID: 1355 
Last Review: Oct,6 2008
Author: Vitaly Filatov
Last updated by: system APPLIES TO:
  • Parallels Virtuozzo Containers for Linux

Resolution

  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

You can set parameter units explicitly when appropriate, for example: Set kmemsize limit to 16 Mb:

# vzctl set --kmemsize 16m

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

Keywords: ubc qos parameter measurement unit page byte


Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields