From: Ian Kent <raven@themaw.net>
To: "Cyril B." <cbay@excellency.fr>
Cc: autofs@vger.kernel.org
Subject: Re: automount subprocesses accumulate
Date: Fri, 11 Sep 2015 13:34:59 +0800 [thread overview]
Message-ID: <1441949699.5198.6.camel@themaw.net> (raw)
In-Reply-To: <55F1971B.1050301@excellency.fr>
On Thu, 2015-09-10 at 16:43 +0200, Cyril B. wrote:
> Hello,
>
> I've been using autofs for a long time to mount NFS servers under /nfs,
> and recently started using it for mounting /home subdirectories as well
> (which point on /nfs/).
>
> Since I've started automounting /home, I have automount subprocesses
> accumulating and never exiting:
>
> root 1761264 0.0 0.0 205416 1478 ? Ssl 14:06 0:00 /usr/sbin/automount
> --pid-file /var/run/autofs.pid
> root 1966587 0.0 0.0 209816 1564 ? S 14:45 0:00 \_ /usr/sbin/automount
> --pid-file /var/run/autofs.pid
> root 2023507 0.0 0.0 209816 1652 ? S 15:00 0:00 \_ /usr/sbin/automount
> --pid-file /var/run/autofs.pid
> root 2203212 0.0 0.0 215100 1900 ? S 15:45 0:00 \_ /usr/sbin/automount
> --pid-file /var/run/autofs.pid
Yeah, that's odd.
>
> My main automount was started at 14:06, and all subprocesses are stuck in a:
>
> futex(0x56122035a5a0, FUTEX_WAIT_PRIVATE, 2, NULL
>
> (same futex address for all of them).
Can you get a meaningful (that is with symbols, line numbers etc.) of
each of these processes and post it.
>
> There are typically a few new subprocesses each hour. I've already seen
> up to 20/25 subprocesses before I had to restart automount and kill them
> manually.
>
> I have a lot of users on this server, so automount is serving many
> requests. Especially at round times (14:00, 14:15, 14:30, etc.), when
> cron starts many user processes. According to automount debug logs, up
> to 20 new home subdirectories can be mounted every second.
Yeah, that's quite a few, maybe your triggering a race with the thread
creation. I've spent a lot of time on that and thought it worked ok ...
Do you have reports from users of mounts hanging on access?
>
> I'm using autofs 5.1.1 on Linux 4.1.4. My config:
>
> /etc/auto.master:
> --
> /nfs program:/etc/auto.nfs
> /home program:/etc/auto.home
> --
>
> /etc/auto.nfs is pretty standard, has been working fine for ages. It's
> basically returning:
>
> -fstype=nfs4,noatime,nosuid,_netdev,soft,intr,timeo=1000 $1:/
>
> /etc/auto.home:
> --
> #!/bin/sh
>
> if [ ! -h /var/home/$1 ]
> then
> exit 1
> fi
>
> echo -fstype=bind :$(readlink --no-newline /var/home/$1)
> --
>
> So for instance, /var/home/foo would be a symlink pointing to
> /nfs/serverX/foo.
So your bind mounting to an automounted nfs mount.
Not sure that's wise but probably should be ok.
I guess we need to look at the full debug log.
Can you post it somewhere or mail it to me privately please.
Ian
--
To unsubscribe from this list: send the line "unsubscribe autofs" in
next prev parent reply other threads:[~2015-09-11 5:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-10 14:43 automount subprocesses accumulate Cyril B.
2015-09-11 5:34 ` Ian Kent [this message]
2015-09-11 15:14 ` Cyril B.
2015-09-13 11:09 ` Ian Kent
2015-09-13 11:20 ` Cyril B.
2015-09-13 11:52 ` Ian Kent
2015-09-13 12:05 ` Cyril B.
2015-09-13 16:53 ` Cyril B.
2015-09-14 1:30 ` Ian Kent
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=1441949699.5198.6.camel@themaw.net \
--to=raven@themaw.net \
--cc=autofs@vger.kernel.org \
--cc=cbay@excellency.fr \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.