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).

learn more… | top users | synonyms

21
votes
2answers
645 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 ...
1
vote
3answers
86 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 ...
3
votes
1answer
112 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
102 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: ...
4
votes
1answer
390 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
20 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?
2
votes
1answer
57 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 ...
3
votes
0answers
105 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 ...
5
votes
1answer
366 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
65 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 ...
4
votes
2answers
298 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 ...
15
votes
2answers
2k 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 ...
0
votes
2answers
2k 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 ...
1
vote
2answers
7k 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 ...
2
votes
1answer
749 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 ...
3
votes
3answers
2k 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
528 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 ...
4
votes
1answer
2k 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 ...
47
votes
4answers
25k 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?