Questions tagged [ionice]
The ionice tag has no summary.
23 questions
0 votes
1 answer
818 views
Set highest CPU and IO priority for a systemd service
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 ...
0 votes
0 answers
200 views
System starts to freeze when copying large amounts of data
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 ...
6 votes
1 answer
127 views
How useful is ionice tool with modern linux kernel
The ionice tool is supposed to offer relief on high I/O load by executing commands only when the system is in a specified state. The man page states: Linux supports I/O scheduling priorities and ...
2 votes
1 answer
1k views
How to set process to the lowest possible priority on Linux?
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 ...
0 votes
1 answer
75 views
Does ionice also apply to i/o redirections?
A coworker recently observed a command: user@host:~$ ionice -c 3 mysqldump -uredacted -p redacted redacted > redacted.dmp Since the host in question uses the deadline scheduler anyway, ionice is ...
1 vote
0 answers
145 views
Linux shell wrapper to run program with low system resources?
There's nice and renice to lower priority of a process, cpulimit to lets say 30% maximum, taskset to limit to 1 core, ionice. Each of these tools has a different syntax. Specifically cpulimit seems ...
4 votes
1 answer
936 views
ionice does not have any effect on un-synced writes (i.e. normal writes)?
When I dump a large MySQL database (its dump weighs around 10GB) - it appears on the disk almost immediately, but then, later, when the kernel decides to flush it to the disk, the server almost ...
1 vote
3 answers
326 views
ionice every imap process automatically
I want to ionice a process on its startup. In our hosting environment, we use old Paralells Confixx servers. (Yes I know, Confixx is outdated, but that is not the question). We use courier for mails ...
1 vote
0 answers
201 views
Per user priority of access to a file system
Please, let me know if there is a tool, which allows to give different reading (writing) priority to different users on Linux. I am looking for something similar to 'ionice' but able to set I/O ...
10 votes
2 answers
1k views
What is the nicest a Unix command can be?
For a quick benchmarking test, how can nice and ionice be combined to maximum effect, ie for a command to use as little resource as possible (without idling altogether)? (I think it's something like `...
22 votes
2 answers
11k views
nice and ionice: which one should come first?
I need to run some long and heavy commands, but at the same time, I'd like to keep my desktop system responsive. Examples: btrfs deduplication, btrfs balance, etc. I don't mind if such commands take ...
29 votes
2 answers
25k views
Using and understanding systemd scheduling-related options in a desktop context
In systemd service files, one can set the following scheduling related options (from the systemd.exec man page, correct me if I'm wrong): Nice Sets the default nice level (scheduling ...
7 votes
1 answer
358 views
How does ionice work with multiple drives?
I understand how ionice can help you when you have multiple processes requesting access to the same disk resources, but how does it work when you have multiple disks? For example, you have one rsync ...
4 votes
1 answer
3k views
iotop and ionice -p show a different class/priority for the same process
After running ionice -c2 -n7 <PID> on an I/O-intensive process (VirtualBox VM) and checking the result with ionice -p <PID> it shows best-effort: prio 7 which is expected. But when ...
2 votes
1 answer
2k views
Set ionice for a multi-threaded application
I have a program that spawns multiple threads, all of which do fairly intensive IO, running on the background. I want to set the scheduling class to idle so that it doesn't clog up the system; however,...