From: Max Reitz <mreitz@redhat.com>
To: Alberto Garcia <berto@igalia.com>, qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
qemu-block@nongnu.org, Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 3/4] docs: document how to configure the qcow2 L2/refcount caches
Date: Fri, 05 Jun 2015 17:52:29 +0200 [thread overview]
Message-ID: <5571C5BD.2080804@redhat.com> (raw)
In-Reply-To: <becc5245bb688073ecbba27ec642e299cc97020b.1433247225.git.berto@igalia.com>
On 02.06.2015 14:22, Alberto Garcia wrote:
> QEMU has options to configure the size of the L2 and refcount
> caches for the qcow2 format. However, choosing the right sizes for
> a particular disk image is not a straightforward operation since
> the ratio between the cache size and the allocated disk space is
> not obvious and depends on the size of the cluster and the refcount
> entries.
>
> This document attempts to give an overview of both caches and how to
> configure their sizes.
>
> Signed-off-by: Alberto Garcia <berto@igalia.com>
> Cc: Max Reitz <mreitz@redhat.com>
> ---
> docs/qcow2-cache.txt | 163 +++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 163 insertions(+)
> create mode 100644 docs/qcow2-cache.txt
>
> diff --git a/docs/qcow2-cache.txt b/docs/qcow2-cache.txt
> new file mode 100644
> index 0000000..7476f73
> --- /dev/null
> +++ b/docs/qcow2-cache.txt
> @@ -0,0 +1,163 @@
[snip]
> +Reducing the memory usage
> +-------------------------
> +It is possible to clean unused cache entries in order to reduce the
> +memory usage during periods of low I/O activity.
> +
> +The parameter "cache-clean-interval" defines an interval (in seconds)
> +after which all unused cache entries are removed from memory.
> +
> +This example removes all unused cache entries every 15 minutes:
> +
> + -drive file=hd.qcow2,cache-clean-interval=900
> +
> +If unset, the default value for this parameter is 0 and it disables
> +this feature.
> +
> +Note that this functionality currently relies on the MADV_DONTNEED
> +argument for madvise() to actually free the memory, so it is not
> +useful in systems that don't follow that behavior.
I'd like a definition of what "unused" means (I know because of this
series, but I wouldn't know just from this document).
Max
next prev parent reply other threads:[~2015-06-05 15:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-02 12:22 [Qemu-devel] [PATCH v5 0/4] Clean unused entries in the qcow2 L2/refcount cache Alberto Garcia
2015-06-02 12:22 ` [Qemu-devel] [PATCH 1/4] qcow2: mark the memory as no longer needed after qcow2_cache_empty() Alberto Garcia
2015-06-05 15:47 ` Max Reitz
2015-06-02 12:22 ` [Qemu-devel] [PATCH 2/4] qcow2: add option to clean unused cache entries after some time Alberto Garcia
2015-06-05 15:48 ` Max Reitz
2015-06-02 12:22 ` [Qemu-devel] [PATCH 3/4] docs: document how to configure the qcow2 L2/refcount caches Alberto Garcia
2015-06-05 15:52 ` Max Reitz [this message]
2015-06-05 15:56 ` Alberto Garcia
2015-06-05 16:00 ` Max Reitz
2015-06-05 16:05 ` Alberto Garcia
2015-06-05 16:13 ` Max Reitz
2015-06-02 12:22 ` [Qemu-devel] [PATCH 4/4] qcow2: reorder fields in Qcow2CachedTable to reduce padding Alberto Garcia
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=5571C5BD.2080804@redhat.com \
--to=mreitz@redhat.com \
--cc=berto@igalia.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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.