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

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

What nice value would have the most CPU process Time? [duplicate]

A process A with a nice value = 3 as well as process B with a nice value=5. Which of these two processes would get the most CPU time?
1
vote
0answers
24 views

STT works less well when another application has focus. How can I improve STT to work as part of the OS?

STT works less well when another application has focus. How can I improve STT to work as part of the OS? My virtual assistant program can do things like move windows around, but it seems to work best ...
0
votes
0answers
85 views

How to use Nice / Renice to all new processes in future?

I want to set up a top priority to Apache2, but when I do it to currently running processes by renice command, it only works until the processes are ended, new users come to a website and niceness of ...
1
vote
1answer
95 views

Is it effective to decrease Gnome Shell's nice?

I'm having some problems where GNOME Shell freezes because of a application (usually Firefox or discordapp). Does decreasing its nice value to something around -1 prevent freezing even when under ...
0
votes
1answer
122 views

Track a process using htop

I have a process that runs for while gets killed and restarts itself for every 15 seconds and I want to track the nice value of it how to do it using htop .I can track using PID by my PID changes ...
1
vote
0answers
79 views

priority trouble with nice / renice

It seems to me that the whole nice/priority scheme doesn't actually do anything. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 10084 dick 39 19 1221848 225120 ...
0
votes
1answer
742 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
1answer
1k 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
1answer
838 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. ...
7
votes
1answer
343 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?
1
vote
1answer
388 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
164 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, ...
2
votes
1answer
2k 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 ...
6
votes
2answers
975 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
166 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
99 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 ...
4
votes
1answer
2k 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
60 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? ...
3
votes
1answer
263 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 ...
136
votes
3answers
148k 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:...
7
votes
4answers
5k 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
4k 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 ...
2
votes
1answer
2k 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: ...
12
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
65 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
587 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 ...
5
votes
0answers
722 views

Nautilus is slow if a 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 of RAM. My use case: ...
6
votes
1answer
2k 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
184 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
725 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 ...
42
votes
4answers
38k 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 ...
5
votes
3answers
15k 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
21k 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 ...
7
votes
3answers
7k 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
949 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
101 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 ...
7
votes
1answer
7k 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 ...
90
votes
6answers
91k 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?