Linux NFS development
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Benjamin Coddington <bcodding@redhat.com>
Cc: Chuck Lever <chuck.lever@oracle.com>,
	Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: GSS sequence number window
Date: Wed, 31 May 2017 15:22:31 -0400	[thread overview]
Message-ID: <20170531192231.GA23526@fieldses.org> (raw)
In-Reply-To: <EC0579A3-BC81-4398-A11D-8D8EEFC473BF@redhat.com>

On Tue, May 30, 2017 at 04:11:20PM -0400, Benjamin Coddington wrote:
> On 30 May 2017, at 15:34, J. Bruce Fields wrote:
> 
> >On Tue, May 30, 2017 at 02:58:00PM -0400, Chuck Lever wrote:
> >>Hey Bruce!
> >>
> >>While testing with sec=krb5 and sec=krb5i, I noticed a lot of
> >>spurious connection loss, especially when I wanted to run a
> >>CPU-intensive workload on my NFS server at the same time I
> >>was testing.
> >>
> >>I added a pr_err() in gss_check_seq_num, and ran a fio job
> >>on a vers=3,sec=sys,proto=tcp mount (server is exporting a
> >>tmpfs). On the server, I rebuilt a kernel source tree cscope
> >>database at the same time.
> >>
> >>May 29 17:53:13 klimt kernel: gss_check_seq_num: seq_num =
> >>250098, sd_max = 250291, GSS_SEQ_WIN = 128
> >>May 29 17:53:33 klimt kernel: gss_check_seq_num: seq_num =
> >>937816, sd_max = 938171, GSS_SEQ_WIN = 128
> >>May 29 17:53:33 klimt kernel: gss_check_seq_num: seq_num =
> >>938544, sd_max = 938727, GSS_SEQ_WIN = 128
> >>May 29 17:53:33 klimt kernel: gss_check_seq_num: seq_num =
> >>938543, sd_max = 938727, GSS_SEQ_WIN = 128
> >>May 29 17:53:34 klimt kernel: gss_check_seq_num: seq_num =
> >>939344, sd_max = 939549, GSS_SEQ_WIN = 128
> >>May 29 17:53:35 klimt kernel: gss_check_seq_num: seq_num =
> >>965007, sd_max = 965176, GSS_SEQ_WIN = 128
> >>May 29 17:54:01 klimt kernel: gss_check_seq_num: seq_num =
> >>1799710, sd_max = 1799982, GSS_SEQ_WIN = 128
> >>May 29 17:54:02 klimt kernel: gss_check_seq_num: seq_num =
> >>1831165, sd_max = 1831353, GSS_SEQ_WIN = 128
> >>May 29 17:54:04 klimt kernel: gss_check_seq_num: seq_num =
> >>1883583, sd_max = 1883761, GSS_SEQ_WIN = 128
> >>May 29 17:54:07 klimt kernel: gss_check_seq_num: seq_num =
> >>1959316, sd_max = 1959447, GSS_SEQ_WIN = 128
> >>
> >>RFC 2203 suggests there's no risk to using a large window.
> >>My first thought was to make the sequence window larger
> >>(say 2048) but I've seen stragglers outside even that large
> >>a window.
> >>
> >>Any thoughts about why there are these sequence number
> >>outliers?
> >
> >No, alas.
> 
> I noticed some slow allocations on the server with krb5 last year - but
> never got around to doing anything about it:
> http://marc.info/?t=146032122900006&r=1&w=2
> 
> Could be the same thing?

I don't think it would be too hard to eliminate the need for allocations
there.  Or maybe there's even a quick hack that would let Chuck test
whether that's the problem (different GFP flags on those allocations?)

--b.

  reply	other threads:[~2017-05-31 19:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-30 18:58 GSS sequence number window Chuck Lever
2017-05-30 19:34 ` J. Bruce Fields
2017-05-30 20:11   ` Benjamin Coddington
2017-05-31 19:22     ` J. Bruce Fields [this message]
2017-05-31 20:27       ` Chuck Lever
2017-06-06 19:35         ` Chuck Lever
2017-06-06 19:41           ` J. Bruce Fields
2017-06-06 19:45             ` Chuck Lever
2017-06-06 20:15               ` J. Bruce Fields
2017-06-06 20:16                 ` Chuck Lever
2017-06-06 20:23                   ` J. Bruce Fields
2017-06-06 20:54                     ` Chuck Lever
2017-06-06 20:56                       ` J. Bruce Fields
2017-05-30 21:03   ` Chuck Lever

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170531192231.GA23526@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=bcodding@redhat.com \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox