User`s guide

Advanced Tasks 189
Customizing /proc/meminfo Output
Inside Container
The /proc/meminfo virtual file allows you to view the information about memory usage
(both physical and swap) on the system. In the current version of Parallels Server Bare Metal,
you can customize the output of this file inside a particular Container and set it to one of the
following modes:
Non-virtualized. In this case running the cat /proc/meminfo command inside a
Container will display the information about the physical memory on the server (total, used,
free, shared, etc.), in kilobytes.
Virtualized in pages. Setting the /proc/meminfo output to this mode allows you to
specify what amount of total memory (in kilobytes) will be displayed while running the cat
/proc/meminfo command inside this or that Container.
Virtualized in privvmpages. Setting the /proc/meminfo output to this mode also allows
you to arbitrarily specify the amount of total memory (in kilobytes) to be displayed while
running the cat /proc/meminfo command inside this or that Container. As distinct
from the previous mode, the amount of memory to be shown in this mode is calculated on
the basis of the value of the PRIVVMPAGES parameter set in the Container configuration
file.
Notes:
1. Enabling this or that mode for a Container does not exert any influence on the real resources
allocation to the Container. It is only used to modify the way the /proc/meminfo output will
look inside this Container.
2. The output of the /proc/meminfo file cannot be customized if the new SLM functionality
is enabled on the Parallels server. In this case, the cat /proc/meminfo command executed
inside a Container always displays the amount of memory set for this Container using the --
slmmemorylimit option of the pctl set command.
During the Parallels Server Bare Metal installation, the output of the /proc/meminfo virtual
file is set to the 'non-virtualized' mode, i.e. running the cat /proc/meminfo command
inside any Container will show the information about the memory usage on the Parallels server.
You can use the --meminfo option with the pctl set command to switch between
different modes:
To set the output of /proc/meminfo inside Container 101 to the 'virtualized in pages'
mode, issue the following command:
# pctl set 101 --meminfo pages:2000 --save
The amount of memory that will be displayed by running the cat /proc/meminfo
command inside Container 101 is defined by the data specified after the --meminfo
option:
pages tells the pctl set command that you wish to enable the 'virtualized in pages'
mode for the /proc/meminfo output and simultaneously denotes the units of
measurement to be used for setting the amount of memory (e.g. 4-Kb pages for
Containers running 32-bit operating systems).