2.4.19 / 2.4.20 Pauses/stopps with high disk I/O
Subsystems (2)
PATCH 1/1 2.4.19 / 2.4.20 Pauses/stopps with high disk I/O
Hi Con, Andrea, Jens,
Con and me were testing your, Andrea, lowlatency elevator hack the last days. It's much impressive that I/O pauses/stopps are almost gone with the hack, even though the throughput is decreased (22mb/s to 12mb/s for my mashine).
Con did a 3 line change to drivers/block/ll_rw_blk.c and include/linux/elevator.h and those pauses/stopps are _totally_ gone. Even throughput increased from 12mb/s, with the lowlat elevator from Andrea, to 14mb/s with that 3 liner. Patch attached + Config option for 2.4.20-rc4.
Exchanging the files mentioned above with the 2.4.18 ones has either no effect to throughput (22mb/s) and also has no pauses/stopps.
We think the approach with the lowlatency elevator's is fine, but there must have changed something very seriously in the mentioned files that this occur with >= 2.4.19.
This is just a "we want to inform you about it" mail :)
Have fun!
ciao, Marc
# Patch from: Con Kolivas (private Mail) / me
Documentation/Configure.help +12 -0
@@ -867,6 +867,18 @@ If unsure, say N. +Low Latency Elevator +CONFIG_BLK_DEV_ELEVATOR_LOWLAT + If you are building your kernel for desktop usage it is highly + recommended to say Y here. With this option set, you can have the + highest disk i/o you ever dreamed of and still have interactive + behaviour of your kernel without stops/pauses or kinda that. + For sure, this decreases throughput, for me from 22mb/s to 14mb/s + but this is unrelevant for desktop usage. + + If unsure, or if you're building a kernel for serverusage, + say N, otherwise say Y. + ISA-PNP EIDE support CONFIG_BLK_DEV_ISAPNP If you have an ISA EIDE card that is PnP (Plug and Play) and
drivers/block/Config-elevator.in +10 -0
@@ -0,0 +1,10 @@ +# +# Elevator configuration +# +mainmenu_option next_comment +comment 'Elevator' + +bool 'Low Latency Elevator' CONFIG_BLK_DEV_ELEVATOR_LOWLAT + +endmenu +
arch/i386/config.in +2 -0
@@ -326,6 +326,8 @@ source drivers/block/Config.in +source drivers/block/Config-elevator.in + source drivers/md/Config.in if [ "$CONFIG_NET" = "y" ]; then
drivers/block/ll_rw_blk.c +4 -0
@@ -432,9 +433,13 @@si_meminfo (&si); megs = si.totalram >> (20 -PAGE_SHIFT ); +#ifndef CONFIG_BLK_DEV_ELEVATOR_LOWLAT nr_requests =128 ;if (megs <32 ) nr_requests /=2 ; +#else + nr_requests =4 ; +#endif blk_grow_request_list (q, nr_requests);init_waitqueue_head (&q->wait_for_requests[0 ]);
include/linux/elevator.h +15 -1
@@ -91,6 +91,7 @@ elevator_noop_merge_req, /* elevator_merge_req_fn */ \ }) +#ifndef CONFIG_BLK_DEV_ELEVATOR_LOWLAT #define ELEVATOR_LINUS \ ((elevator_t) { \ 2048,/* read passovers */ \
@@ -100,4 +101,17 @@ elevator_linus_merge_req, /* elevator_merge_req_fn */ \ }) -#endif +#else /* CONFIG_BLK_DEV_ELEVATOR_LOWLAT */ + +#define ELEVATOR_LINUS \ +((elevator_t) { \ + 0, /* read passovers */ \ + 0, /* write passovers */ \ + \ + elevator_linus_merge, /* elevator_merge_fn */ \ + elevator_linus_merge_req, /* elevator_merge_req_fn */ \ + }) + +#endif /* CONFIG_BLK_DEV_ELEVATOR_LOWLAT */ + +#endif /* _LINUX_ELEVATOR_H */