Difference between revisions of "Man/vzcalc.8"

From OpenVZ Virtuozzo Containers Wiki
< Man
Jump to: navigation, search
(Automated import of articles)
 
(Automated import of articles *** existing text overwritten ***)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
<p style="margin-left:11%; margin-top: 1em">vzcalc &minus;
 
<p style="margin-left:11%; margin-top: 1em">vzcalc &minus;
utility to calculate the container&rsquo;s resources
+
calculate resource usage of a container</p>
usage.</p>
 
  
 
== SYNOPSIS ==
 
== SYNOPSIS ==
 
<p style="margin-left:11%; margin-top: 1em">vzcalc
 
[<b>-v</b>] <i>CTID</i></p>
 
 
== OPTIONS ==
 
  
 
<table width="100%" border="0" rules="none" frame="void"
 
<table width="100%" border="0" rules="none" frame="void"
Line 16: Line 10:
 
<tr valign="top" align="left">
 
<tr valign="top" align="left">
 
<td width="11%"></td>
 
<td width="11%"></td>
<td width="3%">
+
<td width="9%">
  
<p style="margin-top: 1em"><i><b>-v</b></i></p></td>
+
<p style="margin-top: 1em"><b>vzcalc</b></p></td>
<td width="3%"></td>
+
<td width="2%"></td>
<td width="48%">
+
<td width="13%">
  
<p style="margin-top: 1em">Display additional
+
<p style="margin-top: 1em">[<b>-v</b>] <b>CTID</b></p></td>
information.</p> </td>
+
<td width="65%">
<td width="35%">
 
 
</td></tr>
 
</td></tr>
 
</table>
 
</table>
Line 38: Line 31:
 
Current</b></p>
 
Current</b></p>
  
<p style="margin-left:17%;">shows the amount of the
+
<p style="margin-left:22%;">Shows the amount of the
 
resources consumed by the container at a given time.</p>
 
resources consumed by the container at a given time.</p>
  
 
<p style="margin-left:11%;"><b>Promised</b></p>
 
<p style="margin-left:11%;"><b>Promised</b></p>
  
<p style="margin-left:17%;">shows the resources soft limit
+
<p style="margin-left:22%;">Shows the resources soft limit
 
values &quot;promised&quot; for a given container.</p>
 
values &quot;promised&quot; for a given container.</p>
  
<p style="margin-left:11%;"><b>Max&nbsp;</b></p>
+
<table width="100%" border="0" rules="none" frame="void"
 +
      cellspacing="0" cellpadding="0">
 +
<tr valign="top" align="left">
 +
<td width="11%"></td>
 +
<td width="4%">
 +
 
 +
<p><b>Max</b></p></td>
 +
<td width="7%"></td>
 +
<td width="78%">
  
<p style="margin-left:17%;">shows the resources hard limit
+
<p>Shows the resources hard limit values
values &quot;promised&quot; for a given container.</p>
+
&quot;promised&quot; for a given container.</p></td></tr>
 +
</table>
  
 
<p style="margin-left:11%; margin-top: 1em">If the
 
<p style="margin-left:11%; margin-top: 1em">If the
<b>-v</b> option is specified, the additional information is
+
<b>-v</b> option is specified, the following additional
displayed. <b><br>
+
information is also displayed: <b><br>
Low&nbsp;Mem</b></p>
+
Low Mem</b></p>
  
<p style="margin-left:17%;">the part of memory residing at
+
<p style="margin-left:22%;">The part of memory residing at
lower addresses and directly accessed by the kernel.</p>
+
lower addresses and directly accessed by the kernel (only
 +
makes sense for 32-bit architectures).</p>
  
<p style="margin-left:11%;"><b>Total&nbsp;Ram</b></p>
+
<p style="margin-left:11%;"><b>Total RAM</b></p>
  
<p style="margin-left:17%;">whole RAM</p>
+
<p style="margin-left:22%;">Total memory.</p>
  
 
<p style="margin-left:11%;"><b>Mem+Swap</b></p>
 
<p style="margin-left:11%;"><b>Mem+Swap</b></p>
  
<p style="margin-left:17%;">amount of memory available for
+
<p style="margin-left:22%;">Amount of memory available for
 
applications (both RAM and swap space).</p>
 
applications (both RAM and swap space).</p>
  
<p style="margin-left:11%;"><b>Alloc&nbsp;Mem</b></p>
+
<p style="margin-left:11%;"><b>Alloc Mem</b></p>
  
<p style="margin-left:17%;">standard memory allocations
+
<p style="margin-left:22%;">Standard memory allocations
 
made for applications in a container. This is a more
 
made for applications in a container. This is a more
 
&quot;virtual&quot; system resource than RAM or RAM and
 
&quot;virtual&quot; system resource than RAM or RAM and
 
swap.</p>
 
swap.</p>
  
== DIAGNOSTICS ==
+
<p style="margin-left:11%;"><b>Num. Proc</b></p>
 +
 
 +
<p style="margin-left:22%;">Number of processes.</p>
 +
 
 +
== OPTIONS ==
 +
 
 +
<table width="100%" border="0" rules="none" frame="void"
 +
      cellspacing="0" cellpadding="0">
 +
<tr valign="top" align="left">
 +
<td width="11%"></td>
 +
<td width="3%">
 +
 
 +
<p style="margin-top: 1em"><b>-v</b></p></td>
 +
<td width="8%"></td>
 +
<td width="47%">
 +
 
 +
<p style="margin-top: 1em">Display additional
 +
information.</p> </td>
 +
<td width="31%">
 +
</td></tr>
 +
</table>
 +
 
 +
== EXIT STATUS ==
  
 
<p style="margin-left:11%; margin-top: 1em">Normally, the
 
<p style="margin-left:11%; margin-top: 1em">Normally, the

Latest revision as of 13:11, 11 July 2011

NAME[edit]

vzcalc − calculate resource usage of a container

SYNOPSIS[edit]

vzcalc

[-v] CTID

DESCRIPTION[edit]

This utility displays the share of the host system resources a particular container is using. If the container is running, the current usage is displayed. High utilization values (>100%) mean the system is overloaded (or the container has an invalid configuration).
Current

Shows the amount of the resources consumed by the container at a given time.

Promised

Shows the resources soft limit values "promised" for a given container.

Max

Shows the resources hard limit values "promised" for a given container.

If the -v option is specified, the following additional information is also displayed:
Low Mem

The part of memory residing at lower addresses and directly accessed by the kernel (only makes sense for 32-bit architectures).

Total RAM

Total memory.

Mem+Swap

Amount of memory available for applications (both RAM and swap space).

Alloc Mem

Standard memory allocations made for applications in a container. This is a more "virtual" system resource than RAM or RAM and swap.

Num. Proc

Number of processes.

OPTIONS[edit]

-v

Display additional information.

EXIT STATUS[edit]

Normally, the exit status is 0. On error, the exit status is 1.

LICENSE[edit]

Copyright (C) 2000-2009, Parallels, Inc. Licensed under GNU GPL.