Re: NFS issues since upgrading to 13-RELEASE

2021-04-25 Thread Juraj Lutter


> On 25 Apr 2021, at 15:06, Rick Macklem  wrote:
> 
> 2 - TSO does work correctly, but results in different timing of the TCP
>  segments transmitted for the segment compared with non-TSO.
> 
> I believe that, for otis@, disabling TSO reduced the frequency of Linux
> client hangs, but did not stop them.
> --> reverting the patch in r367492 (this patch is not in FreeBSD12) has
>   fixed the problem for him.
> 

Correct. Reverting the patch in r367492 has made the system stable and usable 
(thanks, Rick!).
We also have disabled LRO and TSO on the interfaces serving the NFS traffic, it 
also might have added up to the stability.

There is some more work going on in Phabricator (D29690) that we also want to 
test.


otis

—
Juraj Lutter
o...@freebsd.org

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: NFS issues since upgrading to 13-RELEASE

2021-04-25 Thread Rick Macklem
Chris Roose wrote:
> Jason Unovitch wrote:
> > Does anything change if you set -tso -lro on the serving NIC on your
> > FreeBSD server side?  Do the Linux clients remain responsive then?
>
> Thank you, Jason. This seems to have cleared the problem up for me.
> Since disabling TSO and LRO on the server NIC last night, I haven't seen
>  any timeouts.
I think there might be a couple of reasons that disabling TSO resolves this:
1 - The obvious one is that the net chip/driver is broken for certain TSO
  segments. Often the culprit is a NFS read reply of just less than 64K,
  that is made up of a chain of 33mbufs with a total length just under
  64K. Then the driver adds a MAC layer header that bumps the size up
  to greater than 64K.
  --> This can happen if the driver does not set the TSO sizing parameters
quite correctly, among other things.

2 - TSO does work correctly, but results in different timing of the TCP
  segments transmitted for the segment compared with non-TSO.

I believe that, for otis@, disabling TSO reduced the frequency of Linux
client hangs, but did not stop them.
--> reverting the patch in r367492 (this patch is not in FreeBSD12) has
   fixed the problem for him.

rick

--
Chris
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: NFS issues since upgrading to 13-RELEASE

2021-04-20 Thread Chris Roose

> Does anything change if you set -tso -lro on the serving NIC on your
> FreeBSD server side?  Do the Linux clients remain responsive then?

Thank you, Jason. This seems to have cleared the problem up for me. 
Since disabling TSO and LRO on the server NIC last night, I haven't seen 
any timeouts.


--
Chris
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: NFS issues since upgrading to 13-RELEASE

2021-04-19 Thread Juraj Lutter


> On 19 Apr 2021, at 17:03, Rick Macklem  wrote:
> 
> Olav Gjerde wrote:
>> I have tried D29690 patch and reverting back to r367492 this weekend. 
>> Neither made any difference for my system.

For me, reverting the patch in r367492, solved all the problems.
In addition, I also turned off LRO and TSO on NICs comprising the lagg 
interface over which NFS service is provided.

otis

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: NFS issues since upgrading to 13-RELEASE

2021-04-19 Thread Rick Macklem
Olav Gjerde wrote:
>I have tried D29690 patch and reverting back to r367492 this weekend. Neither 
>made any difference for my system.
Just to clarify it, I meant "revert the patch in r367492" and not
"revert to revision r367492". I've attached the patch that
backs out the changes made by the patch in r367492, which
should apply to a fairly recent main/13 kernel.

This should be done instead of applying D29690, not combined with it.
My testing of D29690 has suggested it is not yet mature, so
I would not recommend choosing that alternative yet.

If you have tried a kernel with the attached patch applied to it, but not
D29690 applied to it, then please:
Let us know if you still have Linux clients "hanging" with this kernel.
If still "hanging", try the following to see if they help:
- Use the "minorversion=1" mount option on the Linux clients,
   to ensure that they are not using NFSv4.2, to see if it is a
   NFSv4.2 specific issue.
- Try disabling tso and lro and avoid jumbo frames for drivers
  that use jumbo mbufs when handling jumbo frames.
Collect the following info when it happens:
- "netstat -a", to see what the TCP connection is up to.
- "tcpdump -s 0 -w hang.pcap host "
   run for several minutes on the server, to see what is going on the
   wire. I use wireshark to look at hang.pcap, since it
   knows NFS as well as TCP.
   You can also do the above with "host " instead
   of "host " run on the client.
- "ps axHl" on the server, to see what the nfsd threads
   are up to.
If none of the above contains confidential info, please
send it to me, if not the list.

Good luck with it, rick
ps: Yea, I started this post and then realized I had hit
 reply instead of reply all.



There is also a reddit thread about this 
https://www.reddit.com/r/freebsd/comments/mqol4o/nfs_issues_since_upgrading_to_13release/

On Sat, Apr 17, 2021 at 1:10 AM Rick Macklem 
mailto:rmack...@uoguelph.ca>> wrote:
Just fyi, I just got a "recursed on non-recursed mutex" panic in
socantrcvmore() with the D29690 patch, so you might not
want to test with that one yet.

rick


From: 
owner-freebsd-curr...@freebsd.org<mailto:owner-freebsd-curr...@freebsd.org> 
mailto:owner-freebsd-curr...@freebsd.org>> 
on behalf of Olav Gjerde mailto:o...@backupbay.com>>
Sent: Thursday, April 15, 2021 3:21 PM
To: Allan Jude
Cc: freebsd-current@freebsd.org<mailto:freebsd-current@freebsd.org>
Subject: Re: NFS issues since upgrading to 13-RELEASE

CAUTION: This email originated from outside of the University of Guelph. Do not 
click links or open attachments unless you recognize the sender and know the 
content is safe. If in doubt, forward suspicious emails to 
ith...@uoguelph.ca<mailto:ith...@uoguelph.ca>


Well something do happen if I restart NFS Service on FreeBSD , it works for
like 10 seconds then it gets unresponsive again.

This is my output from `nfsstat -d 1`

0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
8.00  10258.00  8.02 17170  134.54  2.01 72716  142.54  0.07  51  34
8.00  2273   17.76  7.99 31273  244.07  2.01 133267  261.83  0.14  20  82
8.03  4889   38.33  7.99 25885  202.07  2.06 119340  240.40  0.13  21  81
[= Read =]  [= Write ]  [=== Total ]
KB/t   tpsMB/s  KB/t   tpsMB/s  KB/t   tpsMB/sms  ql  %b
7.98  8811   68.64  8.00 12997  101.54  2.22 78396  170.18  0.15   1  80
7.99   9227.20  8.00  3798   29.68  2.10 17965   36.87  0.09   0  11
8.07  2959   23.31  0.00 00.00  2.67  8938   23.31  0.86  32  72
7.97  7088   55.18  0.00 00.00  2.66 21233   55.18  1.05  16  98
7.98  4666   36.38  0.00 00.00  2.66 13986   36.38  0.36   9  29
8.00  4513   35.24  8.00  7662   59.86  2.20 44188   95.10  0.27  10  49
7.98  4799   37.40  8.00

Re: NFS issues since upgrading to 13-RELEASE

2021-04-19 Thread Olav Gjerde
I have tried D29690 patch and reverting back to r367492 this weekend.
Neither made any difference for my system.
There is also a reddit thread about this
https://www.reddit.com/r/freebsd/comments/mqol4o/nfs_issues_since_upgrading_to_13release/

On Sat, Apr 17, 2021 at 1:10 AM Rick Macklem  wrote:

> Just fyi, I just got a "recursed on non-recursed mutex" panic in
> socantrcvmore() with the D29690 patch, so you might not
> want to test with that one yet.
>
> rick
>
> 
> From: owner-freebsd-curr...@freebsd.org 
> on behalf of Olav Gjerde 
> Sent: Thursday, April 15, 2021 3:21 PM
> To: Allan Jude
> Cc: freebsd-current@freebsd.org
> Subject: Re: NFS issues since upgrading to 13-RELEASE
>
> CAUTION: This email originated from outside of the University of Guelph.
> Do not click links or open attachments unless you recognize the sender and
> know the content is safe. If in doubt, forward suspicious emails to
> ith...@uoguelph.ca
>
>
> Well something do happen if I restart NFS Service on FreeBSD , it works for
> like 10 seconds then it gets unresponsive again.
>
> This is my output from `nfsstat -d 1`
>
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 8.00  10258.00  8.02 17170  134.54  2.01 72716  142.54  0.07  51  34
> 8.00  2273   17.76  7.99 31273  244.07  2.01 133267  261.83  0.14  20  82
> 8.03  4889   38.33  7.99 25885  202.07  2.06 119340  240.40  0.13  21  81
> [= Read =]  [= Write ]  [=== Total ]
> KB/t   tpsMB/s  KB/t   tpsMB/s  KB/t   tpsMB/sms  ql  %b
> 7.98  8811   68.64  8.00 12997  101.54  2.22 78396  170.18  0.15   1  80
> 7.99   9227.20  8.00  3798   29.68  2.10 17965   36.87  0.09   0  11
> 8.07  2959   23.31  0.00 00.00  2.67  8938   23.31  0.86  32  72
> 7.97  7088   55.18  0.00 00.00  2.66 21233   55.18  1.05  16  98
> 7.98  4666   36.38  0.00 00.00  2.66 13986   36.38  0.36   9  29
> 8.00  4513   35.24  8.00  7662   59.86  2.20 44188   95.10  0.27  10  49
> 7.98  4799   37.40  8.00 11422   89.23  2.16 60076  126.63  0.19   0  51
> 8.00  4322   33.76  0.00 00.00  2.67 12967   33.76  0.89   0  42
> 8.02  4839   37.91  0.00 00.00  2.67 14550   37.91  0.54  17  41
> 8.01  4516   35.32  0.00 00.00  2.67 13569   35.32  0.57  27  38
> 7.95  4459   34.62  8.00  11959.34  2.49 18109   43.96  0.55   0  45
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
> 0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
>
>
>
> On Thu, Apr 15, 2021 at 9:07 PM Olav Gjerde  wrote:
>
> > I have the same issue, using Ubuntu 20.10 with Linux 5.8 kernel. The
> Linux
> > NFS client will get unresponsive and it does not recover in my case, even
> > if I restart NFS on FreeBSD. I upgraded from FreeBSD 12.1-RELEASE though.
> >
> > On Thu, Apr 15, 2021 at 8:36 PM Allan Jude 
> wrote:
> >
> >> On 4/15/2021 9:22 AM, Chris Roose wrote:
> >> > I posted this in -questions and someone suggested I post here as well.
> >> >
> >> > I'm having NFS availability is

Re: NFS issues since upgrading to 13-RELEASE

2021-04-17 Thread Jason Unovitch
Olav,

Does anything change if you set -tso -lro on the serving NIC on your
FreeBSD server side?  Do the Linux clients remain responsive then?

I had seen something similar with a Ubuntu 20.04 client going to a
13.0-CURRENT/STABLE server but chalked it up to it starting around the time
of the last Chelsio firmware update. I haven't had the time to dig into it
and the temporary triage of setting '-tso -lro' at boot hasn't been as
temporary as I hoped. That did stable it up on my side.  Curious what you
see and if that helps add another data point to understanding the issue.

Jason

On Fri, Apr 16, 2021 at 1:30 AM  wrot

> Date: Thu, 15 Apr 2021 21:07:18 +0200
> From: Olav Gjerde 
> To: Allan Jude 
> Cc: freebsd-current@freebsd.org
> Subject: Re: NFS issues since upgrading to 13-RELEASE
> Message-ID:
>  irdng2...@mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> I have the same issue, using Ubuntu 20.10 with Linux 5.8 kernel. The Linux
> NFS client will get unresponsive and it does not recover in my case, even
> if I restart NFS on FreeBSD. I upgraded from FreeBSD 12.1-RELEASE though.
>
> On Thu, Apr 15, 2021 at 8:36 PM Allan Jude  wrote:
>
> > On 4/15/2021 9:22 AM, Chris Roose wrote:
> > > I posted this in -questions and someone suggested I post here as well.
> > >
> > > I'm having NFS availability issues between my Proxmox client and
> FreeBSD
> > server (10G link) since upgrading to 13-RELEASE. And unfortunately I
> > upgraded my ZFS pool to v2.0.0 before I noticed the issue, so I'm kind of
> > stuck.
> > >
> > > Periodically, the NFS server (I've tried both v3 and v4.2 clients) will
> > go unresponsive for several minutes. I never had this problem on 12.2,
> and
> > as far as I can tell it's not a disk or network I/O issue. I'll get
> several
> > "nfs: server not responding, still trying" messages on the client and a
> few
> > minutes later it usually recovers. It's not clear to me yet what's
> causing
> > the block. Restarting nfsd on the server will resolve the issue if it
> > doesn't clear itself.
> > >
> > > Any pointers for troubleshooting this? I've been looking through
> vmstat,
> > gstat, top, etc. when the problem occurs, but I haven't been able to
> > pinpoint the issue. I can get pcap, but it would be from the hosts,
> because
> > I don't have a 10G tap or managed switch.
> > >
> >
> > run `nfsstat -d 1` and try to capture a few lines from before, during,
> > and after the stall, and that may provide some insight.
> >
> > Specifically, does the queue length grow, suggesting it is waiting on
> > the I/O subsystem, or does it just stop getting traffic all together.
> >
> >
> > --
> > Allan Jude
> > ___
> > freebsd-current@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "
> freebsd-current-unsubscr...@freebsd.org"
> >
>
>
> --
> Kind Regards / Med Vennlig Hilsen
>
> Olav Gr?n?s Gjerde
>
> BackupBay Gjerde
> Madlaforen 35
> 4042 HAFRSFJORD
> Norway
> Phone: +47 918 000 59
>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: NFS issues since upgrading to 13-RELEASE

2021-04-16 Thread Rick Macklem
Just fyi, I just got a "recursed on non-recursed mutex" panic in
socantrcvmore() with the D29690 patch, so you might not
want to test with that one yet.

rick


From: owner-freebsd-curr...@freebsd.org  on 
behalf of Olav Gjerde 
Sent: Thursday, April 15, 2021 3:21 PM
To: Allan Jude
Cc: freebsd-current@freebsd.org
Subject: Re: NFS issues since upgrading to 13-RELEASE

CAUTION: This email originated from outside of the University of Guelph. Do not 
click links or open attachments unless you recognize the sender and know the 
content is safe. If in doubt, forward suspicious emails to ith...@uoguelph.ca


Well something do happen if I restart NFS Service on FreeBSD , it works for
like 10 seconds then it gets unresponsive again.

This is my output from `nfsstat -d 1`

0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
8.00  10258.00  8.02 17170  134.54  2.01 72716  142.54  0.07  51  34
8.00  2273   17.76  7.99 31273  244.07  2.01 133267  261.83  0.14  20  82
8.03  4889   38.33  7.99 25885  202.07  2.06 119340  240.40  0.13  21  81
[= Read =]  [= Write ]  [=== Total ]
KB/t   tpsMB/s  KB/t   tpsMB/s  KB/t   tpsMB/sms  ql  %b
7.98  8811   68.64  8.00 12997  101.54  2.22 78396  170.18  0.15   1  80
7.99   9227.20  8.00  3798   29.68  2.10 17965   36.87  0.09   0  11
8.07  2959   23.31  0.00 00.00  2.67  8938   23.31  0.86  32  72
7.97  7088   55.18  0.00 00.00  2.66 21233   55.18  1.05  16  98
7.98  4666   36.38  0.00 00.00  2.66 13986   36.38  0.36   9  29
8.00  4513   35.24  8.00  7662   59.86  2.20 44188   95.10  0.27  10  49
7.98  4799   37.40  8.00 11422   89.23  2.16 60076  126.63  0.19   0  51
8.00  4322   33.76  0.00 00.00  2.67 12967   33.76  0.89   0  42
8.02  4839   37.91  0.00 00.00  2.67 14550   37.91  0.54  17  41
8.01  4516   35.32  0.00 00.00  2.67 13569   35.32  0.57  27  38
7.95  4459   34.62  8.00  11959.34  2.49 18109   43.96  0.55   0  45
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0



On Thu, Apr 15, 2021 at 9:07 PM Olav Gjerde  wrote:

> I have the same issue, using Ubuntu 20.10 with Linux 5.8 kernel. The Linux
> NFS client will get unresponsive and it does not recover in my case, even
> if I restart NFS on FreeBSD. I upgraded from FreeBSD 12.1-RELEASE though.
>
> On Thu, Apr 15, 2021 at 8:36 PM Allan Jude  wrote:
>
>> On 4/15/2021 9:22 AM, Chris Roose wrote:
>> > I posted this in -questions and someone suggested I post here as well.
>> >
>> > I'm having NFS availability issues between my Proxmox client and
>> FreeBSD server (10G link) since upgrading to 13-RELEASE. And unfortunately
>> I upgraded my ZFS pool to v2.0.0 before I noticed the issue, so I'm kind of
>> stuck.
>> >
>> > Periodically, the NFS server (I've tried both v3 and v4.2 clients) will
>> go unresponsive for several minutes. I never had this problem on 12.2, and
>> as far as I can tell it's not a disk or network I/O issue. I'll get several
>> "nfs: server not responding, still trying" messages on the client and a few
>> minutes later it usually recovers. It's not clear to me yet what's causing
>> the block. Resta

Re: NFS issues since upgrading to 13-RELEASE

2021-04-16 Thread Olav Gjerde
Well something do happen if I restart NFS Service on FreeBSD , it works for
like 10 seconds then it gets unresponsive again.

This is my output from `nfsstat -d 1`

0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
8.00  10258.00  8.02 17170  134.54  2.01 72716  142.54  0.07  51  34
8.00  2273   17.76  7.99 31273  244.07  2.01 133267  261.83  0.14  20  82
8.03  4889   38.33  7.99 25885  202.07  2.06 119340  240.40  0.13  21  81
[= Read =]  [= Write ]  [=== Total ]
KB/t   tpsMB/s  KB/t   tpsMB/s  KB/t   tpsMB/sms  ql  %b
7.98  8811   68.64  8.00 12997  101.54  2.22 78396  170.18  0.15   1  80
7.99   9227.20  8.00  3798   29.68  2.10 17965   36.87  0.09   0  11
8.07  2959   23.31  0.00 00.00  2.67  8938   23.31  0.86  32  72
7.97  7088   55.18  0.00 00.00  2.66 21233   55.18  1.05  16  98
7.98  4666   36.38  0.00 00.00  2.66 13986   36.38  0.36   9  29
8.00  4513   35.24  8.00  7662   59.86  2.20 44188   95.10  0.27  10  49
7.98  4799   37.40  8.00 11422   89.23  2.16 60076  126.63  0.19   0  51
8.00  4322   33.76  0.00 00.00  2.67 12967   33.76  0.89   0  42
8.02  4839   37.91  0.00 00.00  2.67 14550   37.91  0.54  17  41
8.01  4516   35.32  0.00 00.00  2.67 13569   35.32  0.57  27  38
7.95  4459   34.62  8.00  11959.34  2.49 18109   43.96  0.55   0  45
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0
0.00 00.00  0.00 00.00  0.00 00.00  0.00   0   0



On Thu, Apr 15, 2021 at 9:07 PM Olav Gjerde  wrote:

> I have the same issue, using Ubuntu 20.10 with Linux 5.8 kernel. The Linux
> NFS client will get unresponsive and it does not recover in my case, even
> if I restart NFS on FreeBSD. I upgraded from FreeBSD 12.1-RELEASE though.
>
> On Thu, Apr 15, 2021 at 8:36 PM Allan Jude  wrote:
>
>> On 4/15/2021 9:22 AM, Chris Roose wrote:
>> > I posted this in -questions and someone suggested I post here as well.
>> >
>> > I'm having NFS availability issues between my Proxmox client and
>> FreeBSD server (10G link) since upgrading to 13-RELEASE. And unfortunately
>> I upgraded my ZFS pool to v2.0.0 before I noticed the issue, so I'm kind of
>> stuck.
>> >
>> > Periodically, the NFS server (I've tried both v3 and v4.2 clients) will
>> go unresponsive for several minutes. I never had this problem on 12.2, and
>> as far as I can tell it's not a disk or network I/O issue. I'll get several
>> "nfs: server not responding, still trying" messages on the client and a few
>> minutes later it usually recovers. It's not clear to me yet what's causing
>> the block. Restarting nfsd on the server will resolve the issue if it
>> doesn't clear itself.
>> >
>> > Any pointers for troubleshooting this? I've been looking through
>> vmstat, gstat, top, etc. when the problem occurs, but I haven't been able
>> to pinpoint the issue. I can get pcap, but it would be from the hosts,
>> because I don't have a 10G tap or managed switch.
>> >
>>
>> run `nfsstat -d 1` and try to capture a few lines from before, during,
>> and after the stall, and that may provide some insight.
>>
>> Specifically, does the queue length grow, suggesting it is waiting on
>> the I/O subsystem, or does it just stop getting traffic all together.
>>
>>
>> --
>> Allan Jude
>> ___
>> freebsd-current@freebsd.org mailing list
>> 

Re: NFS issues since upgrading to 13-RELEASE

2021-04-15 Thread Olav Gjerde
I have the same issue, using Ubuntu 20.10 with Linux 5.8 kernel. The Linux
NFS client will get unresponsive and it does not recover in my case, even
if I restart NFS on FreeBSD. I upgraded from FreeBSD 12.1-RELEASE though.

On Thu, Apr 15, 2021 at 8:36 PM Allan Jude  wrote:

> On 4/15/2021 9:22 AM, Chris Roose wrote:
> > I posted this in -questions and someone suggested I post here as well.
> >
> > I'm having NFS availability issues between my Proxmox client and FreeBSD
> server (10G link) since upgrading to 13-RELEASE. And unfortunately I
> upgraded my ZFS pool to v2.0.0 before I noticed the issue, so I'm kind of
> stuck.
> >
> > Periodically, the NFS server (I've tried both v3 and v4.2 clients) will
> go unresponsive for several minutes. I never had this problem on 12.2, and
> as far as I can tell it's not a disk or network I/O issue. I'll get several
> "nfs: server not responding, still trying" messages on the client and a few
> minutes later it usually recovers. It's not clear to me yet what's causing
> the block. Restarting nfsd on the server will resolve the issue if it
> doesn't clear itself.
> >
> > Any pointers for troubleshooting this? I've been looking through vmstat,
> gstat, top, etc. when the problem occurs, but I haven't been able to
> pinpoint the issue. I can get pcap, but it would be from the hosts, because
> I don't have a 10G tap or managed switch.
> >
>
> run `nfsstat -d 1` and try to capture a few lines from before, during,
> and after the stall, and that may provide some insight.
>
> Specifically, does the queue length grow, suggesting it is waiting on
> the I/O subsystem, or does it just stop getting traffic all together.
>
>
> --
> Allan Jude
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>


-- 
Kind Regards / Med Vennlig Hilsen

Olav Grønås Gjerde

BackupBay Gjerde
Madlaforen 35
4042 HAFRSFJORD
Norway
Phone: +47 918 000 59
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: NFS issues since upgrading to 13-RELEASE

2021-04-15 Thread Juraj Lutter

> On 15 Apr 2021, at 23:09, Juraj Lutter  wrote:
> 
> The machine it’s running on is definitely a slow or weak one (it’s dell 
> r740xd with 2x CPU, 256GB RAM, 22xNVMe data zpool).


Is definitely *NOT* a slow or weak one :-)

otis

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: NFS issues since upgrading to 13-RELEASE

2021-04-15 Thread Juraj Lutter

> On 15 Apr 2021, at 22:47, Rick Macklem  wrote:
> 
> Allan Jude wrote:
>> On 4/15/2021 9:22 AM, Chris Roose wrote:
>>> I posted this in -questions and someone suggested I post here as well.
>>> 
>>> I'm having NFS availability issues between my Proxmox client and FreeBSD 
>>> server (10G link) since upgrading to 13->RELEASE. And unfortunately I 
>>> upgraded my ZFS pool to v2.0.0 before I noticed the issue, so I'm kind of 
>>> stuck.
>>> 
>>> Periodically, the NFS server (I've tried both v3 and v4.2 clients) will go 
>>> unresponsive for several minutes. I never had >this problem on 12.2, and as 
>>> far as I can tell it's not a disk or network I/O issue. I'll get several 
>>> "nfs: server not >responding, still trying" messages on the client and a 
>>> few minutes later it usually recovers. It's not clear to me yet >what's 
>>> causing the block. Restarting nfsd on the server will resolve the issue if 
>>> it doesn't clear itself.
>> 
> otis@ has run into a problem that sounds similar.
> He sees a growing Recv-Q size on the server for the TCP connection from the 
> client
> when "netstat -a" is done on the server when the "hang" occurs.
> In his case, he is using a Linux client and it does not recover, however 
> other client
> mounts continue to function.

Correct.

> I suspect the recovery after a few minutes is the client establishing a new 
> TCP
> connection.
> 
> He has been running for almost a week with r367492 reverted and has not 
> reported
> seeing the problem again (he had reported that it has taken up to a week to 
> recur, so
> reverting r367492 *might* have fixed the problem and I'd guess we'll know in 
> another
> week?).

We are now running 4 days without interruption. Before r367492 was reverted, it 
was
unpredictable when it will lock up. The best result we achieved was 7 days.

The machine it’s running on is definitely a slow or weak one (it’s dell r740xd 
with 2x CPU, 256GB RAM, 22xNVMe data zpool).

otis

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: NFS issues since upgrading to 13-RELEASE

2021-04-15 Thread Rick Macklem
Stupid Outlook...
I wrote:
[stuff snipped]
>- Alternately you can try rscheff@'s alternate proposed patch that is at
>  https://reviews.freebsd.og/D29690.
Oops, that's
https:/reviews.freebsd.org/D29690

But you can figure out the link;-), rick

rick

  I have not yet had time to test this one, but since I cannot reproduce the 
hang, I can
  only do testing of it to see that it is "no worse" than reverting r367492 for 
my
  setup.

Please let us know which you choose and whether or not it fixes your problem.

>> Any pointers for troubleshooting this? I've been looking through vmstat, 
>> gstat, top, etc. when the problem occurs, but I haven't been able to 
>> pinpoint the issue. I can get pcap, but it would be from the hosts, because 
>> I don't have a 10G tap or managed switch.
>>
>
>run `nfsstat -d 1` and try to capture a few lines from before, during,
>and after the stall, and that may provide some insight.
>
>Specifically, does the queue length grow, suggesting it is waiting on
>the I/O subsystem, or does it just stop getting traffic all together.

If the revert of r367492 does not fix the problem, monitor the TCP connection(s)
via "netstat -a" and, if possible, capture packets via
tcpdump -s 0 -w hang.pcap host 
or similar, run on the server.

Ideally the tcpdump would  be started before the "hang" occurs, but running
one while the hang is occurring (until after it recovers) could also be useful.

Thanks for reporting this, rick

--
Allan Jude
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: NFS issues since upgrading to 13-RELEASE

2021-04-15 Thread Rick Macklem
I wrote:
[stuff snipped]
>- Alternately you can try rscheff@'s alternate proposed patch that is at
>  https://reviews.freebsd.og/D29690.
Oops, that's
https:/reviews.freebsd.org/D29690

rick

  I have not yet had time to test this one, but since I cannot reproduce the 
hang, I can
  only do testing of it to see that it is "no worse" than reverting r367492 for 
my
  setup.

Please let us know which you choose and whether or not it fixes your problem.

>> Any pointers for troubleshooting this? I've been looking through vmstat, 
>> gstat, top, etc. when the problem occurs, but I haven't been able to 
>> pinpoint the issue. I can get pcap, but it would be from the hosts, because 
>> I don't have a 10G tap or managed switch.
>>
>
>run `nfsstat -d 1` and try to capture a few lines from before, during,
>and after the stall, and that may provide some insight.
>
>Specifically, does the queue length grow, suggesting it is waiting on
>the I/O subsystem, or does it just stop getting traffic all together.

If the revert of r367492 does not fix the problem, monitor the TCP connection(s)
via "netstat -a" and, if possible, capture packets via
tcpdump -s 0 -w hang.pcap host 
or similar, run on the server.

Ideally the tcpdump would  be started before the "hang" occurs, but running
one while the hang is occurring (until after it recovers) could also be useful.

Thanks for reporting this, rick

--
Allan Jude
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: NFS issues since upgrading to 13-RELEASE

2021-04-15 Thread Rick Macklem
Allan Jude wrote:
>On 4/15/2021 9:22 AM, Chris Roose wrote:
>> I posted this in -questions and someone suggested I post here as well.
>>
>> I'm having NFS availability issues between my Proxmox client and FreeBSD 
>> server (10G link) since upgrading to 13->RELEASE. And unfortunately I 
>> upgraded my ZFS pool to v2.0.0 before I noticed the issue, so I'm kind of 
>> stuck.
>>
>> Periodically, the NFS server (I've tried both v3 and v4.2 clients) will go 
>> unresponsive for several minutes. I never had >this problem on 12.2, and as 
>> far as I can tell it's not a disk or network I/O issue. I'll get several 
>> "nfs: server not >responding, still trying" messages on the client and a few 
>> minutes later it usually recovers. It's not clear to me yet >what's causing 
>> the block. Restarting nfsd on the server will resolve the issue if it 
>> doesn't clear itself.
>
otis@ has run into a problem that sounds similar.
He sees a growing Recv-Q size on the server for the TCP connection from the 
client
when "netstat -a" is done on the server when the "hang" occurs.
In his case, he is using a Linux client and it does not recover, however other 
client
mounts continue to function.
I suspect the recovery after a few minutes is the client establishing a new TCP
connection.

He has been running for almost a week with r367492 reverted and has not reported
seeing the problem again (he had reported that it has taken up to a week to 
recur, so
reverting r367492 *might* have fixed the problem and I'd guess we'll know in 
another
week?).

- If using svn to revert the patch is inconvenient, I've attached a patch that 
can be applied
   to revert it.
- Alternately you can try rscheff@'s alternate proposed patch that is at
  https://reviews.freebsd.og/D29690.
  I have not yet had time to test this one, but since I cannot reproduce the 
hang, I can
  only do testing of it to see that it is "no worse" than reverting r367492 for 
my
  setup.

Please let us know which you choose and whether or not it fixes your problem.
  
>> Any pointers for troubleshooting this? I've been looking through vmstat, 
>> gstat, top, etc. when the problem occurs, but I haven't been able to 
>> pinpoint the issue. I can get pcap, but it would be from the hosts, because 
>> I don't have a 10G tap or managed switch.
>>
>
>run `nfsstat -d 1` and try to capture a few lines from before, during,
>and after the stall, and that may provide some insight.
>
>Specifically, does the queue length grow, suggesting it is waiting on
>the I/O subsystem, or does it just stop getting traffic all together.

If the revert of r367492 does not fix the problem, monitor the TCP connection(s)
via "netstat -a" and, if possible, capture packets via
tcpdump -s 0 -w hang.pcap host 
or similar, run on the server.

Ideally the tcpdump would  be started before the "hang" occurs, but running
one while the hang is occurring (until after it recovers) could also be useful.

Thanks for reporting this, rick

--
Allan Jude
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"



r367492-revert.patch
Description: r367492-revert.patch
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: NFS issues since upgrading to 13-RELEASE

2021-04-15 Thread Allan Jude
On 4/15/2021 9:22 AM, Chris Roose wrote:
> I posted this in -questions and someone suggested I post here as well.
> 
> I'm having NFS availability issues between my Proxmox client and FreeBSD 
> server (10G link) since upgrading to 13-RELEASE. And unfortunately I upgraded 
> my ZFS pool to v2.0.0 before I noticed the issue, so I'm kind of stuck.
> 
> Periodically, the NFS server (I've tried both v3 and v4.2 clients) will go 
> unresponsive for several minutes. I never had this problem on 12.2, and as 
> far as I can tell it's not a disk or network I/O issue. I'll get several 
> "nfs: server not responding, still trying" messages on the client and a few 
> minutes later it usually recovers. It's not clear to me yet what's causing 
> the block. Restarting nfsd on the server will resolve the issue if it doesn't 
> clear itself.
> 
> Any pointers for troubleshooting this? I've been looking through vmstat, 
> gstat, top, etc. when the problem occurs, but I haven't been able to pinpoint 
> the issue. I can get pcap, but it would be from the hosts, because I don't 
> have a 10G tap or managed switch.
> 

run `nfsstat -d 1` and try to capture a few lines from before, during,
and after the stall, and that may provide some insight.

Specifically, does the queue length grow, suggesting it is waiting on
the I/O subsystem, or does it just stop getting traffic all together.


-- 
Allan Jude
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"