Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nice]

Nice or niceness refers to the priority of a running process; i.e. how much CPU time it can receive when required. Niceness ranges from -20 (the highest priority) to 20 (the lowest priority).

0
votes
1answer
37 views

Niceness and Priority of Processes

According to the some resources I have read, the process with low nice value has more priority. Because it has more priority, CPU allocates more time for that process. However, it sounds a little bit ...
0
votes
0answers
15 views

Isn't renice inversebly proportional to process priority [duplicate]

I run command: while true ; do echo HiMan ; sleep 0.02 ; done & [1] 11622 After: top | grep --line-buffered 11622 I got: 11622 mk 20 0 31104 3136 1680 S 3,0 0,0 0:01.55 ...
0
votes
0answers
379 views

Cannot start hadoop “localhost: nice: cannot set niceness”

Starting namenodes on [localhost] localhost: starting namenode, logging to /opt/hadoop-2.9.0/logs/hadoop-ha-namenode-root.out localhost: nice: cannot set niceness: Permission denied localhost: ...
1
vote
0answers
240 views

Docker child processes do not inherit niceness of daemon

I often run a lot of docker containers, which sometimes cause my system to freeze momentarily. To prevent this, I made a service that automatically sets the niceness of docker-containerd a bit higher. ...
6
votes
1answer
131 views

Does the nice value affect swap?

If the system doesn't have enough RAM for everything, does the kernel take the nice value into account when it decides what to swap out to reduce memory stress?
0
votes
0answers
36 views

Difference between decreasing priority vs increasing nice or vice versa [duplicate]

If we want to reduce the priority of a process, we can either decrease the priority or increase the nice value. Is there any difference between the two ? Lets say, the same binary is run twice and the ...
1
vote
1answer
146 views

Run part of a command with sudo [duplicate]

I want to create a keybinding Ctrl+Alt+Delete on my Ubuntu PC. It should open htop, but I want maximum priority for it. I use this command. xterm -fullscreen -fa 'Monospace' -fs 13 -e htop It works ...
1
vote
2answers
39 views

Piping to nice?

I have the following command (simplified): mysqldump <databases> | bzip2 > backupfile.sql.bz2 For some reason the bzip2 process went crazy and took the CPU load up to 60. I don't know why, ...
1
vote
1answer
962 views

How to set default nice value for a particular program?

Whenever I want to launch a program with a custom priority level, I have to type $nice -5 <Program> in the terminal. I want to set the custom priority level to particular program as default ...
4
votes
2answers
399 views

How to change “niceness” while perfoming top command?

I know that I can change the niceness using this command: renice [-n] priority [[-p] pid ...] [[-g] pgrp ...] [[-u] user ...] But it would be much more convenient if I could do it while scanning the ...
4
votes
1answer
126 views

Can I start an application with a specific nice value from its launcher?

Is there a way to get a program (i.e. Firefox) to execute with the nice command from the Launcher ("nice firefox")? Saw one (1) post elsewhere saying you could right-click the Launch icon and select "...
0
votes
0answers
67 views

Why do new processes default to priority “Very High”?

What service or job is causing this to happen? If I run the System Monitor I see that some processes for newly installed applications default to Very High. Here is an example, it includes some ...
2
votes
1answer
369 views

What exactly is meant by a “niced” and an “un-niced” user process?

I was using the "top " command and I came across the nice value. I am aware of the priorities and how a nice value indicates the priority of a process. But I can't seem to figure out what the term "...
1
vote
0answers
36 views

Is there a good way to ensure that I can still log into a machine even under heavy load?

I am considering increasing the priority of sshd by setting minimum niceness -20 via a nice stanza in the upstart script. Has anyone done this? Does it work? Has anyone done this and had problems? ...
2
votes
1answer
196 views

Better nice: how can I pause a demanding process completely if the computer is unidle?

Some background jobs on my PC do heavy processing. Running them with maximum nice level still produces slow interactivity and annoys me. Is there a better way than maximum nice? As soon as I use the ...
75
votes
3answers
73k views

Process 'niceness' vs. 'priority'

When running top, I can see this (shortened) example output: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4586 ipc-adm+ 20 0 1303900 605152 92844 S 30,6 29,3 3:...
3
votes
4answers
2k views

How to change niceness of process by name

Java process is killing my computer (Intel i3, 8GB RAM). It takes over whole CPU and system starts to hang. I was trying to change niceness of java processes but i have to control it for all time and ...
5
votes
1answer
2k views

Low priority process (nice 19) getting more CPU time than regular process (nice 0)

I have a server running Ubuntu server 14.04 64bit and I am having an "interesting" problem with it. I have 2 users running some programs concurrentlly - d and m. The processes of user "m" are not time ...
1
vote
1answer
1k views

Allow users to set higher (lower?) nice levels

I want to allow users to set a nicelevel lower than 0 (and any nice level really) in my system. I'm testing by logging in again as a user of the affected user group after I set the change and trying: ...
10
votes
1answer
2k views

How to prevent my system from becoming unresponsive when thrashing (out of RAM)?

I have 8GB of RAM, but sometimes I'm running a couple VMs and enough Chrome processes to use up most of my memory. That's usually fine, but sometimes my system starts thrashing, and it's difficult ...
0
votes
1answer
55 views

PID created with system()

i'm new in ubuntu. I'm creating a programm with opens 2/4/8 new process in separate terminals. Using system(). How can i get PID of them, or change nice value, using another terminal?
4
votes
1answer
163 views

why can user increase nice of process but decrease requires root?

I pulled up top and a program was using ~80-90% CPU. I increased the niceness, to see if I could reduce the load. Then I tried to reduce the nice of the same process back to it's initial level and was ...
4
votes
0answers
374 views

Nautilus slow if lot of images are in a directory

I have 400 images in a directory. I look at the directory with nautilus. The first time I open the directory it is very slow, I have a modern laptop with 4 cores and plenty RAM. My use case: open ...
6
votes
1answer
1k views

How do I provide arguments to a command run from gksudo?

I want to add a shortcut for gnome-system-monitor that runs with root access and has very high priority. My command for the shortcut is: gksudo -k -u root nice --20 gnome-system-monitor But this ...
0
votes
1answer
157 views

Which niceness to give to prevent freezing?

If I wanted to give my main system, desktop cinnamon, the highest priority, which PID should I set this for? The reason is because I have a program that runs for days and would hog up all the ...
5
votes
2answers
659 views

How to perform a CPU/disk intensive operation without drastically affecting other processes?

I am running a server on Ubuntu 12.04. The operation I'm trying to perform is a git clone, as part of a new backup system I'm implementing. The source and destination are both local, so there is no ...
31
votes
3answers
22k views

How to check my niceness?

Is there any way to check my nice lvl? I did try with ps, but for some reason the output does not show the column NI which is meant to show the lvl priority if I'm not wrong. ps -fl -c F S UID ...
3
votes
2answers
8k views

How to prevent a process from being killed?

Is there anyway to prevent a process from being killed no matter what? I know about nice but I'm not sure if giving a task such as a long running memory-intensive rake task the highest priority will ...
2
votes
2answers
17k views

How to increase the priority for a task permanently in linux machine?

How to increase the priority for a task in linux machine? What I've Done So Far: After small research i found that we can increase the priority to a task using NICE command and if we want to increase ...
3
votes
2answers
1k views

Cant change niceness even after editing limits.conf

so what i did: in the terminal i typed: sudo su (used pass) then typed: nano /etc/security/limits.conf went to bottom and added: USER - nice -20 (with my ...
4
votes
3answers
5k views

Nice command without root privileges

I need to run dosemu with nice --20 from script. Problem is: a negative value can be applied only with sudo. Do you know any way to run nice command without sudo or simply run nice --20 dosemu from ...
2
votes
1answer
2k views

How do priorities work on ubuntu's 12.04 system monitor?

I noticed in my system monitor app, on the "Processes" tab, that one can change the 'priority' of a certain program. What specifically would this do? (I'm new)
0
votes
1answer
805 views

How to make an app start with a lower 'nice' value

I would like to know how to make a program (Eclipse) always start with a lower 'nice' value. I tried to manipulate ‘/usr/share/applications/eclipse.desktop’ - with no success. Exec='nice -n -10 ...
1
vote
0answers
99 views

Is there a way to 'sleep' browser windows with tabs I'm not currently reading? [duplicate]

Possible Duplicate: Is there an equivalent of “stay” for Ubuntu? I typically have a lot of PDF's open while I'm computing. Many of them are "I'll read this later" rather than "I ...
5
votes
1answer
4k views

Why the process priority of Pulseaudio is -11?

Why it so low? Sometime when cpu is high load sound through Pulseaudio becomes choppy. I think this happens because process priority of Pulseaudio has so low value. So why it so low by default if it ...
77
votes
6answers
67k views

Change niceness (priority) of a running process

Is it possible to set a new nice level of a running process with a known id? Does this operation require root access, or just being the owner of the process?