Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does ionice work in Software-RAID environments? I cannot set the CFQ scheduler for the md devices, because there is no file /sys/block/md0/queue/scheduler . It seems that the scheduler settings for the underlying disks are not propagated to the raid devices.


share|improve this question

Disk i/o scheduler are set per spindle. You can change the scheduling algo for /dev/sda,sdb etc which are real, hardware , devices in your system. Software raid block devices are virtual.
Ionice is not related to software raid and it simple gives priority of one process over another when accessing the storage. So yes, you can use it with no matter what type of storage you use.

share|improve this answer
Please have a look at my config and tests: Priority settings are at least ignored for my dd benchmarks. Do you have an explanation? Thanks! der Flo – der_flo Oct 30 '09 at 13:01
I/O prioritization helps (and can be observed) when you have concurrent disk operations and processes fighting for block access. Redo your tests with multiple dd running at the same time but different priorities. – Lorinescu Oct 30 '09 at 16:54
@Lorinescu: Of course I ran two "dd" pairs at the same time. Af first the ones with dsync, later the pair without dsync. Sorry for the vague gist. – der_flo Nov 2 '09 at 8:22
what kernel version ? if i remember correctly io prioritization works from 2.6.13 and up – Lorinescu Nov 19 '09 at 23:42
Ubuntu Karmic == 2.6.31 – der_flo Nov 26 '09 at 10:53

Chris Siebenmann recently came to the same conclusion as you: ionice has no effect on either "software raid" (I presume this means MD) or LVM.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.