Editing Human readable user beancounters

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 13: Line 13:
 
shmpages                11.58 mb            11.64 mb            512.00 mb            512.00 mb                    0
 
shmpages                11.58 mb            11.64 mb            512.00 mb            512.00 mb                    0
 
numproc                        84                  101                  500                  500                    0
 
numproc                        84                  101                  500                  500                    0
physpages              278.24 mb            395.75 mb                    0            unlimited                   0
+
physpages              278.24 mb            395.75 mb                    0            MAX_ULONG                   0
vmguarpages                    0                    0            244.14 mb            unlimited                   0
+
vmguarpages                    0                    0            244.14 mb            MAX_ULONG                   0
oomguarpages            279.66 mb            396.98 mb            122.07 mb            unlimited                   0
+
oomguarpages            279.66 mb            396.98 mb            122.07 mb            MAX_ULONG                   0
 
numtcpsock                    25                  53                  500                  500                    0
 
numtcpsock                    25                  53                  500                  500                    0
 
numflock                      18                  22                  200                  220                    0
 
numflock                      18                  22                  200                  220                    0
Line 70: Line 70:
 
my $bytes = shift;
 
my $bytes = shift;
  
if (defined(&check_maxulong($bytes))) { return "unlimited"; }
+
if (defined(&check_maxulong($bytes))) { return "MAX_ULONG"; }
  
 
my $kbytes = $bytes / 1024;
 
my $kbytes = $bytes / 1024;
Line 90: Line 90:
  
 
if ($pages == 0) { return "0"; }
 
if ($pages == 0) { return "0"; }
if (defined(&check_maxulong($pages))) { return "unlimited"; }
+
if (defined(&check_maxulong($pages))) { return "MAX_ULONG"; }
  
 
my $kbytes = $pages * 4;
 
my $kbytes = $pages * 4;
Line 107: Line 107:
 
sub recalc_nothing {
 
sub recalc_nothing {
 
my $number = shift;
 
my $number = shift;
if (defined(&check_maxulong($number))) { return "unlimited"; }
+
if (defined(&check_maxulong($number))) { return "MAX_ULONG"; }
  
 
return $number;
 
return $number;

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Templates used on this page: