User`s guide

Advanced Tasks 190
200 denotes the number of pages to be shown in the /proc/meminfo output.
In our case the /proc/meminfo output inside Container 101 may look like the following:
# pctl exec 101 cat /proc/meminfo
MemTotal: 8000 kB
MemFree: 5140 kB
LowTotal: 8000 kB
LowFree: 5140 kB
Buffers: 0 kB
Cached: 0 kB
SwapCached: 0 kB
HighTotal: 0 kB
HighFree: 0 kB
...
When working in this mode, keep in mind the following:
The specified amount of memory (in our case it is 8000 Kb) is always shown in the
MemTotal and LowTotal fields of the cat /proc/meminfo output.
The values in the MemFree and LowFree fields are calculated automatically by the
system.
All the other fields in the command output have the values set to 0.
To set the output of /proc/meminfo inside Container 101 to the 'virtualized in
privvmpages' mode, execute the following command:
# pctl set 101 --meminfo privvmpages:3 --save
The amount of memory that will be displayed by running the cat /proc/meminfo
command inside Container 101 is calculated using the following formulas:
Privvmpages_Value * 3 * 4Kb if Container 101 is running a 32-bit operating
system (OS) or an OS for x86-64 processors and
Privvmpages_Value * 3 * 16Kb if Container 101 is running an OS for IA-64
processors
where Privvmpages_Value denotes the value of the PRIVVMPAGES parameter set in
the Container configuration file and 3 is an arbitrary integer coefficient which you can
modify to increase/decrease the amount of memory in the /proc/meminfo output.
Assuming that the privvmpages parameter for Container 101 is set to 10000, your output
may look as follows:
# pctl exec 101 cat /proc/meminfo
MemTotal: 120000 kB
MemFree: 78248 kB
LowTotal: 120000 kB
LowFree: 78248 kB
Buffers: 0 kB
Cached: 0 kB
SwapCached: 0 kB
HighTotal: 0 kB
HighFree: 0 kB
...
As can be seen from the example above, the displayed records comply with the same rules
as the records in the 'virtualized in pages' mode.
To revert the output of /proc/meminfo to the default mode, execute the following
command:
# pctl set 101 --meminfo none --save