From: Trond Myklebust Subject: Re: NFS directio Date: Thu, 30 Mar 2006 11:03:32 -0500 Message-ID: <1143734612.8093.8.camel@lade.trondhjem.org> References: <20060330151544.GA11915@suse.de> Mime-Version: 1.0 Content-Type: text/plain Cc: nfs@lists.sourceforge.net Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.30) id 1FOzcy-0002Ya-V9 for nfs@lists.sourceforge.net; Thu, 30 Mar 2006 08:04:05 -0800 Received: from pat.uio.no ([129.240.10.6] ident=7411) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1FOzcx-0007Xp-6J for nfs@lists.sourceforge.net; Thu, 30 Mar 2006 08:04:04 -0800 To: Olaf Kirch In-Reply-To: <20060330151544.GA11915@suse.de> Sender: nfs-admin@lists.sourceforge.net Errors-To: nfs-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Post: List-Help: List-Subscribe: , List-Archive: On Thu, 2006-03-30 at 17:15 +0200, Olaf Kirch wrote: > In recent kernels, NFS direct IO limits the size of a request to > 4096 pages, ie 16M on most platforms. This causes growisofs from the > dvd+rw-tools package (http://fy.chalmers.se/~appro/linux/DVD+RW/) to fail. > Its builtin "dd" style function uses 32M buffers by default. > > It puzzled me a lot that it is returning -EFBIG, which means "file too > big". At least that should be EINVAL, I think. EFBIG should be reserved > for problems related to largefile support, IMO. > > We can easily work around the problem by restricting the buffer size > growisofs uses on NFS, but that feels strange. I think the right way > would be to increase MAX_DIRECTIO_SIZE, and if someone submits a bigger > request, to loop and do that in MAX_DIRECTIO_SIZE chunks. > > Comments? MAX_DIRECTIO_SIZE is gone from Linus' tree. I don't think we have any limits on the size of the buffer that users can feed to us apart from those set by mm/filemap.c:generic_write_checks(). Cheers, Trond ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs