Questions tagged [ionice]

The tag has no usage guidance.

0
votes
0answers
28 views

ionice vs nice for mysqlimport

I am trying to import a huge .sql file into a mysql server. What (if any) is a best option to speed up the process (all other parameters being equal) reducing the process niceness to -20? setting ...
1
vote
1answer
127 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
3answers
116 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
0answers
56 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 ...
9
votes
1answer
262 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 `...
6
votes
2answers
2k 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 ...
8
votes
2answers
2k 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
1answer
99 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 ...
1
vote
1answer
1k 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
1answer
832 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,...
0
votes
2answers
557 views

Ionice on cp - why I need set dir

I'm wondering why I can't set ionice for cp. ionice -c2 -n0 cp I run this command and I get: cp: missing file argument Try `cp --help' for more information Why?
1
vote
1answer
320 views

How can I limit the bandwidth to a davfs-mounted cloud storage?

I need to copy approximately 400 files of approximately 25 MB each to a davfs-mounted cloud storage. I have tried the following commands to limit the CPU-load and IO-load: nice -n 15 ionice -c 3 ...
4
votes
1answer
953 views

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 ...
5
votes
1answer
5k views

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 ...
6
votes
1answer
2k views

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 ...
4
votes
2answers
3k views

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 ...
14
votes
2answers
23k views

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?
19
votes
1answer
7k views

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.