2005-05-26 01:32:46

by roland

[permalink] [raw]
Subject: query, which io scheduler is active?

Hello,

dmesg tells:

---snip---
Kernel command line: root=/dev/sda2
---snip---
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
---snip---

ok - there are 4 types of io schedulers - but - how can one see/query, which i/o scheduler is the currently "active" one?

It seems that SuSE Kernel shows this via

if (!printed) {
printed = 1;
printk("Using %s io scheduler\n", chosen_elevator->elevator_name);
}

in drivers/block/ll_rw_blk.c

I can supply a patch if you like.

regards
roland




2005-05-26 01:42:32

by Jan Spitalnik

[permalink] [raw]
Subject: Re: query, which io scheduler is active?

Hi,

Dne ?t 26. kv?tna 2005 03:38 roland napsal(a):
> ok - there are 4 types of io schedulers - but - how can one see/query,
> which i/o scheduler is the currently "active" one?
>

/sys/block/<device>/queue/scheduler

Bye,
spity

--
Jan Spitalnik
[email protected]

If everyone used log base e, we'd all be happy!