Displaying 3 results from an estimated 3 matches for "714357fbb".
2018 May 16
3
[PATCH] tests: Increase appliance memory when testing 256+ disks.
Currently the tests fail on x86 with recent kernels:
FAIL: test-255-disks.sh
This confused me for a while because our other test program
(utils/max-disks/max-disks.pl) reports that it should be possible to
add 255 disks.
Well it turns out that the default amount of appliance memory is
sufficient if you're just adding disks, but if you try to add _and_
partition those disks there's
2018 May 16
0
[PATCH] tests: Increase appliance memory when testing 256+ disks.
...|
+ guestfs_set_memsize (g, m * 20 / 5) == -1)
+ error (EXIT_FAILURE, 0, "get or set memsize failed");
+
tmpdir = guestfs_get_cachedir (g);
if (tmpdir == NULL)
exit (EXIT_FAILURE);
diff --git a/utils/max-disks/max-disks.pl b/utils/max-disks/max-disks.pl
index f7fe5bca2..714357fbb 100755
--- a/utils/max-disks/max-disks.pl
+++ b/utils/max-disks/max-disks.pl
@@ -41,6 +41,7 @@ my $mid = 1024;
# Get the kernel under test.
my $g = Sys::Guestfs->new ();
+$g->set_memsize ($g->get_memsize () * 20 / 5);
$g->launch ();
my %kernel = $g->utsname;
$g->close ();
-...
2018 May 16
1
Re: [PATCH] tests: Increase appliance memory when testing 256+ disks.
...1)
> + error (EXIT_FAILURE, 0, "get or set memsize failed");
> +
> tmpdir = guestfs_get_cachedir (g);
> if (tmpdir == NULL)
> exit (EXIT_FAILURE);
This is OK.
> diff --git a/utils/max-disks/max-disks.pl b/utils/max-disks/max-disks.pl
> index f7fe5bca2..714357fbb 100755
> --- a/utils/max-disks/max-disks.pl
> +++ b/utils/max-disks/max-disks.pl
> @@ -41,6 +41,7 @@ my $mid = 1024;
>
> # Get the kernel under test.
> my $g = Sys::Guestfs->new ();
> +$g->set_memsize ($g->get_memsize () * 20 / 5);
> $g->launch ();
> my...