Linux elevators (Re: BFQ: simple elevator)
Valdis.Kletnieks at vt.edu
Valdis.Kletnieks at vt.edu
Wed Mar 20 19:16:53 EDT 2013
On Wed, 20 Mar 2013 16:05:09 -0700, Arlie Stephens said:
> The ongoing thread reminds me of a simple question I've had since I
> first read about linux' mutiple I/O schedulers. Why is the choice of
> I/O scheduler global to the whole kernel, rather than per-device or
> similar?
They aren't global to the kernel.
On my laptop:
# find /sys/devices/pci* -name 'scheduler' | xargs grep .
/sys/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda/queue/scheduler:noop deadline [cfq]
/sys/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/block/sr0/queue/scheduler:noop deadline [cfq]
# echo noop >| /sys/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/block/sr0/queue/schedule
# find /sys/devices/pci* -name 'scheduler' | xargs grep .
/sys/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda/queue/scheduler:noop deadline [cfq]
/sys/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/block/sr0/queue/scheduler:[noop] deadline cfq
I just changed the scheduler for the CD-ROM.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130320/f316ead6/attachment.bin
More information about the Kernelnewbies
mailing list