From: Frank van Maarseveen <fvm@altium.nl>
To: linux-kernel@vger.kernel.org
Subject: 2.4.18: writeback of shared mmap'ed files broken?
Date: Mon, 22 Apr 2002 17:46:23 +0200 [thread overview]
Message-ID: <20020422174623.A25397@espoo.tasking.nl> (raw)
A news server has two processes both accessing an "active" file.
This file is constantly being updated:
cp /loc/news/lib/active /tmp/active
sleep 1
diff /loc/news/lib/active /tmp/active
(differences)
However, its mtime does not change: it is days too old. Also, after
an unclean shutdown and reboot due to a power failure innd seemed to
operate on a very old version of the active file.
I don't think innd is calling msync() but IMHO that should not prohibit
the kernel from flushing out dirty pages at regular interval.
AFAIK there was a bug in the past with shared mmap'ed files but I thought
it was fixed a long time ago.
# lsof|grep lib/active
actived 30695 news mem REG 3,4 70078 209527 /loc/news/lib/active
innd 30696 news mem REG 3,4 70078 209527 /loc/news/lib/active
innd 30696 news 16u REG 3,4 70078 209527 /loc/news/lib/active
# grep lib/active /proc/3069[56]/maps
4018b000-4019d000 r--s 00000000 03:04 209527 /loc/news/lib/active
40425000-40437000 rw-s 00000000 03:04 209527 /loc/news/lib/active
--
Frank
reply other threads:[~2002-04-22 15:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20020422174623.A25397@espoo.tasking.nl \
--to=fvm@altium.nl \
--cc=frank.van.maarseveen@altium.nl \
--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®