From: John Snow <jsnow@redhat.com>
To: "Dr. David Alan Gilbert (git)" <dgilbert@redhat.com>,
qemu-devel@nongnu.org, peter.maydell@linaro.org
Subject: Re: [Qemu-devel] [PATCH] tests/ahci-test: Be mean with RAM
Date: Fri, 14 Jul 2017 11:55:00 -0400 [thread overview]
Message-ID: <713e6b4a-137d-b589-ca30-82180821f032@redhat.com> (raw)
In-Reply-To: <20170714152820.24034-1-dgilbert@redhat.com>
On 07/14/2017 11:28 AM, Dr. David Alan Gilbert (git) wrote:
> From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
>
> The migration tests used two VMs each with -m 1024 this caused
> problems when run in some small, pessimistic test VMs (netbsd).
> We can just be meaner with the amount of RAM in the test and use -m 384
>
> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> ---
> tests/ahci-test.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/tests/ahci-test.c b/tests/ahci-test.c
> index ef17629345..999121bb7c 100644
> --- a/tests/ahci-test.c
> +++ b/tests/ahci-test.c
> @@ -1132,9 +1132,9 @@ static void test_migrate_sanity(void)
> AHCIQState *src, *dst;
> char *uri = g_strdup_printf("unix:%s", mig_socket);
>
> - src = ahci_boot("-m 1024 -M q35 "
> + src = ahci_boot("-m 384 -M q35 "
> "-drive if=ide,file=%s,format=%s ", tmp_path, imgfmt);
> - dst = ahci_boot("-m 1024 -M q35 "
> + dst = ahci_boot("-m 384 -M q35 "
> "-drive if=ide,file=%s,format=%s "
> "-incoming %s", tmp_path, imgfmt, uri);
>
> @@ -1157,10 +1157,10 @@ static void ahci_migrate_simple(uint8_t cmd_read, uint8_t cmd_write)
> unsigned char *rx = g_malloc0(bufsize);
> char *uri = g_strdup_printf("unix:%s", mig_socket);
>
> - src = ahci_boot_and_enable("-m 1024 -M q35 "
> + src = ahci_boot_and_enable("-m 384 -M q35 "
> "-drive if=ide,format=%s,file=%s ",
> imgfmt, tmp_path);
> - dst = ahci_boot("-m 1024 -M q35 "
> + dst = ahci_boot("-m 384 -M q35 "
> "-drive if=ide,format=%s,file=%s "
> "-incoming %s", imgfmt, tmp_path, uri);
>
>
Totally.
Reviewed-by: John Snow <jsnow@redhat.com>
Thanks, applied to my IDE tree:
https://github.com/jnsnow/qemu/commits/ide
https://github.com/jnsnow/qemu.git
--js
prev parent reply other threads:[~2017-07-14 15:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-14 15:28 [Qemu-devel] [PATCH] tests/ahci-test: Be mean with RAM Dr. David Alan Gilbert (git)
2017-07-14 15:55 ` John Snow [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=713e6b4a-137d-b589-ca30-82180821f032@redhat.com \
--to=jsnow@redhat.com \
--cc=dgilbert@redhat.com \
--cc=peter.maydell@linaro.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).