Skip to main content
11 events
when toggle format what by license comment
Jul 5, 2023 at 23:36 comment added Gordon Fogus The OP asked how to "limit the %CPU used by a process" and this answer does not necessarily do that. It is true that nice will lower the priority of a process, but if nothing else is competing for those CPU cycles, the process will still get them. So, you can heavily nice a process only to find that it is using almost your entire CPU (e.g., "400%" CPU).
Jun 30, 2023 at 13:40 comment added Motti Shneor I wonder what effect this has on a Zulu Java VM. Will it still perform reasonably? Will it not harm its internal timing mechanisms? Also on MacOS-X the "process" is not the basic object but rather the "Mach Task" and a process can have several tasks... is "nice" still the best way of doing this?
Sep 12, 2020 at 21:26 comment added Tim Campbell +1 - This is the most correct answer offered because 'nice' is part of the OS and directly ties into the algorithm used by the kernel's scheduler to decide which process gets the next slice of CPU time. It will always work on any Unix or Linux system and is not dependent on any 3rd party add-one. The bonus is that those processes can use more CPU if they aren't competing for CPU time with other processes.
S Aug 8, 2019 at 22:32 history edited mmmmmm CC BY-SA 4.0
on macOS, "Drive" has a different name (OP mentions Safari); should probably show how to reverse the effects (since OP isn't likely familiar with niceness).
S Aug 8, 2019 at 22:32 history suggested Jesse Calvillo CC BY-SA 4.0
on macOS, "Drive" has a different name (OP mentions Safari); should probably show how to reverse the effects (since OP isn't likely familiar with niceness).
Aug 8, 2019 at 20:51 review Suggested edits
S Aug 8, 2019 at 22:32
Aug 4, 2018 at 12:07 vote accept Pietro
Aug 10, 2014 at 5:22 review Late answers
Aug 10, 2014 at 6:11
Aug 10, 2014 at 5:09 history edited nohillside CC BY-SA 3.0
added 2 characters in body
Aug 10, 2014 at 5:07 review First posts
Aug 10, 2014 at 5:09
Aug 10, 2014 at 5:02 history answered Noam CC BY-SA 3.0