On Thu, Feb 01, 2001 at 06:05:15PM +0100, Christoph Hellwig wrote:
> On Thu, Feb 01, 2001 at 04:16:15PM +0000, Stephen C. Tweedie wrote:
> > >
> > > No, and with the current kiobufs it would not make sense, because they
> > > are to heavy-weight.
> >
> > Really? In what way?
>
> We can't allocate a huge kiobuf structure just for requesting one page of
> IO. It might get better with VM-level IO clustering though.
A kiobuf is *much* smaller than, say, a buffer_head, and we currently
allocate a buffer_head per block for all IO.
A kiobuf contains enough embedded page vector space for 16 pages by
default, but I'm happy enough to remove that if people want. However,
note that that memory is not initialised, so there is no memory access
cost at all for that empty space. Remove that space and instead of
one memory allocation per kiobuf, you get two, so the cost goes *UP*
for small IOs.
> > > With page,length,offsett iobufs this makes sense
> > > and is IMHO the way to go.
> >
> > What, you mean adding *extra* stuff to the heavyweight kiobuf makes it
> > lean enough to do the job??
>
> No. I was speaking abou the light-weight kiobuf Linux & Me discussed on
> lkml some time ago (though I'd much more like to call it kiovec analogous
> to BSD iovecs).
What is so heavyweight in the current kiobuf (other than the embedded
vector, which I've already noted I'm willing to cut)?
--Stephen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/