Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Human readable user beancounters

No change in size, 13:55, 25 January 2011
use 'unlimited' instead of MAX_ULONG (to be consistent with vzctl)
shmpages 11.58 mb 11.64 mb 512.00 mb 512.00 mb 0
numproc 84 101 500 500 0
physpages 278.24 mb 395.75 mb 0 MAX_ULONG unlimited 0vmguarpages 0 0 244.14 mb MAX_ULONG unlimited 0oomguarpages 279.66 mb 396.98 mb 122.07 mb MAX_ULONG unlimited 0
numtcpsock 25 53 500 500 0
numflock 18 22 200 220 0
my $bytes = shift;
if (defined(&check_maxulong($bytes))) { return "MAX_ULONGunlimited"; }
my $kbytes = $bytes / 1024;
if ($pages == 0) { return "0"; }
if (defined(&check_maxulong($pages))) { return "MAX_ULONGunlimited"; }
my $kbytes = $pages * 4;
sub recalc_nothing {
my $number = shift;
if (defined(&check_maxulong($number))) { return "MAX_ULONGunlimited"; }
return $number;