Received: from eggs.gnu.org ([2001:4830:134:3::10]:42998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brymP-0003Eu-DA for qemu-devel@nongnu.org; Wed, 05 Oct 2016 22:51:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brymN-0006tO-0G for qemu-devel@nongnu.org; Wed, 05 Oct 2016 22:51:28 -0400 Date: Thu, 6 Oct 2016 10:57:43 +1100 From: David Gibson Message-ID: <20161005235743.GA18733@umbus.fritz.box> References: <1475671929-22015-1-git-send-email-thuth@redhat.com> <495de007-d402-2b46-0520-49d4a391fafc@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline In-Reply-To: <495de007-d402-2b46-0520-49d4a391fafc@redhat.com> Subject: Re: [Qemu-devel] [PATCH] tests/pxe: Use -nodefaults to speed up ppc64/ipv6 pxe test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: Thomas Huth , qemu-devel@nongnu.org, Jason Wang , Samuel Thibault , Victor Kaplansky , Michael S Tsirkin , Jan Kiszka , Alexander Graf , qemu-ppc@nongnu.org, Paolo Bonzini --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 05, 2016 at 03:10:53PM +0200, Laurent Vivier wrote: >=20 >=20 > On 05/10/2016 14:52, Thomas Huth wrote: > > SLOF is unfortunately quite slow when running with TCG, so > > the pxe test is also performing rather slow here. By using > > "-nodefaults" we can disable some devices (vscsi) that we > > are not interested in here, so that SLOF does not have to > > scan them during boot and thus starts up a little bit faster. > > The ppc64 pxe-test now only takes 27 seconds on my laptop > > instead of 33 seconds. > > The "-nodefaults" flag seems to work fine for the x86 tests, > > too, so it is added here unconditionally here (though there > > is no speed-up on x86 by using this flag). > >=20 > > Suggested-by: Paolo Bonzini > > Signed-off-by: Thomas Huth >=20 > Reviewed-by: Laurent Vivier >=20 > > --- > > Note: This patch goes on top of my ipv6/ppc64 pxe-test > > patch that is currently queued in David's ppc-for-2.8 > > branch. > >=20 > > David: Since you did not send a pull request for the patch > > that introduces the ipv6/ppc64 test yet, feel free to > > squash this patch into that original patch in your > > queue if you prefer that instead of two separate patches. >=20 > in this case you can drop my R-b. I think I'd prefer it separate. Merged to ppc-for-2.8 >=20 > Thanks, > Laurent >=20 > > tests/pxe-test.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > >=20 > > diff --git a/tests/pxe-test.c b/tests/pxe-test.c > > index 0bdb7a1..5d3ddbe 100644 > > --- a/tests/pxe-test.c > > +++ b/tests/pxe-test.c > > @@ -25,7 +25,7 @@ static void test_pxe_one(const char *params, bool ipv= 6) > > { > > char *args; > > =20 > > - args =3D g_strdup_printf("-machine accel=3Dtcg -boot order=3Dn " > > + args =3D g_strdup_printf("-machine accel=3Dtcg -nodefaults -boot o= rder=3Dn " > > "-netdev user,id=3D" NETNAME ",tftp=3D./,bo= otfile=3D%s," > > "ipv4=3D%s,ipv6=3D%s %s", disk, ipv6 ? "off= " : "on", > > ipv6 ? "on" : "off", params); > > @@ -48,7 +48,7 @@ static void test_pxe_virtio_pci(void) > > =20 > > static void test_pxe_spapr_vlan(void) > > { > > - test_pxe_one("-vga none -device spapr-vlan,netdev=3D" NETNAME, tru= e); > > + test_pxe_one("-device spapr-vlan,netdev=3D" NETNAME, true); > > } > > =20 > > int main(int argc, char *argv[]) > >=20 >=20 --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --AqsLC8rIMeq19msA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX9ZNzAAoJEGw4ysog2bOSsqwQAOZh7m3g4CLUrM+p4Wm7ymIq bOBGW7/UKRwbxcBEc9Ju18i5c8QhxrHzLsN6uTE8JvsyuRE4JWWhH0oOfxbJ0z7K y29kkgkl4A8iNOvoS594aXuIGbCrguLWwwCHqsJ/WTaswq9AR/MTae57fMWiU9n4 PXKYAlaEhi0YtwjN7FT2/WhIOAgc10q4uq+o89l7Y2X2G+6fqB1RzQasoz9fDkkG NGEvCFKm2X7JldyouhRDMJS1locAR2S5qcY0k/UVCuqJe12uCxKk2U4DqQ+g1Yhg 5J+KR3dVv8ZSGfyalmbFSFpSo1GL0R3nrlWB+h/17ePyvBJLP7VXJERqbJtn04ty +TuL39S0ZbkRzNCOapDKnIM20iteDtaMJ3zIGQs1n1ATZcbaCRP3Fs2+sgZTdtw5 9Mvt22X1dRnfu6wnd3LJdnB+CyI2G8daU0Akr0rDiNZ0mCumtksM9x2RODgT4/8b SQdDMqdU1VJVaarA4Zs+I1YmO/oZnKJUDpbINUTXDkmU0yNCsu0LZuyelQv4jTb0 8q2DG80yDjK70185JQpgvFnwd/PBMQKGsXJ/Dxshs2KRiMGgpiohXh24atmNcT03 hzqsNExh60dBf1Mqyxu7zXzCJl0LMy9jeyoKgd933dY+3XtP2tHfRGndFfnth0uP zdB+xQccHOE0Lmh6jAF4 =hAVp -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--