Re: elevator algorithm bug in ll_rw_blk.c

Stephen C. Tweedie (sct@redhat.com)
Mon, 16 Nov 1998 21:57:18 GMT


Hi,

On Sun, 15 Nov 1998 20:38:05 +0100 (MET), Gerard Roudier
<groudier@club-internet.fr> said:

> My understanding of Linux architecture is that IO blocks coalescing only
> occurs in ll_rw_blk.c.

Yes, except for scsi which does its Own Thing, of course.

> If it fails the coalescing then Linux will just do 1 IO for each
> block. When you have lots of memory, it may happen the number of
> entries in the request array (NR_REQUEST) be not enough for this
> coalescing to occur in some situations that may not be rare given the
> way the buffer cache actually work.

The way it actually works, sequential writes tend to be kept in
sequential order in the buffer cache lists, so the typical cases work
pretty well. All the benchmarks show that sequential filesystem writes
work very well.

--Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/