From: Kevin Wolf <kwolf@redhat.com>
To: Max Reitz <mreitz@redhat.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v2 13/13] qemu-iotests: More qcow2 reopen tests
Date: Mon, 7 Sep 2015 14:23:02 +0200 [thread overview]
Message-ID: <20150907122302.GC5529@noname.redhat.com> (raw)
In-Reply-To: <20150907120839.GB5529@noname.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 2116 bytes --]
Am 07.09.2015 um 14:08 hat Kevin Wolf geschrieben:
> Am 04.09.2015 um 21:52 hat Max Reitz geschrieben:
> > On 04.09.2015 19:18, Kevin Wolf wrote:
> > > Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> > > ---
> > > tests/qemu-iotests/137 | 143 +++++++++++++++++++++++++++++++++++++++++++++
> > > tests/qemu-iotests/137.out | 43 ++++++++++++++
> > > tests/qemu-iotests/group | 1 +
> > > 3 files changed, 187 insertions(+)
> > > create mode 100755 tests/qemu-iotests/137
> > > create mode 100644 tests/qemu-iotests/137.out
> > >
> > > diff --git a/tests/qemu-iotests/137 b/tests/qemu-iotests/137
> > > new file mode 100755
> > > index 0000000..ad52f71
> > > --- /dev/null
> > > +++ b/tests/qemu-iotests/137
> >
> >
> > [snip]
> >
> > > +echo
> > > +echo === Try setting some invalid values ===
> > > +echo
> > > +
> > > +$QEMU_IO \
> > > + -c "reopen -o lazy-refcounts=42" \
> > > + -c "reopen -o cache-size=1M,l2-cache-size=64k,refcount-cache-size=64k" \
> > > + -c "reopen -o cache-size=1M,l2-cache-size=2M" \
> > > + -c "reopen -o cache-size=1M,refcount-cache-size=2M" \
> > > + -c "reopen -o l2-cache-size=256T" \
> > > + -c "reopen -o l2-cache-size=64G" \
> >
> > Testing this seems risky. The rest looks fine, but I'm not sure whether
> > this is really needed so much that we should risk the test failing on
> > some machines, especially in the future.
>
> I think we should be testing the "too large, but not much too large"
> case. A risk of false positives is better than a risk to break things
> without noticing. I could make it something like 64T, though, that
> should last a bit longer. The "much too large" case starts at 128T
> (INT_MAX * s->cluster_size == 2G * 64k).
...except that qcow2_cache_create() also allocates a Qcow2CachedTable
array and that one is small enough in comparison that we'd end up again
in the same range as before, where allocations might not fail right
away, but fill up the swap.
Fair enough, I'll remove the lines. Do you want a v3 on the list or can
I fix it while merging?
Kevin
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2015-09-07 12:23 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-04 17:18 [Qemu-devel] [PATCH v2 00/13] qcow2: reopen: Change driver-specific runtime options Kevin Wolf
2015-09-04 17:18 ` [Qemu-devel] [PATCH v2 01/13] block: Allow specifying driver-specific options to reopen Kevin Wolf
2015-09-04 17:18 ` [Qemu-devel] [PATCH v2 02/13] qemu-io: Remove duplicate 'open' error message Kevin Wolf
2015-09-04 18:10 ` Max Reitz
2015-09-04 17:18 ` [Qemu-devel] [PATCH v2 03/13] qemu-io: Add command 'reopen' Kevin Wolf
2015-09-04 18:33 ` Max Reitz
2015-09-04 17:18 ` [Qemu-devel] [PATCH v2 04/13] qcow2: Improve error message Kevin Wolf
2015-09-04 18:34 ` Max Reitz
2015-09-04 17:18 ` [Qemu-devel] [PATCH v2 05/13] qcow2: Factor out qcow2_update_options() Kevin Wolf
2015-09-04 17:18 ` [Qemu-devel] [PATCH v2 06/13] qcow2: Move qcow2_update_options() call up Kevin Wolf
2015-09-04 17:18 ` [Qemu-devel] [PATCH v2 07/13] qcow2: Move rest of option handling to qcow2_update_options() Kevin Wolf
2015-09-04 17:18 ` [Qemu-devel] [PATCH v2 08/13] qcow2: Leave s unchanged on qcow2_update_options() failure Kevin Wolf
2015-09-04 17:18 ` [Qemu-devel] [PATCH v2 09/13] qcow2: Fix memory leak in qcow2_update_options() error path Kevin Wolf
2015-09-04 17:18 ` [Qemu-devel] [PATCH v2 10/13] qcow2: Make qcow2_update_options() suitable for transactions Kevin Wolf
2015-09-04 17:18 ` [Qemu-devel] [PATCH v2 11/13] qcow2: Support updating driver-specific options in reopen Kevin Wolf
2015-09-04 19:16 ` Max Reitz
2015-09-04 17:18 ` [Qemu-devel] [PATCH v2 12/13] qemu-iotests: Reopen qcow2 with lazy-refcounts change Kevin Wolf
2015-09-04 19:22 ` Max Reitz
2015-09-04 17:18 ` [Qemu-devel] [PATCH v2 13/13] qemu-iotests: More qcow2 reopen tests Kevin Wolf
2015-09-04 19:52 ` Max Reitz
2015-09-07 12:08 ` Kevin Wolf
2015-09-07 12:23 ` Kevin Wolf [this message]
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=20150907122302.GC5529@noname.redhat.com \
--to=kwolf@redhat.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).