Is there a way of limiting number of cpu cores seen from inside a VE? I have an eight core server, but I want my VE to see only one particular core.
Thanx!
|
Is there a way of limiting number of cpu cores seen from inside a VE? I have an eight core server, but I want my VE to see only one particular core. Thanx!
| |||
|
feedback
|
|
If you vz is number 101, than use the following to set it two 2 CPUs (change the number accordingly):
No restart of the VE required. The | ||||
feedback
|
|
OpenVZ isn't really virtualization. It's containerization. So each container sees the system that it's on as it's own. To control how much cpu time each VE can get you have to assign each VE cpucredits. This page goes into how set the limits on each VE. Edit: Just found this in the vzctl man page. So Kyle's answer is correct. But I'll leave this answer here b/c there are more than one nob here to tweak. | |||||
feedback
|