public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Tom H <tomh0665@gmail.com>
To: Gentoo User <gentoo-user@lists.gentoo.org>
Subject: Re: [gentoo-user] nfsv4 issues
Date: Tue, 19 Jul 2016 19:34:10 -0400	[thread overview]
Message-ID: <CAOdo=SxbwCHp3qg9=5+ZPt7PWBLf8z2tnrqxJ8BNW7J6RV-pig@mail.gmail.com> (raw)
In-Reply-To: <CAC=wYCEt_TrNCmJ4vkfoD=pRFF_qQUgOjE4v0d0DzHCnsTFLqw@mail.gmail.com>

On Tue, Jul 19, 2016 at 12:49 AM, Adam Carter <adamcarter3@gmail.com> wrote:
>
> I'm trying to troubleshoot a newly setup nfs server, which, sometimes has a
> 30 second pause (tcpdump shows its server waiting).
>
> # time touch /usr/portage/distfiles/testfile
>
> real    0m30.088s
> user    0m0.000s
> sys     0m0.001s
>
> I cant see anything in the nfs server debugging so i want to strace nfsd.
> First i tell it to use single thread so i know i;m stracing the correct
> thread, but;
>
> # grep OPTS_RPC_NFSD nfs
> #OPTS_RPC_NFSD="8 -N2 -V 3 -V 4 -V 4.1"
> OPTS_RPC_NFSD="1 -N2 -V 3 -V 4 -V 4.1"
> # systemctl restart nfs-server
> # pgrep -lf nfsd
> 23546 nfsd4_callbacks
> 23548 nfsd
> 23549 nfsd
> 23550 nfsd
> 23551 nfsd
> 23552 nfsd
> 23553 nfsd
> 23554 nfsd
> 23555 nfsd
>
> So its not respecting the nproc setting. Any ideas? I also tried changing
> EXPORTFS_TIMEOUT= since its currently set at 30. It didnt help, but perhaps
> that's because its being ignored too.

Are the nfsd versions that you're setting being respected? You can
check with "rpcinfo -s" or "cat /proc/fs/nfsd/versions".

You can change the number of threads on the fly with "echo 1 >
/proc/fs/nfsd/threads".

I don't use systemd on Gentoo but for the nfs-utils upstream-shipped
systemd units that I think that Gentoo's using, you have to re-run
nfs-config.service - or run the script that it calls - in order to
update the "/run/sysconfig/nfs-utils" environment file that's sourced
by the nfs-server.service unit.

Does "/var/lib/nfs/v4recovery/" exist?

Does adding the client to "/etc/hosts" - or to your reverse dns zone -
eliminate the delay?


  reply	other threads:[~2016-07-19 23:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-19  4:49 [gentoo-user] nfsv4 issues Adam Carter
2016-07-19 23:34 ` Tom H [this message]
2016-07-21  2:51   ` Adam Carter
2016-07-22 12:46     ` Tom H
2016-07-23  0:22       ` Adam Carter
2016-07-24  7:37         ` Adam Carter
2016-07-24 16:47           ` Tom H
2016-07-24 16:21         ` Tom H

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='CAOdo=SxbwCHp3qg9=5+ZPt7PWBLf8z2tnrqxJ8BNW7J6RV-pig@mail.gmail.com' \
    --to=tomh0665@gmail.com \
    --cc=gentoo-user@lists.gentoo.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