In VSX Gateways with Gaia kernel 2.6.18, you can monitor the CPU consumption with the Resource Control feature - the command "
fw vsx resctrl stat".
In VSX Gateways R80.30 with Gaia kernel 3.10, the Resource Control is not supported (see sk170323).
In VSX Gateways R80.40 and higher, you can monitor the CPU consumption in the CPView utility (see sk101878):
Connect to the command line on the VSX Gateway / VSX Cluster Member.
Go to the context of the Virtual System 0:
- In the Expert mode:
- In Gaia Clish:
set virtual-system 0
Start the CPView utility. Run:
At the top, click Advanced > VSX > VSs > Physical-Resources.
This tab shows the CPU consumption by Virtual Systems and by Virtual Routers.
The CPView utility uses the "Control Groups (cgroups)" API provided by the Linux operating system (for example, see https://www.kernel.org/doc/Documentation/cgroup-v1/cgroups.txt).
The "CPU %" column shows the percentage of CPU used by all the processes of each Virtual System. The column shows a percentage of a single CPU (the same behavior as in the "
In such case, the "CPU %" column shows 130% for VS1.
To get the CPU usage for the VSX Gateway / VSX Cluster Member, divide the "CPU %" value in the Total Resource Consumption section by the number of the CPU cores.