Questions tagged [nice]

nice is a UNIX kernel call and the name of a utility employed to lower or raise a process' CPU priority.

nice is a program found on Unix and Unix-like operating systems such as Linux.

It directly maps to a kernel call of the same name. nice is used to invoke a utility or shell script with a particular priority, thus giving the process more or less CPU time than other processes. A niceness of −20 is the highest priority and 19 or 20 is the lowest priority. The default niceness for processes is inherited from its parent process, usually 0.

Source: Wikipedia

For questions about the Nice programming language, use .

101 questions
1
vote
2 answers

Zipping up a Web Root: Why didn't nice reduce CPU load?

nice -n 19 find . -type f \( -iname "*.php" -o -iname "*.js" -o -iname "*.inc" \) \ -exec zip live.zip '{}' \; The above command runs on our live CentOS server as though the nice command was absent. After 60 seconds or so I can see that zip is on…
zzapper
  • 4,743
  • 5
  • 48
  • 45
0
votes
0 answers

Why does a WSL process' "nice" value default to 5 rather than 0, and how can I fix it?

In one of my Linux experiments, I occasionally found that my WSL system gives a default nice value of 5, rather than what everybody says, 0 by default. Here's how I find the default nice value: First, make an infinite loop process to take up all CPU…
Gorun
  • 134
  • 6
0
votes
0 answers

How can I give different priorities to flask web-apps?

My Ubuntu server runs several applications built in Python (Django or Flask), and deployed using gunicorn. Some of them also use nginx. I would like to give some of these applications a higher priority, so that, if a prioritized application is used,…
Erel Segal-Halevi
  • 33,955
  • 36
  • 114
  • 183
0
votes
0 answers

Conversion of Win32 priority to Linux nice value in C++

Priority (PR) for a non-real time process is calculated by adding the 20 and nice(NI) value. The nice value ranges from -20 to 19 where the -20 denotes the highest priority and 19 denotes the lowest priority. PR (0..39) = 20 + NI (-20 ... 19) 0 …
Rose
  • 11
  • 6
0
votes
1 answer

How can I use the "nice" command in combination with the "parallel" command to set the priority level of multiple processes in Linux?

How can I use the "nice" command in combination with the "parallel" command to set the priority level of multiple processes in Linux? I have tried the following: nice -n 3 parallel command ::: arg1 arg2 arg3 arg4 parallel --nice 19 command ::: arg1…
Maria
  • 73
  • 6
0
votes
0 answers

Using nice command on gunicorn service workers

I have a service: [Unit] Description=tweetsift After=network.target [Service] User=root Group=root WorkingDirectory=/var/www/html ExecStart=sudo /usr/bin/nice -n -20 sudo -u root sudo gunicorn -w 4 -b 0.0.0.0:5000…
lasvegas
  • 39
  • 7
0
votes
0 answers

Connection speed or QOS indicator for NICE InContact?

We have multiple remote agents who are using NICE InContact for WFM. They are having issues with call refusals we believe, due to inconsistent upstream bandwidth. Does NICE InContact have a tool to test connectivity from the client to their platform…
Louis M
  • 11
  • 3
0
votes
1 answer

how to nice Jupiter notebook from conda

I am trying to set less than 0 niceness value (high priority) for Jupiter notebook. Everything is based on conda environment Firstly, this runs without any issue: jupyter notebook --ip 0.0.0.0 --port 8888; I tried: $ nice -n -1 jupyter notebook…
user40780
  • 1,828
  • 7
  • 29
  • 50
0
votes
0 answers

Why WSL Linux concurrent processes not fully utilizing CPU are stuck in suspended mode?

I am very new to working with Linux so please be as elaborate as possible in your answers, thanks! I am running WSL on Windows 10 using Ubuntu 18.04 LTS, and I am trying to run several (56) parallel processes in the background. From what I know,…
0
votes
1 answer

What is the nice value of a thread after pthread_create()?

I'm using the libx264 library to compress video data to... x264. I used the default to have the library create as many (few) threads as it wants: param.i_threads = X264_THREADS_AUTO; This works great on my server which has 64 processors (2 CPUs…
Alexis Wilke
  • 19,179
  • 10
  • 84
  • 156
0
votes
1 answer

Run php-fpm pools with NICE values

Can php-fpm pools have NICE values? Each one of my pools run under it's own user and group, like: [pool1] user = pool1 group = pool1 ... I've tried to create /etc/security/limits.d/prio.conf with contents: @pool1 hard priority 39 But with htop…
CrazyRabbit
  • 251
  • 3
  • 10
0
votes
1 answer

How to cancel a SSH connection while a process is running?

I am using ssh to connect to another (faster) computer in order to run some python code there. As I expect it to run several hours, I would like to disconnect after running it, like this: $ ssh user@my-other-computer $ python file.py & $ exit…
ersbygre1
  • 181
  • 6
0
votes
1 answer

How to illustrate use of smaller nice value of process in Linux?

I want to see the real change in process launch and execution after changing nice value. When i allocate lower nice value to process, what changes should i see. $ps -l |head -2 UID PID PPID F CPU PRI NI SZ RSS WCHAN S …
0
votes
1 answer

How to change the priority(nice value) of an android service?

I am porting Android P in a device, in that I have seen some lags in the systemui(com.android.systemui) especially in volume bar actions. So I increased the priority of systemui using renice command it works better after that. So now I want to add…
0
votes
2 answers

Unable to check checkbox of nice select multiple dropdown?

I am using nice select dropdown, which has multiple options that i can check or uncheck. Issue here is that I can either check or uncheck all options and what needed is checking particular checkboxes on load of page. I tried a lot and also added…
Gargee
  • 11
  • 1
  • 10