From: Florian Fainelli <ffainelli@freebox.fr>
To: Hugh Dickins <hughd@google.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Caching issues with tmpfs?
Date: Thu, 05 Apr 2012 17:07:41 +0200 [thread overview]
Message-ID: <4F7DB53D.9070508@freebox.fr> (raw)
Hi Hugh,
I am encountering a very weird and serious issue with tmpfs, which I
have seen both in 2.6.39 and 3.2.13. The issue is the following:
1) I read a file from a NAND device back to /tmp/bar
2) /tmp/bar is loopback mounted to /tmp/bar_mount/
3) when I list the contents of /tmp/bar_mount I see only half of my
files, and using hexdump on /tmp/bar shows that the cramfs header is
correct and contains all, which rules out the cramfs issue
4) if I move /tmp/bar to /tmp/bar.move and loopback mount /tmp/bar.move
to /tmp/bar_mount, I now see all the files present
I have compared the md5sums of the cramfs file before mounting, after
mounting, before moving, after moving, they are all the same. Also, the
loopback mount does not yiel when mounting the cramfs file, which rules
out its bad integrity.
the /tmp directory is mounted with the defaults attributes (rw,relatime).
My system is a x86 Atom-based System-on-a-Chip and should not suffer
from the CPU data cache aliasing issue mentioned here:
http://lkml.indiana.edu/hypermail/linux/kernel/1202.0/00090.html
I backported this patch however, and it does not make any difference as
expected.
This behavior has been observed on several devices.
I will try to provide you with a test case to reproduce the issue,
meanwhile any hints are appreciated :)
Thanks!
--
Florian
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2012-04-05 15:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-05 15:07 Florian Fainelli [this message]
2012-04-05 15:45 ` Florian Fainelli
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=4F7DB53D.9070508@freebox.fr \
--to=ffainelli@freebox.fr \
--cc=hughd@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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