Hot answers tagged priority
I would start it normally and use "renice" afterwards... However I was able to make a quick hack together with "su" which works: sudo nice -n -20 su -c command_to_run user_to_run_as (If you don't have to give sudo a password - perhaps because you've already just given it - you may add an "&" to put the whole thing in the background.) Since you ...
renice does affect the priority of a process. But as you've experienced, just because a process has higher priority doesn't imply that it will have all the resources it needs. A higher priority merely gives the process a bigger chance to grab resources. renice only affects CPU time. So it only has an effect if two or more processes are competing for CPU ...
Process priority is not the only thing that comes into play when you are trying to tweak user experience. Compiling the kernel is a rather I/O-heavy thing - lots of reading/writing from/to small files which can stretch the file system quite a bit (there is a reason why it is sometimes used as a benchmark in its own right), especially on a multiprocessor ...
Relatively new feature to the kernel, but if your platform supports it you can create a cgroup for the pid after the fact give it the PID of the process and manipulate its cpu.shares value to give it as much as or as little as it needs. more info
Generally this is work for a traffic shaper, so that is what you should look for. As for identifying what packets belong to what application, you will probably want to look at network namespaces and/or Cgroups, but I would expect there to be some ready-to-use solutions (likely based on these).
In fact, RLIMIT_NICE allows you to bypass the basic rule that says that "a process can raise its nice value only if owned by root". Demonstration: # ulimit -e 30 # su nobody $ nice -n -10 top You will see that your top process runs with niceness -10. Now if you try nice -n -11 top, it will run with niceness 0, because -11 is not allowed by ...
Only top voted, non community-wiki answers of a minimum length are eligible