Skip to main content

Questions tagged [nice]

A tool to change the priority of a process, giving it more or less CPU time.

0 votes
3 answers
266 views

Say I have an executable 'foo' and it is typically called with arguments, for example "foo -a1 v1". And 'foo' happens to be a resource hog, so I want to run something like "nice -n 10 ...
Neros's user avatar
  • 179
7 votes
2 answers
423 views

I have sshd with PID of 1957: mohsen@debian:~$ ps ax -o pid,nice,pri,cmd |grep 1957 1957 -2 21 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups According to above, my nice number is -2 ...
PersianGulf's user avatar
  • 11.3k
3 votes
0 answers
85 views

This might be a duplicate of "reserve memory for a set of processes", but I think my question is a little broader. I have a system that likes to hang a lot. I tend to use a lot of browser ...
Mathias Sven's user avatar
5 votes
1 answer
140 views

It seems that the nice tool isn't as effective as I'd like it to be. I'd expected that if I run some CPU hungry program with nice level 19 (but using all CPU cores), then the kernel would still give ...
geza's user avatar
  • 151
0 votes
1 answer
878 views

How to set CPU and IO priority for a systemd service? In partucular, how to set the highest values? (Assume that the service is idling most of the time and will absolutely NOT clog the rest of the ...
VasyaNovikov's user avatar
  • 1,569
0 votes
0 answers
218 views

OS is Debian 12. Got a brand new disk to use as a backup for a disk currently in use. For the initial rsync, my system starts to lag and freeze for maybe half a second at a time. This is especially ...
cat pants's user avatar
  • 167
0 votes
1 answer
249 views

I've noticed that all services and processes with my user in Ubuntu Server 22.04.4 LTS have a nice value of 19. I connect to the server through ssh, and my ssh sessions also have a nice value of 19. I ...
AndresR's user avatar
  • 261
11 votes
1 answer
3k views

My nice is from GNU coreutils 9.1. I observed that nice -15 is equivalent to nice -n 15: nice # prints 0 for me, the base niceness is 0 nice -n 15 nice # prints 15, this is ...
Kamil Maciorowski's user avatar
0 votes
1 answer
92 views

When I "flood" my CPU with 8 high priority (nice=-20) OS threads (the number of cores I have), operation becomes "halty" for obvious reasons, but is still usable. Note that when I ...
doliphin's user avatar
  • 125
0 votes
3 answers
465 views

If I have server users who often forget to use the 'nice' command for their jobs on a web server, is it possible to change a setting so that the default priority for everything they launch is slightly ...
mirams's user avatar
  • 103
2 votes
1 answer
1k views

I want to set the process to the lowest possible scheduling on Linux. I came up with the following: nice -n 39 ionice -c 3 chrt -i 0 command Are there also other settings that one can set for a ...
KamilCuk's user avatar
  • 970
2 votes
0 answers
118 views

Debian 10. I am trying to render with blender in the background, like so: nice -n 19 blender -b --python my_script.py This renders to a file using the GPU. When rendering, I can see GPU usage spike ...
cat pants's user avatar
  • 167
0 votes
1 answer
325 views

I did this sudo nice -n -1 firefox to launch Firefox with higher priority and make all subprocesses that are executed at launch inherit that priority but it failed with an error message about Firefox ...
d-b's user avatar
  • 2,077
0 votes
1 answer
621 views

I run two extremely CPU-heavy (but not memory or I/O heavy) task on my Macbook Pro with 12 cores. This made the computer unusable for other tasks. I therefore reniced these processes to 20 and set ...
d-b's user avatar
  • 2,077
0 votes
1 answer
2k views

One of my server's users needs to launch CPU and I/O intensive jobs that are also quickly done (usually less than 30 seconds). They can be started by a user’s cron, a user’s shell or even Apache, PHP ...
Max13's user avatar
  • 172

15 30 50 per page
1
2 3 4 5
9