From owner-freebsd-doc Wed Sep 19 20: 0:10 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id AC52137B409 for ; Wed, 19 Sep 2001 20:00:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8K303S26509; Wed, 19 Sep 2001 20:00:03 -0700 (PDT) (envelope-from gnats) Date: Wed, 19 Sep 2001 20:00:03 -0700 (PDT) Message-Id: <200109200300.f8K303S26509@freefall.freebsd.org> To: freebsd-doc@freebsd.org Cc: From: "Eugene M. Kim" Subject: Re: docs/30675: `noatime' should be discouraged on /var as well Reply-To: "Eugene M. Kim" Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR docs/30675; it has been noted by GNATS. From: "Eugene M. Kim" To: Chern Lee Cc: "Eugene M. Kim" , freebsd-gnats-submit@FreeBSD.org Subject: Re: docs/30675: `noatime' should be discouraged on /var as well Date: Wed, 19 Sep 2001 19:55:41 -0700 Chern, Your observation is correct. Sendmail does not explicitly manipulate the mtime nor the atime. What happens is, when sendmail has something to deliver to a mailbox, it just opens the mailbox file as write-only. This operation updates only the mtime of the mailbox, and its atime is preserved. Result: the mailbox now has an mtime more recent than its atime, which is the indication of new mail. See also tcsh(1), under the description of `mail' variable. Regards, Eugene A mail-reader resets that condition by reading from the mailbox. On Wed, Sep 19, 2001 at 05:52:32PM -0700, Chern Lee wrote: > A quick grep -Ri "atime" /usr/src/contrib/sendmail/ shows that sendmail > does not use file atime's for any operations. Mail program often use > *modification timestamps* (mtime), which is not changed by the noatime > option. > > Generally speaking, mtime is updated every time a file's contents is > changed, atime is changed whenever a file is accessed. > > If my memory serves me correctly, postfix does not make use of atime > either--I safely run a postfix server with noatime enabled on /var. > > - chern > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message