Questions tagged [renice]
12 questions
13
votes
7 answers
Is it possible to renice a subprocess?
I know about os.nice() it works perfect for parent process, but I need to do renice of my child subprocesses. I found way to do this, but it seems to be not very handy and too excessive:
os.system("renice -n %d %d" % ( new_nice, suprocess.pid )…

ramusus
- 7,789
- 5
- 38
- 45
11
votes
1 answer
Does renice on a parent renice the child?
I know if I nice a shell script (ie: before it runs) all processes that start from the shell script will also be niced.
What if I start a shell script and the renice it, do all the child processes become reniced as well?
Looked in the renice man…

hhafez
- 38,949
- 39
- 113
- 143
8
votes
5 answers
Is there some way to "nice" my JavaScript execution?
I'd like to run some calculations in a browser window, but I don't want it to slow the client computer down for user interaction, especially for single core machines. Is there some way to adjust the nice level of my executing JavaScript so that it…

shino
- 4,562
- 5
- 38
- 57
3
votes
1 answer
sudo renice in python
Generically, this is a well answered question. Linux doesn't allow non-privileged users to lower a PID's niceness, and running things as root is its own can of worms.
That said, here are my specifics: I've got a user account that manages a few…

pdm
- 1,027
- 1
- 9
- 24
2
votes
1 answer
How to change priority of specific thread (LWT) in Linux?
It's possible to see priorities and scheduling policies of all threads of a process like that:
ps H -o 'tid pri cls comm' PID
How to change the individual thread priorities from the command line?
The commands like renice and chrt seem to affect the…

Velkan
- 7,067
- 6
- 43
- 87
2
votes
0 answers
Cinnamon renice on launch
I installed Ubuntu and changed shell to Cinnamon. Is there any possible way to renice on launch Cinnamon to, let's say, -19?
I tried to change /usr/bin/cinnamon_launcher like this, but it doesn't help:
cinnamon_pid = os.fork()
if cinnamon_pid == 0:
…

vertexodessa
- 53
- 1
- 4
1
vote
2 answers
‘Nice-ness’ of a process inside a container
So in my current app setting a certain process running inside a container runs another process. I need to set the nice value of the new process to be higher.
When ran on the OS I could just do
nice -n19 second_task. How does this work in the context…

Dean Shandler
- 15
- 4
1
vote
1 answer
Set Niceness of PSOCK cluster in R
I would like to increase the niceness of my cluster jobs. The following code is successful:
> cl <- makePSOCKcluster(rep('localhost', 2))
> clusterEvalQ(cl = cl, rnorm(3))
[[1]]
[1] -0.6452848 -0.9899609 0.3083131
[[2]]
[1] 1.1687733 -0.1930413 …

mcanearm
- 60
- 5
1
vote
0 answers
Changing the scheduling type for process in android
I want my application to get highest priority and time slice it needs from system.
For this I changed the priority of my android process using renice command I am able to set the priority.
Would like to understand what all scheduling types are…

vinayak kulkarni
- 11
- 2
1
vote
1 answer
Set 'nice' value to concrete processes, by default
I would like to set specific "nice" values to several processes in a laptop. For example, I would like the window manager to run at -10, and keep the default at 0.
I know that "renice" can change the niceness of a processes, but this is…
1
vote
1 answer
Nice and Renice commands
I am interested in knowing what are the kernel side methods that get called when you issue the nice and renice commands? I found the set_user_nice() in the kernel side. However it's arguments are not pid and nice value, which we use when we issue…

user340
- 375
- 12
- 28
0
votes
1 answer
Does PHP proc_nice leave Apache threads at new priority setting?
When executing proc_nice(), is it actually nice'ing Apache's thread?
If so, and if the current user (non-super user) can't renice to its original priority is killing the Apache thread appropriate (apache_child_terminate) on an Apache 2.0x…

ChronoFish
- 3,589
- 5
- 27
- 38