[Users] Assign a container to a dedicated CPU core?

2011-03-28 Thread Benjamin Henrion
Hi,

I wanted to know if OpenVZ could assign all processes of a container
to a single CPU core?

It comes to my mind after reading this article:

http://www.cyberciti.biz/tips/setting-processor-affinity-certain-task-or-process.html

Best,

-- 
Benjamin Henrion bhenrion at ffii.org
FFII Brussels - +32-484-566109 - +32-2-4148403
In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators.
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] Assign a container to a dedicated CPU core?

2011-03-28 Thread Maxim Dolgikh
Hi,

you can do this with --cpus, for example
vzctl set 101 --cpus 1--save


On Monday 28 March 2011 16:56:39 Benjamin Henrion wrote:
 Hi,
 
 I wanted to know if OpenVZ could assign all processes of a container
 to a single CPU core?
 
 It comes to my mind after reading this article:
 
 http://www.cyberciti.biz/tips/setting-processor-affinity-certain-task-or-pr
 ocess.html
 
 Best,
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users