limiting cpu core number [message #39206] |
Sun, 28 March 2010 10:56 |
jevelyt
Messages: 19 Registered: January 2009
|
Junior Member |
|
|
Hello,
I have 8 cores CPU. When i create container everybody are getting all 8 cores. Is there any way to limit cpu core number? For example instead of giving 8 x 10% (8 cores cpu and 10% per core) give 4 x 20% or 1 core with 80% CPU?
Thank you.
|
|
|
|
|
Re: limiting cpu core number [message #39341 is a reply to message #39206] |
Wed, 07 April 2010 14:34 |
jevelyt
Messages: 19 Registered: January 2009
|
Junior Member |
|
|
Thank you very much
One more interesting question:
For example we have 8 cores CPU and we start 1 process which eats 50% of 1 core CPU (when we look through - htop) and other 7 cores eats ~0-2%.
If we will limit cpu cores to 4, the Mhz per core will double and we will get increase in performance for that process i.e. there will be 4 cores and that process will eat not 50%, but ~25% theoretically? I'm right or no?
It's interesting because there are a lot of processes which don't support multicore and it will be better if we will limit cores for ex. to 1 to get improvement in performance.
Thank you.
[Updated on: Wed, 07 April 2010 14:36] Report message to a moderator
|
|
|