All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jacob Gorm Hansen <jacobg@diku.dk>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: Invalidating buffer cache in dom0
Date: Thu, 26 May 2005 23:35:01 -0700	[thread overview]
Message-ID: <4296BF95.5090806@diku.dk> (raw)

hi,

I have a domU that dumps some data (a checkpoint) to a virtual device. 
Afterwards, I want to create a new domU based on that data, but because 
right now my domain bootstrapper does not have a disk driver, I first 
build a ramdisk which I give as an argument to my bootstrapper.

This all works fine, but I have the problem that I have to reboot dom0 
between each run, because apparently dom0 Linux does not notice that the 
contents on disk have changed, and keep giving me stale data from its 
buffer cache when I create the ramdisk. I have tested that this is 
actually what happens by grepping for a string in the block device 
(/dev/hda5), and the value of the string changes between reboots.

Does anyone know of an ioctl or similar that I could use to make Linux 
forget about (not flush) buffer cache contents, or how to disable it?

I have tried reading from the block dev with O_DIRECT but that does not 
help.

Thanks,
Jacob

             reply	other threads:[~2005-05-27  6:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-27  6:35 Jacob Gorm Hansen [this message]
  -- strict thread matches above, loose matches on Subject: below --
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

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=4296BF95.5090806@diku.dk \
    --to=jacobg@diku.dk \
    --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.