On Tuesday 22 April 2003 11:35, Michael B Allen wrote:
Hi Michael,
> Ok, I searched a little using the Googler at indiana.edu's archives but
> nothing jumped up and bit me. I'm not too excited about applying a patch
Then you are not able to search archives.
http://marc.theaimsgroup.com/?l=linux-kernel&m=105092498721316&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=105060066815681&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=103835185429978&w=2
The 3rd url has a config option. Same attached w/o config option.
> snarfed out of an e-mail anywat. I'm surprised no one else has not
> complained about this enough to the point where you guys don't have a
> canned answer with a link. Is this problem not considered important?
there were some complaints. Anyway, if it's important or not depends on the 
point of view. For me, it is _mega_ important, for mainline 2.4, I don't 
think it is important ;)
> Does anyone know which RH patch in the 2.4.18-10 RPM adds this elevator
> throughput "improvement"? What identifiers would such a patch have in it?
Look for a patch that adds "2.4.19-pre*".
> PS: Why are there only "hacks"? Is this not considered important?
Well, the attached one is really a hack. It drops throughput ~20-30 % but gets 
rid of all the annyoing pauses/stops while disk i/o. The 2 other approaches 
are no real hacks though they also drop throughput.
You can also try "elvtune -r 0 -w 8192 /dev/bla" and see if it makes any 
difference if you don't want to patch anything.
ciao, Marc
--Boundary-00=_LKRp+w4/E3a5wYo
Content-Type: text/x-diff;
  charset="iso-8859-1";
  name="lowlat-elevator-hack.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="lowlat-elevator-hack.patch"
--- old/drivers/block/ll_rw_blk.c	2002-12-18 01:03:50.000000000 +0100
+++ new/drivers/block/ll_rw_blk.c	2003-04-22 11:49:36.000000000 +0200
@@ -432,9 +432,7 @@ static void blk_init_free_list(request_q
 
 	si_meminfo(&si);
 	megs = si.totalram >> (20 - PAGE_SHIFT);
-	nr_requests = 128;
-	if (megs < 32)
-		nr_requests /= 2;
+	nr_requests = 4;
 	blk_grow_request_list(q, nr_requests);
 
 	init_waitqueue_head(&q->wait_for_requests[0]);
--- old/include/linux/elevator.h	2002-12-18 01:03:59.000000000 +0100
+++ new/include/linux/elevator.h	2003-04-22 11:49:58.000000000 +0200
@@ -93,8 +93,8 @@ static inline int elevator_request_laten
 
 #define ELEVATOR_LINUS							\
 ((elevator_t) {								\
-	2048,				/* read passovers */		\
-	8192,				/* write passovers */		\
+	0,				/* read passovers */		\
+	0,				/* write passovers */		\
 									\
 	elevator_linus_merge,		/* elevator_merge_fn */		\
 	elevator_linus_merge_req,	/* elevator_merge_req_fn */	\
--Boundary-00=_LKRp+w4/E3a5wYo--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/