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
0 answers
22 views

How to automatically set a nice to a program when It starts?

It's quite simple. I noticed my game (tf2) ran better with nice value of 19. Now I can edit the nice value with system monitor or with the renice command. I searched quite a lot and found out that I ...
user avatar
1 vote
0 answers
40 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 ...
user avatar
0 votes
0 answers
156 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 ...
user avatar
  • 65
1 vote
1 answer
143 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 ...
user avatar
  • 15
0 votes
1 answer
428 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 ...
user avatar
  • 60
1 vote
0 answers
111 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 123
0 votes
1 answer
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: ...
user avatar
  • 1
1 vote
1 answer
1k 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. ...
user avatar
  • 141
7 votes
1 answer
481 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?
user avatar
  • 3,490
1 vote
1 answer
471 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 ...
user avatar
  • 188
1 vote
2 answers
252 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, ...
user avatar
3 votes
1 answer
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 ...
user avatar
6 votes
2 answers
1k 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 ...
user avatar
4 votes
1 answer
194 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 "...
user avatar
  • 85
0 votes
0 answers
107 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 ...
user avatar
4 votes
1 answer
3k 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 "...
user avatar
  • 183
1 vote
0 answers
85 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? ...
user avatar
  • 220
3 votes
1 answer
318 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 ...
user avatar
  • 2,304
145 votes
3 answers
164k 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:...
user avatar
  • 101k
7 votes
4 answers
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 ...
user avatar
5 votes
1 answer
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 ...
user avatar
  • 2,062
2 votes
1 answer
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: ...
user avatar
12 votes
1 answer
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 ...
user avatar
  • 719
0 votes
1 answer
68 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?
user avatar
  • 3
4 votes
1 answer
872 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 ...
user avatar
  • 1,434
5 votes
0 answers
832 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: ...
user avatar
  • 2,304
6 votes
1 answer
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 ...
user avatar
0 votes
1 answer
221 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 ...
user avatar
  • 131
5 votes
2 answers
753 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 ...
user avatar
43 votes
4 answers
45k 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 ...
user avatar
  • 530
6 votes
3 answers
20k 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 ...
user avatar
  • 163
2 votes
2 answers
22k 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 ...
user avatar
  • 121
3 votes
2 answers
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 ...
user avatar
7 votes
3 answers
8k 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 ...
user avatar
2 votes
1 answer
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)
user avatar
  • 2,135
0 votes
1 answer
1k 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 ...
user avatar
1 vote
0 answers
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 ...
user avatar
7 votes
1 answer
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 ...
user avatar
94 votes
7 answers
100k 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?
user avatar
  • 11.7k