A tool to change the priority of a process, giving it more or less CPU time.

learn more… | top users | synonyms

4
votes
2answers
38 views

Is it possible to force a group member to run something allowed by sudoers as himself only?

The sudoers line is %game_servers ALL= NOPASSWD:/usr/bin/renice which allows group members renice any process run by any user without pw, but I'd like to allow group members renice their own ...
3
votes
1answer
39 views

Different between `ulimit -e` and `renice`?

I would like to run a backup script in low CPU and disk I/O. Is there any different between this: #!/bin/bash ulimit -e 19 ionice -c3 -p $$ and this: #!/bin/bash ionice -c3 -p $$ renice -n 19 ...
10
votes
2answers
745 views

What does a niceness value of (-) mean?

According to the man page, and wikipedia; nice ranges from -20 to 20. Yet when I run the following command, I find some processes have a non numerical value such as (-). See the sixth column from ...
0
votes
1answer
30 views

HTOP nice level mismatch with the nice command?

I executed some commands with nice -20 but in htop the NI appears in red and as 19, why is this?
17
votes
3answers
1k views

Why can't I use renice to increase a process' nice value?

From man renice: Users other than the super-user may only alter the priority of processes they own, and can only monotonically increase their ``nice value'' (for security reasons) within the ...
2
votes
1answer
95 views

How to renice a group of processes?

lb build can build live system image, and it invokes many processes while building the image. If I start it as below: # nice -n 19 ionice -n 7 -c 3 lb build all the children processes get the same ...
1
vote
2answers
64 views

Environment variable for command called via nice

I need to set an environment variable for a command that is being called via nice. [Bash and dash, Slackware and FreeBSD.] $ JIM=20 nice -n 10 echo $JIM $ Nope, echo can't see JIM $ nice -n ...
1
vote
2answers
62 views

Increase nice value for many processes

Say I have launched a couple of non-timecritical applications such as a text editor a web browser etc and one more time critical (audio)application. Is there a utility that simulates the opposite of ...
3
votes
3answers
498 views

Is setting a higher nice level for a process an effective way to reduce its impact on system load/CPU time?

I have an rsync cron job which is pushing the server load and triggering monitor alerts. If I set the job to be run with a high nice level, would that effectively reduce the impact it has on system ...
5
votes
2answers
315 views

How can I allow a user to prioritize a process to negative niceness?

I want a user to run a specific process on the system with a negative nice value. I can't simply fork the process to background as this specific program is a minecraft server and I rely on the command ...
8
votes
1answer
525 views

How is nice working?

sched_setscheduler says : All scheduling is preemptive: if a process with a higher static priority becomes ready to run, the currently running process will be preempted and ...
1
vote
1answer
215 views

Run command after nice command has finished

I have 3 nice commands that are dumping some databases, and compress assets for a backup. After that, the files should be copied to another server. I'm using this command: nice mysqldump -u user1 ...
6
votes
4answers
2k views

How do I start a process with a nice value of -20 and not give it root privilege?

I would like to start a process with a nice value of -20. This requires me to use a command like - sudo nice -n -20 matlab. However, this starts matlab as root too. Is there a way to have matlab as ...
3
votes
1answer
203 views

Is there a way to renice the network stack?

I have an ARM Linux board that is a router to 16 other boards. When all these download their updates via the router, the network routing effort starves the user space so that a software watchdog (and ...
1
vote
1answer
122 views

NICE a process and set it to RT

I have a Fedora system with sopcast running two streams. When I watch the stream locally it looks perfectly. But after being processed through my Fedora-box its a bit choppy. I want to set the streams ...
4
votes
2answers
906 views

How can I make all my processes start with niceness 5

I know that niceness values are inherited from the niceness value of the parent process, but can I globally change the default niceness value for a particular user (myself). In this case I have a ...
3
votes
1answer
351 views

Is there any use for RLIMIT_NICE?

I am using prlimit in Ubuntu to do some resource restrictions in my sandbox which has been very helpful. However, I am not quite sure what to do with RLIMIT_NICE. The docs say: RLIMIT_NICE (since ...
6
votes
1answer
2k views

Nice and child processes

Can someone tell me what the relationship between a specified nice level and child processes ? for example, if I have a default nice of 0, and i start a script with nice 5, which in turn starts some ...
7
votes
1answer
220 views

Prioritise X applications with focus

Is there a way to prioritise X applications with focus, preferably both in terms of CPU and I/O? Something like all X applications are niced and ioniced down in priority, but when they gain focus ...
3
votes
2answers
2k views

Setting nice and ionice for rsync via xinetd

I am attempting to set nice and ionice for rsync via xinetd. I am running Fedora 16. The reason I would like to use these values is to reduce the rsync process to an idle state so other processes run ...
7
votes
2answers
348 views

Set niceness to piped command

I need to execute a set of "piped" commands with altered niceness level. Example: nice -n 15 command1 | command2 | command3 In this case niceness is altered to "15" only for command1. How to change ...
2
votes
3answers
252 views

Execute and renice a process in one command

Does anyone know if it's possible to execute and renice a process in one command, i.e. without having to look up the command in the list of processes using the ps command and then renice that ...
3
votes
1answer
427 views

Get load average excluding niced processes

Is there a way to return the load averages, excluding any load caused by nice'd processes? We have a load balancing mechanism in place that checks the load of multiple Linux servers, and submits a ...
4
votes
1answer
539 views

Does IO prioritise by the very nature of renicing a task?

The CFQ IO scheduler supports priorities though I am not sure that Deadline does (I believe not). The premise is that when I renice a task it gets a larger share of CPU under the Completely Fair ...
5
votes
2answers
5k views

Set default nice value for a given user (limits.conf)

Could someone tell me how to set the default value of nice (as displayed by top) of a user? I have found that /etc/security/limits.conf is the place but if I put either: username_of_a_guy - nice ...