From owner-freebsd-net@FreeBSD.ORG Fri Jul 4 00:51:09 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 59A4D415 for ; Fri, 4 Jul 2014 00:51:09 +0000 (UTC) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 1EED227D9 for ; Fri, 4 Jul 2014 00:51:08 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEAJrEtVODaFve/2dsb2JhbABag19agm+7boZsUwGBJHWEAwEBAQMBAQEBIAQnIAsFFhgRGQIEJQEJJgYIBwQBHASIGQgNrgSbRReOSwYBARsZGweCd4FMBZIhhWmENJJDg18hNX0IFyI X-IronPort-AV: E=Sophos;i="5.01,598,1400040000"; d="scan'208";a="138157957" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-annu.net.uoguelph.ca with ESMTP; 03 Jul 2014 20:51:01 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 7CC19B409F; Thu, 3 Jul 2014 20:51:01 -0400 (EDT) Date: Thu, 3 Jul 2014 20:51:01 -0400 (EDT) From: Rick Macklem To: "Russell L. Carter" Message-ID: <870285181.7082888.1404435061501.JavaMail.root@uoguelph.ca> In-Reply-To: <53B4CC43.1050205@pinyon.org> Subject: Re: NFS client READ performance on -current MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_7082886_1406096233.1404435061499" X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Win)/7.2.6_GA_2926) Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2014 00:51:09 -0000 ------=_Part_7082886_1406096233.1404435061499 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Russell L. Carter wrote: > > > On 07/02/14 19:09, Rick Macklem wrote: > > > Could you please post the dmesg stuff for the network interface, > > so I can tell what driver is being used? I'll take a look at it, > > in case it needs to be changed to use m_defrag(). > > em0: port 0xd020-0xd03f > mem > 0xfe4a0000-0xfe4bffff,0xfe480000-0xfe49ffff irq 44 at device 0.0 on > pci2 > em0: Using an MSI interrupt > em0: Ethernet address: 00:15:17:bc:29:ba > 001.000007 [2323] netmap_attach success for em0 tx 1/1024 > rx > 1/1024 queues/slots > > This is one of those dual nic cards, so there is em1 as well... > Well, I took a quick look at the driver and it does use m_defrag(), but I think that the "retry:" label it does a goto after doing so might be in the wrong place. The attached untested patch might fix this. Is it convenient to build a kernel with this patch applied and then try it with TSO enabled? rick ps: It does have the transmit segment limit set to 32. I have no idea if this is a hardware limitation. > Best, > Russell > > > > > Thanks for letting us know this fixed the problem, rick > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to > "freebsd-net-unsubscribe@freebsd.org" > ------=_Part_7082886_1406096233.1404435061499 Content-Type: text/x-patch; name=em.patch Content-Disposition: attachment; filename=em.patch Content-Transfer-Encoding: base64 LS0tIHN5cy9kZXYvZTEwMDAvaWZfZW0uYy5zYXYJMjAxNC0wNy0wMyAyMDoyNzo1MC4wMDAwMDAw MDAgLTA0MDAKKysrIHN5cy9kZXYvZTEwMDAvaWZfZW0uYwkyMDE0LTA3LTAzIDIwOjI5OjUzLjAw MDAwMDAwMCAtMDQwMApAQCAtMTgxOCw3ICsxODE4LDYgQEAgZW1feG1pdChzdHJ1Y3QgdHhfcmlu ZyAqdHhyLCBzdHJ1Y3QgbWJ1ZgogCWludAkJCW5zZWdzLCBpLCBqLCBmaXJzdCwgbGFzdCA9IDA7 CiAJaW50CQkJZXJyb3IsIGRvX3RzbywgdHNvX2Rlc2MgPSAwLCByZW1hcCA9IDE7CiAKLXJldHJ5 OgogCW1faGVhZCA9ICptX2hlYWRwOwogCXR4ZF91cHBlciA9IHR4ZF9sb3dlciA9IHR4ZF91c2Vk ID0gdHhkX3NhdmVkID0gMDsKIAlkb190c28gPSAoKG1faGVhZC0+bV9wa3RoZHIuY3N1bV9mbGFn cyAmIENTVU1fVFNPKSAhPSAwKTsKQEAgLTE5NDQsNiArMTk0Myw3IEBAIHJldHJ5OgogCXR4X2J1 ZmZlcl9tYXBwZWQgPSB0eF9idWZmZXI7CiAJbWFwID0gdHhfYnVmZmVyLT5tYXA7CiAKK3JldHJ5 OgogCWVycm9yID0gYnVzX2RtYW1hcF9sb2FkX21idWZfc2codHhyLT50eHRhZywgbWFwLAogCSAg ICAqbV9oZWFkcCwgc2VncywgJm5zZWdzLCBCVVNfRE1BX05PV0FJVCk7CiAK ------=_Part_7082886_1406096233.1404435061499--