All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Smith <psmith@netezza.com>
To: Jeff Moyer <jmoyer@redhat.com>
Cc: autofs@linux.kernel.org
Subject: Re: How exactly does timeout work?
Date: Mon, 09 Apr 2007 12:48:35 -0400	[thread overview]
Message-ID: <1176137315.30046.185.camel@psmithub> (raw)
In-Reply-To: <x49slb9xzu6.fsf@segfault.boston.devel.redhat.com>

On Mon, 2007-04-09 at 12:44 -0400, Jeff Moyer wrote:
> Jeff> If you set the timeout to 60 seconds, the automount daemon will
> Jeff> wake up approximately every 15 seconds (4 times per timeout, see
> Jeff> CHECK_RATIO in the daemon) and ask the kernel if it is okay to
> Jeff> expire the mount.
> 
> I guess I should further qualify this.  Asking the kernel means
> issuing an ioctl.  The kernel then checks the access time for the
> mount point and, if it is > timeout seconds ago, it will try to expire
> the mount (by calling out to the daemon).

Perfect; that's what I was looking for.  So, CHECK_RATIO is a constant
regardless of the size of the timeout?  So if I make my timeout 10 hours
it will check every 2.5 hours (unless I change the constant in the
daemon code)?

-- 
-----------------------------------------------------------------------------
 Paul D. Smith <psmith@netezza.com>                       http://netezza.com
 "Please remain calm--I may be mad, but I am a professional."--Mad Scientist
-----------------------------------------------------------------------------
      These are my opinions--Netezza takes no responsibility for them.

  reply	other threads:[~2007-04-09 16:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-09 15:45 How exactly does timeout work? Paul Smith
2007-04-09 16:14 ` Jeff Moyer
2007-04-09 16:44   ` Jeff Moyer
2007-04-09 16:48     ` Paul Smith [this message]
2007-04-09 16:57       ` Jeff Moyer
2007-04-09 17:14         ` Paul Smith
2007-04-09 17:21           ` Jeff Moyer
2007-04-09 17:36             ` Paul Smith
2007-04-10  3:58               ` Ian Kent
2007-04-10 18:06                 ` Jim Carter
2007-04-10 19:13                   ` 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=1176137315.30046.185.camel@psmithub \
    --to=psmith@netezza.com \
    --cc=autofs@linux.kernel.org \
    --cc=jmoyer@redhat.com \
    /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.