linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Reading NFS file without copying to user-space?
@ 2009-09-04 19:48 Ben Greear
  2009-09-04 20:35 ` Trond Myklebust
  0 siblings, 1 reply; 11+ messages in thread
From: Ben Greear @ 2009-09-04 19:48 UTC (permalink / raw)
  To: linux-nfs

I'm trying to optimize a tool that should do NFS reads as fast as possible
from a server in order to stress test the server.

Currently, I open the file as normal and read into a pre-allocated buffer.

This causes a copy of the data to user-space.

Is there any way to cause the nfs client logic to still request the file-read,
but not actually copy anything to user-space?

Maybe some trick with mmap would do this?

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-09-04 23:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-04 19:48 Reading NFS file without copying to user-space? Ben Greear
2009-09-04 20:35 ` Trond Myklebust
     [not found]   ` <1252096543.2402.4.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-09-04 20:49     ` Ben Greear
2009-09-04 20:58       ` Trond Myklebust
2009-09-04 21:12         ` Ben Greear
2009-09-04 22:00           ` Trond Myklebust
2009-09-04 21:57         ` Ben Greear
2009-09-04 22:15           ` Trond Myklebust
     [not found]             ` <1252102506.5274.7.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-09-04 22:30               ` Ben Greear
2009-09-04 22:49                 ` Trond Myklebust
2009-09-04 23:03                   ` Ben Greear

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).