Article View: fa.netbsd.tech.kern
Article #130NFS vs jumbograms?
From: Mouse
Date: Mon, 03 Jun 2013 15:37
Date: Mon, 03 Jun 2013 15:37
58 lines
5244 bytes
5244 bytes
At $JOB, we have two i386 machines with wm interfaces connected
back-to-back with a short patch cable and a /30 subnet of 192.168. One
is NFS-serving some disk space to the other over this link. They are
running 4.0.1 (with a few tweaks of mine, but nothing touching
sys/nfs); while it's fallen off the end of official support, I thought
someone might happen to recall enough to be useful....
I tried turning on jumbograms ("mtu 9000" when configuring the
interfaces). It makes a mildly significant performance difference
(about 15% more throughput), but I find that, under circumstances I
haven't entirely explored the boundaries of, readdir() operations will
hang, wedging the operation, possibly the whole NFS subsystem, and in
one case all of userland (though I suspect that happened because of
deadlock between NFS and VM; it happened when userland was writing
large amounts of data over NFS). The command to provoke it can be as
simple as "echo */*x*".
I used tcpdump to capture network traffic. I captured on each machine,
and there are some packets missing when I compare the captures;
however, the contents of the lost packets strongly imply that it's a
tcpdump failure (one of them, for example, includes the lookup that
gives the file handle used for the failing readdir). Here's what the
end of the tcpdupmp looks like:
09:01:32.108640 IP 192.168.255.253.3374830016 > 192.168.255.254.2049: 128 lookup fh 18,3/549376 "28"
09:01:32.108736 IP 192.168.255.254.2049 > 192.168.255.253.3374830016: reply ok 236 lookup fh 18,3/550916
09:01:32.108925 IP 192.168.255.253.3374830017 > 192.168.255.254.2049: 124 access fh 18,3/550916 0001
09:01:32.109007 IP 192.168.255.254.2049 > 192.168.255.253.3374830017: reply ok 120 access c 0001
09:01:32.109211 IP 192.168.255.253.3374830018 > 192.168.255.254.2049: 120 getattr fh 18,3/550916
09:01:32.109284 IP 192.168.255.254.2049 > 192.168.255.253.3374830018: reply ok 112 getattr DIR 755 ids 1000/0 sz 6144
09:01:32.109497 IP 192.168.255.253.3374830019 > 192.168.255.254.2049: 140 readdir fh 18,3/550916 8192 bytes @ 0
09:01:32.109700 IP 192.168.255.254.2049 > 192.168.255.253.3374830019: reply ok 8296 readdir
09:01:32.110353 IP 192.168.255.253.3374830020 > 192.168.255.254.2049: 112 readdir fh 18,3/550916 8192 bytes @ 4668
09:01:32.110506 IP 192.168.255.254.2049 > 192.168.255.253.3374830020: reply ok 2004 readdir
09:01:32.194778 IP 192.168.255.253.3374830020 > 192.168.255.254.2049: 112 readdir fh 18,3/550916 8192 bytes @ 4668
09:01:32.194910 IP 192.168.255.254.2049 > 192.168.255.253.3374830020: reply ok 2004 readdir
09:01:32.364768 IP 192.168.255.253.3374830020 > 192.168.255.254.2049: 112 readdir fh 18,3/550916 8192 bytes @ 4668
09:01:32.364917 IP 192.168.255.254.2049 > 192.168.255.253.3374830020: reply ok 2004 readdir
(the last two lines above repeat, with only timestamps changing,
another dozen or so times)
This lockup is entirely repeatable as far as I can tell. Setting the
MTU on both wm interfaces to 1500 made it go away. I don't know, of
course, whether there might still be some variant of the condition that
would misbehave even with that MTU, but the stability of
NetBSD-to-NetBSD NFS in my past experience makes it seem unlikely.
The machines are in production use, but they are idle much of each day,
so I probably can try experiments, if anyone has anything to suggest.
I also still have the pcap capture files, in case they might contain
anything of value. For now, I'm just using MTU 1500.
Any thoughts?
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents-montreal.org
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Technical Details
Message-ID:
<fa.iW7E3aUi+1KGymX2U5KmTt0B+wU@ifi.uio.no>Path:
arc1-ca.pugleaf.net!bp1ni34341pbd.1!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: b7e13b6095,a85006da5c7c70e5,start
X-Google-Attributes: gidb7e13b6095,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.67.5.2 with SMTP id ci2mr448296pad.45.1370273879219;
Mon, 03 Jun 2013 08:37:59 -0700 (PDT)
Path: arc1-ca.pugleaf.net!bp1ni34341pbd.1!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: Mouse <mouse@Rodents-Montreal.ORG>
Newsgroups: fa.netbsd.tech.kern
Subject: NFS vs jumbograms?
Date: Mon, 03 Jun 2013 15:37:58 UTC
Organization: Internet mailing list
Lines: 58
Sender: tech-kern-owner@NetBSD.org
Message-ID: <fa.iW7E3aUi+1KGymX2U5KmTt0B+wU@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
X-Trace: readme.uio.no 1370273878 31668 129.240.7.9 (3 Jun 2013 15:37:58 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Mon, 3 Jun 2013 15:37:58 +0000 (UTC)
To: tech-kern@netbsd.org
Delivered-To: tech-kern@netbsd.org
X-Virus-Scanned: amavisd-new at NetBSD.org
X-Erik-Conspiracy: There is no Conspiracy - and if there were I wouldn't be part of it anyway.
X-Message-Flag: Microsoft: the company who gave us the botnet zombies.
X-Composition-Start-Date: Mon, 3 Jun 2013 10:12:40 -0400 (EDT)
List-Id: tech-kern.NetBSD.org
Original-Date: Mon, 3 Jun 2013 11:37:29 -0400 (EDT)
Original-Message-Id: <201306031537.LAA27455@Chip.Rodents-Montreal.ORG>
Bytes: 4951
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit