Public bug reported:

Lucid 10.04.3 LTS
Cpulimit 1.1-13

Cpulimit is not working correctly with mulitcore CPUs.  From the
website:

If your machine has one processor you can limit the percentage from 0%
to 100%, which means that if you set for example 50%, your process
cannot use more than 500 ms of cpu time for each second. But if your
machine has four processors, percentage may vary from 0% to 400%, so
setting the limit to 200% means to use no more than half of the
available power. In any case, the percentage is the same of what you see
when you run top.

However cpulimit will only allow a setting of 0-100.  If you attempt to
set a higher limit on a mulitcore cpu you will get this error:

gotit@home-desktop:~$ cpulimit -e ghb -l 200

Error: limit must be in the range 0-100


Having a 4 core cpu, if I select a limit of 50%, cpulimit will limit the cpu 
usage to 12%.  Setting the limit to 99% results in a 25% cpu usage and setting 
the limit to 100% results in no limit.

Users with multicore cpu should be able to set the limit above 100 to
adjust cpu usage accordingly,

** Affects: cpulimit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/822292

Title:
  cpulimit not working correctly with mulitcore CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cpulimit/+bug/822292/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to