All of lore.kernel.org
 help / color / mirror / Atom feed
* automount subprocesses accumulate
@ 2015-09-10 14:43 Cyril B.
  2015-09-11  5:34 ` Ian Kent
  0 siblings, 1 reply; 9+ messages in thread
From: Cyril B. @ 2015-09-10 14:43 UTC (permalink / raw)
  To: autofs

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

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).

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.

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.

autofs is compiled with --disable-mount-locking as recursive mounting 
wouldn't work otherwise.

Thanks!

-- 
Cyril B.
--
To unsubscribe from this list: send the line "unsubscribe autofs" in

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-09-14  1:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-10 14:43 automount subprocesses accumulate Cyril B.
2015-09-11  5:34 ` Ian Kent
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

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.