mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ferenc Wagner <wferi@niif.hu>
To: linux-kernel@vger.kernel.org
Subject: mmap vs mtime in 2.6.26
Date: Fri, 08 May 2009 02:58:43 +0200	[thread overview]
Message-ID: <874ovws94s.fsf@tac.ki.iif.hu> (raw)

Hi,

I've noticed that the last modification times of our RRD files got
stuck after upgrading from 2.6.24 to 2.6.26 (Debian Etch -> Lenny).
It has some literature, most notably kernel bug #2645, but that's
closed long ago and the resulting patch
http://lkml.org/lkml/2008/1/22/370 is present in my kernel.  Still,
the test program (version 3 from the bug report) gives failures:

$ ./mmap_test junk
Modifying junk...
Flushing data using sync()...
Failure: time not changed.
Not modifying junk...
Flushing data using msync()...
Success: time not changed.
Not modifying junk...
Flushing data using fsync()...
Success: time not changed.
Modifying junk...
Flushing data using msync()...
Failure: time not changed.
Modifying junk...
Flushing data using fsync()...
Failure: time not changed.

Is this as expected?  I reckon the bug wasn't solved fully, but it
seems to be worse that that.

I don't know if it's related or not, but another anomaly appeared
after the upgrade: minutes-long remount times.  The machine always was
under a fair load (10), but mount /usr -oremount,rw never took
noticeable time.  The IO load pushes two other filesystems.  Now
strace -tt shows:

[...]
01:24:08.463813 stat64("/sbin/mount.xfs", 0xbfa40eb0) = -1 ENOENT (No such file or directory)
01:24:08.463904 mount("/dev/mapper/noc7-usr", "/usr", 0x894a2c8, MS_MGC_VAL|MS_NODEV|MS_REMOUNT, NULL) = 0
01:26:58.705387 readlink("/dev", 0xbfa3ef3b, 4096) = -1 EINVAL (Invalid argument)
[...]

After this, remount ro and rw again are quick for some time.

I can not easily test newer kernels in this setup, so thought to ask
around before delving into it further.  Is this a known problem
perhaps?  Does it ring any bells?  If already fixed, can the fix be
backported to 2.6.26 with reasonable effort?  If not, how can I best
help investigate this?
-- 
Thanks,
Feri.

             reply	other threads:[~2009-05-08  0:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-08  0:58 Ferenc Wagner [this message]
2009-05-12 12:32 ` mmap vs mtime in 2.6.26 and up Ferenc Wagner
2009-05-12 15:37   ` Ray Lee
2009-05-12 15:53     ` Christoph Hellwig
2009-05-15 16:40       ` Ferenc Wagner
2009-05-15 16:50         ` Christoph Hellwig
2009-05-18 11:43           ` Christoph Hellwig
2009-07-22 17:52             ` Ferenc Wagner
2009-09-25 12:47             ` Ferenc Wagner
2009-09-26 13:10               ` Christoph Hellwig
2009-10-15  0:08                 ` Ferenc Wagner

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=874ovws94s.fsf@tac.ki.iif.hu \
    --to=wferi@niif.hu \
    --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

all inboxes | Powered by JetHome®