NFS client/buffer cache deadlock

Marc Olzheim marcolz at stack.nl
Wed Apr 27 10:15:25 PDT 2005


On Wed, Apr 27, 2005 at 12:08:57PM -0400, Brian Fundakowski Feldman wrote:
> > Yes, a single writev(). Just like in the kern/79207 PR.
> > 
> > It doesn't have to be superfast (why would I use NFS otherwise), just as
> > long as it's threadsafe / atomic.
> 
> Alright, this will do synchronous, instead of short, writes (also,
> of course, not deadlock the system) if you are trying to use an
> excessively large buffer size.
> 
> <http://green.homeunix.org/~green/nfs_client.deadlock.patch>
> <http://green.homeunix.org/~green/nfs_client.deadlock.HEAD.patch>

Great! This seems to do the trick and isn't that slow (about 2.8 MB/sec
over 100 MBit, writing 600 * 1MB, 4.x gets about 5.5 MB/sec on the same
system); it's fast enough for me and more importantly, it doesn't lock
the system down anymore. ;-)

Thanks a lot!

Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050427/18fb6ce4/attachment.bin


More information about the freebsd-stable mailing list