How fine virtualization could openvz do? [message #4231] |
Mon, 03 July 2006 12:05  |
thepontifex
Messages: 5 Registered: June 2006
|
Junior Member |
|
|
Hello together,
i read much docs about openvz in the last days and i test it currently with fedora c4 on the VE0 and fedora c5 at the ve's.
My hostsystem is an AMD 64 3800+ with 2GB RAM and 40 GB harddisk memory.
I read about the scalability of the VE's but one point is not clear for me:
Is it possible to simulate a specific hardware layout, for example each VE is a 100MHz CPU with 32 MB RAM and 1000 MB disk space?
The diskspace is no problem, for that i could use quota, but the rest?
Greetz
Frank
Frank
|
|
|
Re: How fine virtualization could openvz do? [message #4233 is a reply to message #4231] |
Mon, 03 July 2006 12:19   |
|
For the CPU side, you assign different cpuunits values to different VEs, and they get their CPU shares according to their cpuunits. That means a VE can have up to 100% of the CPU if nobody else is using it; in case more than one VE is using a CPU, CPU time will be distributed in proportions to VE's cpuunits.
In case you want to have an upper limit on the CPU time a VE can have, use cpulimit option. But this is not really needed, since OpenVZ CPU scheduler is "fair" ... so the only time you need this cpulimit is when you want to simulate a slow machine or smth like this.
For the RAM side, it is not that straightforward, since RAM is used for a lot of different tasks. In short, RAM available for a VE is regulated by a set of so called User Beancounters. For more info, search this forum for user beancounters (or UBC), read OpenVZ user's guide, and check http://wiki.openvz.org/Resource_management
Kir Kolyshkin
|
|
|
|
|
|
|