Download Parallels Virtuozzo Containers for Linux
Transcript
Advanced Tasks 331 In our case the /proc/meminfo output inside Container 101 may look like the following: # vzctl 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 ... While working in this mode, please 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 on the Node: # vzctl 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: # vzctl 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.
Related documents
Parallels Virtuozzo Containers 4.6 for Linux
User`s Guide - Canadian Web Hosting
Backup/Restore Utilities Guide
Parallels Virtuozzo Containers 4.7 for Linux
Diplomarbeit Servervirtualisierung English
Parallels PSBM4BX-SB-01-EN
Virtuozzo SWsoft OpenVZ User`s guide
Plesk 8.2 for Linux/Unix Administrator`s Guide
Online Sharing User Manual
Virtuozzo SWsoft OpenVZ User`s guide
Anleitung
eMail-Benutzerhandbuch - seiten