Date: Mon, 17 Mar 2014 21:26:23 -0400 (EDT) From: Rick Macklem <rmacklem@uoguelph.ca> To: FreeBSD Filesystems <freebsd-fs@freebsd.org> Cc: Alexander Motin <mav@freebsd.org> Subject: review/test: NFS patch to use pagesize mbuf clusters Message-ID: <570922189.23999456.1395105983047.JavaMail.root@uoguelph.ca> In-Reply-To: <1351117550.23999435.1395105975009.JavaMail.root@uoguelph.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_23999454_1976975027.1395105983045 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hi, Several of the TSO capable network interfaces have a limit of 32 mbufs in the transmit mbuf chain (the drivers call these transmit segments, which I admit I find confusing). For a 64K read/readdir reply or 64K write request, NFS passes a list of 34 mbufs down to TCP. TCP will split the list, since it is slightly more than 64K bytes, but that split will normally be a copy by reference of the last mbuf cluster. As such, normally the network interface will get a list of 34 mbufs. For TSO enabled interfaces that are limited to 32 mbufs in the list, the usual workaround in the driver is to copy { real copy, not copy by reference } the list to 32 mbuf clusters via m_defrag(). (A few drivers use m_collapse() which is less likely to succeed.) As a workaround to this problem, the attached patch modifies NFS to use larger pagesize clusters, so that the 64K RPC message is in 18 mbufs (assuming a 4K pagesize). Testing on my slow hardware which does not have TSO capability shows it to be performance neutral, but I believe avoiding the overhead of copying via m_defrag() { and possible failures resulting in the message never being transmitted } makes this patch worth doing. As such, I'd like to request review and/or testing of this patch by anyone who can do so. Thanks in advance for your help, rick ps: If you don't get the attachment, just email and I'll send you a copy. ------=_Part_23999454_1976975027.1395105983045 Content-Type: text/x-patch; name=4kmcl.patch Content-Disposition: attachment; filename=4kmcl.patch Content-Transfer-Encoding: base64 LS0tIGZzL25mc3NlcnZlci9uZnNfbmZzZHBvcnQuYy5zYXYyCTIwMTQtMDEtMjYgMTg6NTQ6Mjku MDAwMDAwMDAwIC0wNTAwCisrKyBmcy9uZnNzZXJ2ZXIvbmZzX25mc2Rwb3J0LmMJMjAxNC0wMy0x NiAyMzoyM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lUT0ssIE1UX0RBVEEpOyAJCQlc Cg== ------=_Part_23999454_1976975027.1395105983045--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?570922189.23999456.1395105983047.JavaMail.root>