Questions tagged [ionice]

21 questions
22
votes
2 answers

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 priority) for executed processes. Takes an integer…
equaeghe
  • 554
  • 2
  • 6
  • 14
21
votes
1 answer

How do I view the IO priority of a process?

How can I view the IO priority of a process? like to see for example if something has been ionice-ed.
xenoterracide
  • 57,918
  • 74
  • 184
  • 250
18
votes
2 answers

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 longer to finish if I give them a lower priority,…
user22304
17
votes
2 answers

Run process with higher priority

I want to run mplayer with higher priority than any other processes, including the IO-processes. How can I do that?
SHW
  • 14,454
  • 14
  • 63
  • 101
9
votes
2 answers

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 `nice -n 19 ionice -c 2 [command], but not sure…
mahemoff
  • 802
  • 1
  • 8
  • 19
8
votes
3 answers

How to renice a group of processes?

lb build can build live system image, and it invokes many processes while building the image. If I start it as below: # nice -n 19 ionice -n 7 -c 3 lb build all the children processes get the same nice level: PID USER IORR IOWR IO IO…
Mikhail Morfikov
  • 10,309
  • 19
  • 69
  • 104
7
votes
1 answer

What is ionice `none: prio 0` equivalent to?

The ionice manual states that: Note that before kernel 2.6.26 a process that has not asked for an io priority formally uses "none" as scheduling class, but the io scheduler will treat such processes as if it were in the best effort class. The…
Kyle Brandt
  • 832
  • 11
  • 18
7
votes
1 answer

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 operation moving data from Drive A -> Drive B, and…
user159726
  • 73
  • 5
5
votes
1 answer

Different between `ulimit -e` and `renice`?

I would like to run a backup script in low CPU and disk I/O. Is there any different between this: #!/bin/bash ulimit -e 19 ionice -c3 -p $$ and this: #!/bin/bash ionice -c3 -p $$ renice -n 19 -p $$
quanta
  • 1,670
  • 1
  • 14
  • 25
4
votes
1 answer

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 stalls and other IO requests take a lot more…
sourcejedi
  • 48,311
  • 17
  • 143
  • 296
4
votes
2 answers

Setting nice and ionice for rsync via xinetd

I am attempting to set nice and ionice for rsync via xinetd. I am running Fedora 16. The reason I would like to use these values is to reduce the rsync process to an idle state so other processes run unaffected. I have tried to use…
eyesnz
  • 171
  • 1
  • 6
4
votes
1 answer

iotop and ionice -p show a different class/priority for the same process

After running ionice -c2 -n7 on an I/O-intensive process (VirtualBox VM) and checking the result with ionice -p it shows best-effort: prio 7 which is expected. But when monitoring the overall disk I/O of all processes via iotop it shows…
doktor5000
  • 2,689
  • 15
  • 30
2
votes
1 answer

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 process to "lower" the process priority? Are these…
KamilCuk
  • 850
  • 8
  • 16
2
votes
1 answer

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, ionice -c3 -p , where is the process…
1
vote
0 answers

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 harder to master. Syntax isn't trivial. Writing…
adrelanos
  • 1,786
  • 7
  • 29
  • 56
1
2