From: Jacob Gorm Hansen <jacobg@diku.dk>
To: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: Invalidating buffer cache in dom0
Date: Sun, 29 May 2005 02:04:09 -0700 [thread overview]
Message-ID: <42998589.3030501@diku.dk> (raw)
In-Reply-To: <A95E2296287EAD4EB592B5DEEFCE0E9D281F4C@liverpoolst.ad.cl.cam.ac.uk>
Ian Pratt wrote:
> Have you tried using raw devices? See "man raw". I've never used them,
> but I'd be interested to know whether this works. There's an argument
> that we should be using them by default, particularly for people using
> using cluster filesystems -- caching stuff in dom0 could be very bad.
It is my impression that in recent 2.6 kernels raw devices and O_DIRECT
are the same thing. Actually, I was forced to use O_DIRECT inside my
domU for the self-checkpointing, as otherwise the buffer cache would
inflate the working set and create additional downtime. O_DIRECT works
really well, and minus a ton of bugs I can now self-checkpoint to disk
as well as self-migrate via the network.
O_DIRECT works for writes. However, it seems it still tries to be a
little too clever when reading from a blockdev.
This is not a huge prob for me, just an annoyance that I have to reboot
all the time to flush the cache, but I guess that for a Xen system in
general it would be nice to have consistency of block device contents
between domUs and dom0.
thanks,
Jacob
next prev parent reply other threads:[~2005-05-29 9:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-28 18:49 Invalidating buffer cache in dom0 Ian Pratt
2005-05-28 20:07 ` Keir Fraser
2005-05-29 9:04 ` Jacob Gorm Hansen [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-05-27 6:35 Jacob Gorm Hansen
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=42998589.3030501@diku.dk \
--to=jacobg@diku.dk \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--cc=xen-devel@lists.xensource.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.