OpenVZ Forum


Home » International » German » openvz und gameserver
Re: openvz und gameserver [message #37511 is a reply to message #37458] Sun, 20 September 2009 19:20 Go to previous messageGo to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

welcher OpenVZ Kernel ist im Einsatz ?

Bei dem stabilen Kernel Tree 2.6.18, aktuell (028stab064.7), dann könnten Dir die "CPU fair scheduler parameters" weiterhelfen, siehe die "man page" hierzu.

---8<...
CPU fair scheduler parameters

These parameters control CPU usage by container.

--cpuunits num
CPU weight for a container. Argument is positive non-zero number, passed to and used in the kernel fair scheduler. The larger the number is,
the more CPU time this container gets. Maximum value is 500000, minimal is 8. Number is relative to weights of all the other running contain-
ers. If cpuunits are not specified, default value of 1000 is used.

You can set CPU weight for CT0 (host system itself) as well (use vzctl set 0 --cpuunits num). Usually, OpenVZ initscript (/etc/init.d/vz)
takes care of setting this.

--cpulimit num[%]
Limit of CPU usage for the container, in per cent. Note if the computer has 2 CPUs, it has total of 200% CPU time. Default CPU limit is 0 (no
CPU limit).

--cpus num
sets number of CPUs available in the container.
</code>
---8<...

Gruß,
Thorsten
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: mit ONBOOT startet kein Netzwerk
Next Topic: swap file
Goto Forum:
  


Current Time: Fri Nov 08 21:21:48 GMT 2024

Total time taken to generate the page: 0.03274 seconds