lkml.org 
[lkml]   [1999]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ext2 warning in Linux 2.2.7
   Date: 	Tue, 01 Jun 1999 09:39:10 +0200
From: Olaf Kirch <okir@monad.swb.de>

What comes to mind first is a replacement for f_op->read() that
returns the VFS buffers themselves rather than copying file data to
a buffer supplied by nfsd. That would get us a considerable speedup
on the READ case, because that would eliminate the last memcpy in
the code path (except for the skb to ethercard copy).

It sort of exists, you can do this with sendfile, it goes straight
from the page cache to the socket, one copy.

I assume you are meaning the "knfsd serves file to client" case when
you say "read".

The one issue is to get the RPC reply header tacked onto the front.
It is doable with TCP (with the TCP_CORK socket option) but no such
mechanism exists for UDP.

Later,
David S. Miller
davem@redhat.com

-
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:52    [W:0.277 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site