public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Blocking v/s Non-blocking NFS (and iSCSI) file reads/writes.
@ 2001-09-07 20:35 Ben Greear
  2001-09-08 11:24 ` Trond Myklebust
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Greear @ 2001-09-07 20:35 UTC (permalink / raw)
  To: LKML


I'm working on writing a program that will be used to stress test
NFS and iSCSI based file systems.  I am currently using a non-threaded,
and non-forking architecture based on non-blocking IO and select() to
do my network traffic generation.  I would like to be able to fit the
file-testing code in the same framework.  However, I'm not sure I can
make this model work with network based file systems....

So, does select() work for NFS reads?  (IE: I open a file-descriptor
on an NFS mounted file system, and start reading.  The network goes
down.  Will select() start not marking that file as read/write-able?)

If I set the file descriptor to be O_NONBLOCK, will it return immediately
if the network is down (regardless of what select told me)?

I have the same questions about an iSCSI based file system...

Does anyone have any suggestions for reading material on this topic,
other than kernel source and patches?

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>          <Ben_Greear@excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear

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

end of thread, other threads:[~2001-09-08 11:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-07 20:35 Blocking v/s Non-blocking NFS (and iSCSI) file reads/writes Ben Greear
2001-09-08 11:24 ` Trond Myklebust

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox