Skip to contentSkip to conversation

questions about io scheduler

DISCUSSION Kyle Wong 5 participants 6 messages Mar 5, 2004

lore
Share & tools
lore

Kyle Wong

author
#0 lore raw

1. Is anticipatory io scheduler + echo 0 > /sys/block/hd*/queue/iosched/antic_expire = deadline scheduler?

2. Does io scheduler works with md RAID? Correct me if I'm wrong, io-schedular <--> md driver <--> harddisks.

Regards,
Kyle

#1 lore raw
Quoted 2 lines · Kyle Wong

1. Is anticipatory io scheduler + echo 0 > /sys/block/hd*/queue/iosched/antic_expire = deadline scheduler?

It isn't 100% the same, but very very close.

Quoted 2 lines

2. Does io scheduler works with md RAID? Correct me if I'm wrong, io-schedular <--> md driver <--> harddisks.

No, it's md -> io scheduler -> hard drive.

Signature · 1 line
Jens Axboe
#2 lore raw
In reply to Kyle Wong
Quoted 4 lines · Kyle Wong

1. Is anticipatory io scheduler + echo 0 > /sys/block/hd*/queue/iosched/antic_expire = deadline scheduler?

It is very similar but not quite the same.

Quoted 4 lines

2. Does io scheduler works with md RAID? Correct me if I'm wrong, io-schedular <--> md driver <--> harddisks.

It goes md driver -> io schedulers -> hard disks.

#3 lore raw
Quoted 9 lines · Nick Piggin
Quoted 4 lines · Kyle Wong

2. Does io scheduler works with md RAID? Correct me if I'm wrong, io-schedular <--> md driver <--> harddisks.

It goes md driver -> io schedulers -> hard disks.

There is an IO scheduler per disk.

So MD submits the data to each disk through the IO scheduler.

This allows you to have the heads on each disk in the array at different locations, and helps keep response times lower for seeky loads.

#4 lore raw
Quoted 11 lines · Mike Fedyk
Quoted 9 lines · Nick Piggin
Quoted 4 lines · Kyle Wong

2. Does io scheduler works with md RAID? Correct me if I'm wrong, io-schedular <--> md driver <--> harddisks.

Quoted 8 lines
Quoted 1 line

It goes md driver -> io schedulers -> hard disks.

There is an IO scheduler per disk.

So MD submits the data to each disk through the IO scheduler.

This allows you to have the heads on each disk in the array at different locations, and helps keep response times lower for seeky loads.

Say you've got a RAID1. In this case, MD could send the read request to either device. How does it decide which one to use?

#5 lore raw
Quoted 19 lines · Timothy Miller
Quoted 15 lines · Mike Fedyk
Quoted 10 lines · Nick Piggin
Quoted 4 lines · Kyle Wong

2. Does io scheduler works with md RAID? Correct me if I'm wrong, io-schedular <--> md driver <--> harddisks.

It goes md driver -> io schedulers -> hard disks.

Quoted 8 lines
Quoted 5 lines

There is an IO scheduler per disk.

So MD submits the data to each disk through the IO scheduler.

This allows you to have the heads on each disk in the array at different locations, and helps keep response times lower for seeky loads.

Say you've got a RAID1. In this case, MD could send the read request to either device. How does it decide which one to use?

The one with the drive head closest to the data.