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

learn more… | top users | synonyms

1
vote
1answer
18 views

Can making CPU-intensive processes lowest priority (19) have adverse effects?

When I make a CPU-intensive process lowest priority (niceness of 19), it seems the amount of real memory consumption goes up. Perhaps this has other causes. But, can making CPU-intensive processes ...
4
votes
1answer
65 views

Why is nice-level ignored? (Between different login sessions — honoured if started from same session.)

When I start two CPU-eating processes with different nice-level, e.g. Process 1: nice -19 sh -c 'while true; do :; done' Process 2: sh -c 'while :; do true; done' (I changed the order of : and ...
0
votes
0answers
19 views

Is there a way to specify gpu priority per process?

We have niceness value on Linux, which ~means CPU priority (PR = 20 + NI). We can increase niceness for heavy task, decrease it for main task etc. But is there an analogue of niceness, but for GPU?
2
votes
1answer
34 views

Is there any command that limits the use of cpu resources by percentage?

So far I've been using nice -n 10, but that's just sets the priority of the command I want to run low, but if there's no other process running at that time the command will take all the remaining cpu ...
0
votes
1answer
39 views

`cpulimit` and `nice` not effective in limiting the cpu usage of a python program that contains heavvy computations using theano

I am running a program written in python that makes heavy computations using theano. As it is a very CPU-intensive program, it is disrupting all my other activies on my laptop. For this reason I ...
0
votes
0answers
37 views

Would a process with the higest nice value use only *free* CPU time

I want to be sure that a scheduled job, mostly using gzip, will not impact the production. This is an old Linux server with few CPU, it has SAN attachment so the gzip is running at its maximum using ...
-3
votes
1answer
58 views

What is the difference between nice and renice?

What is the difference between the two commands nice and renice to manage process priority?
0
votes
1answer
26 views

nice command behavior when only 1 function running

I just learned the existence of nice (and ionice) which seems to be really interesting. I just want to launch a process 'p_low' with less priority than my ususal one 'p_normal'. What I was able to ...
1
vote
0answers
43 views

getpriority returning different value on different hosts with same kernel version

I am running centos 6.6 on same type of hardware with kernel version "2.6.32-504.30.3.el6.x86_64" Has anybody seen this why the below code when compiled and executed gives a different value on two ...
1
vote
2answers
87 views

What makes it possible for a `pulseaudio' process to get the nice level of -11?

I noticed that a pulseaudio process on my Gentoo Linux machine has the nice level of -11. But I don't know how it has gained such a high priority regardless of being owned by a normal user. I know a ...
1
vote
0answers
30 views

What is the best practice for setting a process niceness?

I have an agent which runs on my customer's hosts. I want this agent to leave the smallest possible footprint on their hosts, that is, I don't want to degrade my customers' performance. My agent runs ...
2
votes
1answer
59 views

Trying to Write a Script to Kill Processes based on niceness

I am trying to write a script in bash that will kill any of my own processes (and run indefinitely) if those processes have a niceness value of 4 or lower. Can anyone tell me what might be wrong? ...
19
votes
2answers
416 views

Why does niceness range from -20 to 19?

The nice command allows you to adjust the scheduling priority ("niceness") of a program. On all Unix-like systems I've used, niceness is specified by a range of integers, where -20 is the most ...
2
votes
0answers
45 views

Use-spare-network-capacity wrapper (network nice)

I would like to use my 100/100 Mbps connection for Tor. I want to give it all my spare capacity, but I do not want to have my connection slowed down by Tor the 1% of the time when I actually need the ...
0
votes
2answers
43 views

Are there any drawbacks/caveats to changing process priority on linux?

I'm writing a program launcher that uses nice to launch X applications with a higher than usual priority and while there's plenty of guides to using nice/renice there's not much discussion about best ...
0
votes
2answers
49 views

Which tool can be used to configure the CPU priority of a process?

I know that you can use nice to re assign priorities of processes but which tool can be used to configure the CPU priority of a process ?
5
votes
3answers
220 views

How can I verify `nice` is working?

Looking at different jobs running on a system with shared resources, it seems the nice values are being ignored. Many jobs with nice set at 19 are running at 100% cpu load while other many other jobs ...
1
vote
1answer
81 views

Why have the notion of 'nice'?

I know what 'nice' is and how it maps to priority, this is not the question. Linux priorities range from 0-139. 0-99 is real time, 100-139 is user space. Nice maps onto priority: -20 → 100 0 → 120 ...
1
vote
1answer
183 views

How do I renice my login shell?

I'm on a multi user login-node, a front end node to a large national bioinformatics compute farm, running Linux. Many users misbehave by running computationally intensive jobs on the login-nodes. I ...
1
vote
2answers
83 views

How to change the “niceness” (CPU priority) of a detached tmux session?

I made a very simple web crawler that writes output to the terminal (stdout), so I generally know how fast it's running. After I detach from tmux and check the MySQL table, it seems the script is ...
4
votes
1answer
456 views

Using nice on bash (or other) subshell?

Say I'm working on a sluggish system and notice (say via top) that CPU usage is up around 100%, but I don't want to kill the process. If I want to do other work on the machine and just make that ...
3
votes
1answer
150 views

Is there a way to make nice (process priority) values survive a reboot?

I've been working on setting my Pi up as a seedbox, which I have no finally got working. My issue is that I also use this Pi as a mumble server and NAS for my media in home. I'm quite comfortable with ...
0
votes
2answers
79 views

What are some practical purposes for using renice? [closed]

I'm having a hard time finding a purposeful need for using renice more often, and I would like to know if there are any scenarios in which using process prioritization and adjusting it on-the-fly has ...
0
votes
2answers
132 views

Ionice on cp - why I need set dir

I'm wondering why I can't set ionice for cp. ionice -c2 -n0 cp I run this command and I get: cp: missing file argument Try `cp --help' for more information Why? I saw topic here about nice ...
1
vote
2answers
142 views

`nice` not really helping on Linux

I am a regular user on a remote Debian installation (not an administrator). I run there a special-purpose network server which is used very extensively. The server produces daily logs which are quite ...
4
votes
1answer
441 views

GNU Parallel Limit Memory Usage

Is it possible to limit the memory usage of all processes started by GNU parallel? I realize there are ways to limit the number of jobs, but in cases where it isn't easy to predict the memory usage ...
1
vote
1answer
107 views

Disk is a bottleneck. Background processes make things worse. How to improve responsiveness?

Often, the bottleneck of my laptop is the disk. When doing some disk-intensive computations, automatically-started background processes like updatedb, find /something etc. kick in, making things even ...
1
vote
0answers
115 views

How can I limit the bandwith to a davfs-mounted cloud storage?

I need to copy approx 400 files of approx. 25 MB each to a davfs-mounted cloud storage. I have tried the following commands to limit the CPU-load and IO-load: nice -n 15 ionice -c 3 rsync -avhW --no-...
1
vote
4answers
2k views

Run linux process at very very low priority?

I have regular process that not so important but will consume so much CPU power, and I have another process which is really important, but it spend most of the time idle, but when it got a job it ...
3
votes
0answers
1k views

Does the timeslice depend on process priority or not under Completely Fair Scheduling?

I'm trying to understand the Completely Fair Scheduler (CFS). According to Robert Love in Linux Kernel Development, 3rd edition(italics his, bold mine): Rather than assign each process a ...
4
votes
2answers
90 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 ...
4
votes
1answer
337 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 -...
12
votes
2answers
2k 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 ...
1
vote
2answers
1k 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?
20
votes
3answers
7k 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 ...
4
votes
1answer
1k 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
3answers
209 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
123 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 ...
7
votes
4answers
4k 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 ...
7
votes
2answers
1k 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 ...
15
votes
1answer
3k 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
414 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 -p'...
10
votes
6answers
9k 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
311 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
253 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 ...
6
votes
2answers
2k 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
782 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 ...
11
votes
1answer
5k views

Nice and child processes

Can someone tell me what is 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 ...
7
votes
1answer
274 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
3k 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 ...