From: "Artem S. Tashkinov" <t.artem@lycos.com>
To: linux-kernel@vger.kernel.org
Subject: Disabling in-memory write cache for x86-64 in Linux 3.11
Date: Wed, 23 Oct 2013 06:03:21 +0000 (UTC) [thread overview]
Message-ID: <707282746.213759.1382508201161.JavaMail.mail@webmail01> (raw)
Hello,
On my x86-64 PC (Intel Core i5 2500, 16GB RAM), I have the same 3.11 kernel
built for the i686 (with PAE) and x86-64 architectures. What's really troubling me
is that the x86-64 kernel has the following problem:
When I copy large files to any storage device, be it my HDD with ext4 partitions
or flash drive with FAT32 partitions, the kernel first caches them in memory entirely
then flushes them some time later (quite unpredictably though) or immediately upon
running "sync".
How can I disable this memory cache altogether? When running the i686 kernel with
the same configuration I don't observe this effect - files get written out almost immediately
(for instance "sync" takes less than a second, whereas on x86-64 it can take a dozen of
_minutes_ depending on a file size and storage performance).
I'm _not_ talking about disabling write cache on my storage itself (hdparm -W 0 /dev/XXX)
- firstly this command is detrimental to the performance of my PC, secondly, it won't help
in this instance.
Swap is totally disabled, usually my memory is entirely free.
My kernel configuration can be fetched here: https://bugzilla.kernel.org/show_bug.cgi?id=63531
Please, advise.
Best regards,
Artem
reply other threads:[~2013-10-23 6:12 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=707282746.213759.1382508201161.JavaMail.mail@webmail01 \
--to=t.artem@lycos.com \
--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