lkml.org 
[lkml]   [1999]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Streaming disk I/O: don't use raw, limit bufs per device/partition
Date
From

> > We solved a similar problem by limiting the buffering per device/partition to
> > a subset of the buffer cache (75%, tunable), rather than hacking in raw
> > devices.
>
> This, I think, is definitely the right kind of approach to take.
>
Maybe the per-device limit is easy to implement, but otherwise it seems
arbitrary to me. People usually do io on files, not devices. So
a per-file limit seems better to me.
The per-device limit is no good for the common case of having only
one device, and also fails with multiple devices when only one is
in use for a while.

> Linus "raw IO - just say no" Torvalds
I agree to that one, but I don't think the per-device thing will
do much good. How about some hash function that groups the
cached files, and limiting each group to 75% or so? This will
work with one-disk machines too.

Helge Hafting


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

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