From: Mark Shewmaker <mark@primefactor.com>
To: Brian Dushaw <dushaw@munk.apl.washington.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux kernel - and regular sync'ing?
Date: Mon, 12 Mar 2001 14:27:02 -0500 [thread overview]
Message-ID: <20010312142702.A28863@primefactor.com> (raw)
In-Reply-To: <20010308223319.A25679@flint.arm.linux.org.uk> <Pine.LNX.4.30.0103081439400.18253-100000@munk.apl.washington.edu>
In-Reply-To: <Pine.LNX.4.30.0103081439400.18253-100000@munk.apl.washington.edu>; from dushaw@munk.apl.washington.edu on Thu, Mar 08, 2001 at 02:50:46PM -0800
On Thu, Mar 08, 2001 at 02:50:46PM -0800, Brian Dushaw wrote:
> - the problem is fixed by adding the "noatime" option when mounting the
> root filesystem (I use /etc/fstab to do this)
> - there appears to be no harm in not updating the inode access times with
> this option.
As an aside, you may want to keep in mind the fact that you've edited
the /etc/fstab in this way, in case random oddities show up in the future.
Short story:
Once after a system upgrade, some of the user accounts developed a problem
in which the message "You have new mail" would be printed on the screen
at every login. The message would be printed whether or not the user
actually had new mail. The problem was independent of the login shell
used, but it would only happen for some users.
It turned out that the "problem" was a few lines in the login program
itself. login was comparing the atime and mtime timestamps of $MAIL.
If mtime>atime, then it figured you had new mail and would print that
message.
That makes sense--if your mailbox had been written to (modified) since
it was last read (accessed), then that's as as good a definition as any
of having new mail. But, I had put "noatime" in /etc/fstab during the
upgrade for the line for the filesystem that /var/spool/mail was in,
and no one's mail spool had had its atime updated since the upgrade, hence
"You have new mail" messages were printed during some users' logins.
(It turned out that the folks who were not getting the message at all
were sorting all their mail into separate folders, leaving $MAIL
empty all the time.)
We decided that the slight performance advantages of the noatime option
weren't worth it and quickly removed the option. (-o remount is great!)
It's probably very much worth it for you to keep your /etc/fstab as you've
edited it, but I did want to warn you that the noatime option can
still unexpectedly break programs that make quite reasonable assumptions.
-Mark Shewmaker
mark@primefactor.com
next prev parent reply other threads:[~2001-03-12 19:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-08 4:21 Linux kernel - and regular sync'ing? Brian Dushaw
2001-03-08 12:09 ` Alan Cox
2001-03-08 22:33 ` Russell King
2001-03-08 22:50 ` Brian Dushaw
2001-03-12 19:27 ` Mark Shewmaker [this message]
2001-03-13 19:43 ` Russell King
2001-03-09 11:46 ` Pavel Machek
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=20010312142702.A28863@primefactor.com \
--to=mark@primefactor.com \
--cc=dushaw@munk.apl.washington.edu \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox