public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Federico Simoncelli <fsimonce@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] qemu-img: Add nocache command line option
Date: Tue, 14 Jun 2011 16:13:05 +0300	[thread overview]
Message-ID: <4DF75E61.2010500@redhat.com> (raw)
In-Reply-To: <1308053382-9771-1-git-send-email-fsimonce@redhat.com>

On 06/14/2011 03:09 PM, Federico Simoncelli wrote:
> qemu-img currently writes images using writeback and filling up
> the cache buffers which are then flushed by the kernel preventing
> other processes from accessing the storage.
> This is particularly bad in cluster environments where time-based
> algorithms might be in place and accessing the storage within
> certain timeouts is critical.
> This patch adds the option to use nocache when other solutions
> (eg: cgroups) are not available.
>

Please copy qemu-devel@nongnu.org as this is not a kvm-specific patch.

> diff --git a/qemu-img.c b/qemu-img.c
> index 4f162d1..c10e4a6 100644
> --- a/qemu-img.c
> +++ b/qemu-img.c
> @@ -78,6 +78,7 @@ static void help(void)
>              "       rebasing in this case (useful for renaming the backing file)\n"
>              "  '-h' with or without a command shows this help and lists the supported formats\n"
>              "  '-p' show progress of command (only certain commands)\n"
> +           "  '-t' use write-through (no cache), valid with: convert, commit and rebase\n"
>              "\n"
>              "Parameters to snapshot subcommand:\n"
>              "  'snapshot' is the name of the snapshot to create, apply or delete\n"

IMO better to use the existing qemu option format, say -o 
cache=writeback|writethrough|none|volatile.

-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2011-06-14 13:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-14 12:09 [PATCH] qemu-img: Add nocache command line option Federico Simoncelli
2011-06-14 13:13 ` Avi Kivity [this message]
2011-06-15 10:50   ` Kevin Wolf
2011-06-15 11:17     ` Federico Simoncelli
2011-06-15 11:45       ` Kevin Wolf
2011-06-15 12:15         ` Federico Simoncelli
2011-06-15 12:26           ` Kevin Wolf
2011-06-15 13:46             ` [PATCH] qemu-img: Add cache " Federico Simoncelli
2011-06-15 13:51               ` [PATCHv2] " Federico Simoncelli
2011-06-16 11:58                 ` [PATCHv3] " Federico Simoncelli
2011-06-16 14:28               ` [Qemu-devel] [PATCH] " Christoph Hellwig
2011-06-16 14:43                 ` Kevin Wolf
2011-06-20 14:47                   ` Kevin Wolf
2011-06-20 16:48                     ` [PATCHv4] " Federico Simoncelli
2011-06-29  9:48                       ` Kevin Wolf
2011-06-16 14:44                 ` [Qemu-devel] [PATCH] " Federico Simoncelli

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=4DF75E61.2010500@redhat.com \
    --to=avi@redhat.com \
    --cc=fsimonce@redhat.com \
    --cc=kvm@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