Hi, All:

I use autofs to mount shares of users under home directory with. Each user login, a map file will be created and an automount daemon will be invoked with options pid-file, ghost, timeout and file. When user logout, I need the automount daemon killed. Thus, I send SIGTERM to the automount daemon. It's probably there are several automount daemons existing in the same time. I found a case if many users logout at the same time, many SIGTERMs will be sent to corresponding automount daemons. In such cirsumstance, some automount daemons will not be killed and will exist in system forever. Thus I check the pid under /proc and send SIGTERM again when the automonut daemon not killed.

Did I use autofs in the wrong way?
Ms stress test is to keep login(invoke automount), mount(cd share1),access, logout(umount, kill automount) for 4 users sessions.

Many thanks,
Latrell.

ps. I patched the lock patch, and the condition not changed.

----- Original Message ----- From: "ramana" <[EMAIL PROTECTED]> To: "Ian Kent" <[EMAIL PROTECTED]>; "Latrell" <[EMAIL PROTECTED]>; "Jeff Moyer" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Saturday, July 08, 2006 1:53 PM
Subject: Re: [autofs] Large number of mount request.




--- Ian Kent <[EMAIL PROTECTED]> wrote:


I think Jeff has pretty much summed it up.

The SIGTERM terminates autofs and you then have unnecessary startup
and
shutdown overhead giving a window where mounts will not work as there
is
no daemon to manage them.

Don't forget that there was also a bug in the lock routines that
cause
it not to wait sometimes. Apply, at least the locking patch to 4.1.4.

I do not think so.

His explanation about what actually he is doing is not very clear.

Little more explanation on how he is doing strss test would help,
'rather than trying to include his own conclusions'

Thanks in advance.

Regards
ramana

--

Autodir

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to