From: Eric Blake <eblake@redhat.com>
To: Leonid Bloch <lbloch@janustech.com>, qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
qemu-block@nongnu.org, Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 3/4] docs: Document the l2-cache-full option
Date: Tue, 24 Jul 2018 10:21:50 -0500 [thread overview]
Message-ID: <8b2636b3-6871-c68a-f103-0f2f150d3e7e@redhat.com> (raw)
In-Reply-To: <20180724121753.5753-4-lbloch@janustech.com>
On 07/24/2018 07:17 AM, Leonid Bloch wrote:
> Signed-off-by: Leonid Bloch <lbloch@janustech.com>
> ---
> docs/qcow2-cache.txt | 12 ++++++++----
> 1 file changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/docs/qcow2-cache.txt b/docs/qcow2-cache.txt
> index a0a1267482..43c0faaddb 100644
> --- a/docs/qcow2-cache.txt
> +++ b/docs/qcow2-cache.txt
> @@ -110,11 +110,12 @@ How to configure the cache sizes
> Cache sizes can be configured using the -drive option in the
> command-line, or the 'blockdev-add' QMP command.
>
> -There are three options available, and all of them take bytes:
> +There are four options available:
>
> -"l2-cache-size": maximum size of the L2 table cache
> -"refcount-cache-size": maximum size of the refcount block cache
> -"cache-size": maximum size of both caches combined
> +"l2-cache-size": maximum size of the L2 table cache (bytes, K, M)
> +"refcount-cache-size": maximum size of the refcount block cache (bytes, K, M)
> +"cache-size": maximum size of both caches combined (bytes, K, M)
> +"l2-cache-full": make the L2 cache cover the full image (boolean)
>
> There are a few things that need to be taken into account:
>
Worth mentioning that the first three can be combined (although usually
you'll never specify more than 2; as specifying all 3 requires that you
perform the correct addition), but that the third is mutually exclusive?
> @@ -130,6 +131,9 @@ There are a few things that need to be taken into account:
> memory as possible to the L2 cache before increasing the refcount
> cache size.
>
> +- If "l2-cache-full" is specified, QEMU will assign enough memory
> + to the L2 cache to cover the entire size of the image.
> +
> Unlike L2 tables, refcount blocks are not used during normal I/O but
> only during allocations and internal snapshots. In most cases they are
> accessed sequentially (even during random guest I/O) so increasing the
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
next prev parent reply other threads:[~2018-07-24 15:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-24 12:17 [Qemu-devel] [PATCH 0/4] Introduction of l2-cache-full option for qcow2 images Leonid Bloch
2018-07-24 12:17 ` [Qemu-devel] [PATCH 1/4] qcow2: Introduce an option for sufficient L2 cache for the entire image Leonid Bloch
2018-07-24 14:52 ` Eric Blake
2018-08-03 9:27 ` Alberto Garcia
2018-07-24 12:17 ` [Qemu-devel] [PATCH 2/4] docs: Fix an inaccuracy due to recent changes Leonid Bloch
2018-07-24 15:20 ` Eric Blake
2018-07-24 16:25 ` Leonid Bloch
2018-07-24 15:22 ` [Qemu-devel] [PATCH 2/4 for-3.0] " Eric Blake
2018-07-24 12:17 ` [Qemu-devel] [PATCH 3/4] docs: Document the l2-cache-full option Leonid Bloch
2018-07-24 15:21 ` Eric Blake [this message]
2018-07-24 16:28 ` Leonid Bloch
2018-07-24 12:17 ` [Qemu-devel] [PATCH 4/4] iotests: Add tests for the new " Leonid Bloch
2018-07-24 15:24 ` Eric Blake
2018-07-24 14:49 ` [Qemu-devel] [PATCH 0/4] Introduction of l2-cache-full option for qcow2 images Eric Blake
2018-07-24 15:19 ` Leonid Bloch
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=8b2636b3-6871-c68a-f103-0f2f150d3e7e@redhat.com \
--to=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=lbloch@janustech.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).