Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jul 2014 20:51:01 -0400 (EDT)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        "Russell L. Carter" <rcarter@pinyon.org>
Cc:        freebsd-net@freebsd.org
Subject:   Re: NFS client READ performance on -current
Message-ID:  <870285181.7082888.1404435061501.JavaMail.root@uoguelph.ca>
In-Reply-To: <53B4CC43.1050205@pinyon.org>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_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: <Intel(R) PRO/1000 Network Connection 7.4.2> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?870285181.7082888.1404435061501.JavaMail.root>