lkml.org 
[lkml]   [2002]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: O_DIRECT performance impact on 2.4.18 (was: Re: [PATCH] 2.5.14IDE 56)
Lincoln Dale wrote:
>
> At 11:50 AM 9/05/2002 -0700, Andrew Morton wrote:
> > > /dev/md0 raid-0 with O_DIRECT: 91847kbyte/sec (2781usec
> > > /dev/md0
> > raid-0: 129455kbyte/sec (1978usec
> > > /dev/md0 raid-0 with O_NOCOPY: 195868kbyte/sec (1297usec
> >
> >hmm. Why is O_DIRECT always the slowest? (and it would presumably do
> >even worse with an 8k transfer size).
>
> i just reproduced the test to validate the data. i'm using 8kbyte blocks here.
> on kernel is 2.4.18, O_DIRECT is still the slowest.

8k would rather disadvantage O_DIRECT. It can't do readahead and it
can't to write-behind. It'll be forced to do tons of tiny I/Os.

> ...
>
> the biggest difference here is bounce_end_io_read in O_DIRECT.

Well hopefully that will be gone in 2.4.20, for many popular
controllers.

Not sure why it bit you here. It could be that the page allocator
just happened to give you highmem pages for the O_DIRECT test.
Turning off highmem may make the test more repeatable.

> given there's still lots of idle-time, i'll file up lockmeter on here and
> see if theres any gremlins there.

lockmeter will go off the dial. All those copies happen at
interrupt time, inside the global io_request_lock. It's horrid.

Try it with the block-highmem patch:
http://www.kernel.org/pub/linux/kernel/people/andrea/kernels/v2.4/2.4.19pre1aa1/00_block-highmem-all-18b-4.gz

-
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.316 / U:0.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site