On Thu, Jan 20, 2005 at 15:27, Bastian Balthazar Bux wrote:
> >>which is the best io-scheduler for FTP server ( with  IDE-RAID card) ?
> >>can i change it after the system is running ?
> >>
> >yes, 
> >To see the current scheduler on hda:
> >$ cat /sys/block/hda/queue/scheduler
> >noop [anticipatory]
> >
> >To change it:
> ># modprobe cfq-iosched (if compiled as module)
> ># echo cfq > /sys/block/hda/queue/scheduler
> > 
> >
> /sys/block/hda/queue/scheduler is not present on my system, there is a 
Ho, yes, I forgot, currently changing at runtime is only implemented in
-mm kernels.
Maybe also on nitro-sources? I've not tested.

> /sys/block/sda/queue/iosched but with other purposes I think.
Yes, iosched is specific to the anticipatory scheduler, it contains
interfaces where you can change some timings, the defaults will probably
be the best, but you can play with them.

> To have it you need to compile scheduler as modules ?
No this is not related whether it is module or not.

> (mine are inside the kernel) and than you can have different
> schedulers per disk / block-device ?
Yes, but again only in a -mm kernel, you can have a noop scheduler on a
USB key (recomended, since it's in fact a memory chip), an anticipatory
for your general purpose disk, and a cfq for the disk where is your ftp
root. For the fun you may even make a script to change it depending on
the load... :)

JC

--
[email protected] mailing list

Reply via email to