qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Default cache mode
@ 2011-06-29 11:59 Kevin Wolf
  2011-06-29 12:06 ` Anthony Liguori
                   ` (4 more replies)
  0 siblings, 5 replies; 32+ messages in thread
From: Kevin Wolf @ 2011-06-29 11:59 UTC (permalink / raw)
  To: Qemu-devel, Stefan Hajnoczi, Christoph Hellwig, Anthony Liguori,
	Avi Kivity

Hi,

I think we have touched this topic before during some IRC discussions or
somewhere deep in a mailing list thread, but I think it hasn't been
discussed on the list.

Our default cache mode of cache=writethrough is extremely conservative
and provides absolute safety at the cost of performance, and most people
don't use it if they know that it can be changed because it just
performs too bad. There are use cases where you need it (broken guest
OS), but none and writeback are just as correct with respect to the
specs and they are safe to use with current OSes. And even with broken
OSes, in many use cases it doesn't really matter if you lose a VM  and
have to reinstall it (which is probably true even more for users
invoking qemu directly instead of using libvirt).

I think the motivation to switch from writeback to writethrough as
default was that writeback was entirely unsafe back then. This isn't
true any more, so is there still enough reason to have the slow
writethrough mode as default?

I'm not entirely sure if I should suggest writeback or none as the new
default, but I think it could make sense to change it.

Kevin

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2011-06-29 16:04 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-29 11:59 [Qemu-devel] Default cache mode Kevin Wolf
2011-06-29 12:06 ` Anthony Liguori
2011-06-29 12:16   ` Kevin Wolf
2011-06-29 12:23     ` Anthony Liguori
2011-06-29 12:32       ` Kevin Wolf
2011-06-29 13:51         ` Christoph Hellwig
2011-06-29 14:17         ` Michael Tokarev
2011-06-29 14:50           ` Christoph Hellwig
2011-06-29 15:07             ` Michael Tokarev
2011-06-29 13:50       ` Christoph Hellwig
2011-06-29 14:13         ` Anthony Liguori
2011-06-29 14:47           ` Christoph Hellwig
2011-06-29 16:03           ` Stefan Hajnoczi
2011-06-29 13:53       ` Frediano Ziglio
2011-06-29 14:11         ` Kevin Wolf
2011-06-29 14:12           ` Christoph Hellwig
2011-06-29 14:21             ` Kevin Wolf
2011-06-29 13:49   ` Christoph Hellwig
2011-06-29 12:08 ` Anthony Liguori
2011-06-29 13:55   ` Christoph Hellwig
2011-06-29 14:20     ` Anthony Liguori
2011-06-29 14:52       ` Christoph Hellwig
2011-06-29 15:26         ` Anthony Liguori
2011-06-29 12:21 ` Alexander Graf
2011-06-29 13:57   ` Stefan Hajnoczi
2011-06-29 14:05     ` Alexander Graf
2011-06-29 12:52 ` Stefan Hajnoczi
2011-06-29 13:56   ` Christoph Hellwig
2011-06-29 13:00 ` Avi Kivity
2011-06-29 13:05   ` Anthony Liguori
2011-06-29 13:30     ` Avi Kivity
2011-06-29 13:11   ` Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).