Received: by 10.192.165.148 with SMTP id m20csp482131imm; Wed, 25 Apr 2018 02:50:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx49wf9ZTUqZsFoTfJtLELlr+SNzNPCDhMi1vfxwgIq4BD4hOfQXhWF50PbDd+s61LqiGCbgO X-Received: by 10.101.83.8 with SMTP id m8mr22933427pgq.28.1524649824489; Wed, 25 Apr 2018 02:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524649824; cv=none; d=google.com; s=arc-20160816; b=f5Nx0eh1dBh5Z0x6MPqIjc53xPN/vOdeHf81ce1oDKNeardJGnin3hnMBRndywOGM6 yjkvri1zl40mId3HiZJ3fvYP1dRlGVy9vrLlEScSDYjZOeS2QW9KQob4AjofC9jC3s6J nkIlD5h775hsktqXjFxcZ69xTuiCj/9SvZFMhXisshkjDb3njLeBKd4EOIPLyM3DWzza q15ORWkXuweSj57H6EPGhKZYZ0NCmSVTxxkw9gwBh49NC+aS6KWOLeenGMmM7wUmgETg 460N6/bQ6nOTqdHHK7wSKiChADs6xMVyS0rEEaMA08SuE83LsAcy2B1IYWQI7NO5DH8L iqYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:date:message-id :autocrypt:openpgp:subject:from:cc:to:arc-authentication-results; bh=FPifSlWZbgERpmhNvKwJO0ThnU/1GfMfgH5V+D1SlMg=; b=MmV8kFHfRPXbamAUKiKLAeofrhPz6uv62/hhuAEGI0v0DnRxP00fnTQvYBvnJcoisY 4Dt7hCAd5Mm1c7aUIMGioLGHRq0L9tcVos4d9avHDYGyu2ayoUx6kq0MH3dFyzYkw6gn 4kJEeFPTZX1TFliwD8XcI5pxzD44VgyGzEz4JPSaJa5kxWOmVlZSY+BkCD+TOV7fHgXl R0dti55NYWlnYXA4ohcVrv8CRIoxUaIqm3R37x0i5sl1OFT00TV4yjgV724MQIlKQz92 HScJcqtp7zW5ROHBzNla/95US9oxutXokXGElP7Gbxp9wdt9DxNDmYgpRyxt8jZZpXV3 Q1bQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h89-v6si16403167pld.48.2018.04.25.02.50.09; Wed, 25 Apr 2018 02:50:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751570AbeDYJtF (ORCPT + 99 others); Wed, 25 Apr 2018 05:49:05 -0400 Received: from mout.gmx.net ([212.227.15.15]:46815 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751328AbeDYJtB (ORCPT ); Wed, 25 Apr 2018 05:49:01 -0400 Received: from [0.0.0.0] ([207.148.91.157]) by mail.gmx.com (mrgmx001 [212.227.17.184]) with ESMTPSA (Nemesis) id 0Lj1jy-1eg35t36Eg-00dIxe; Wed, 25 Apr 2018 11:48:57 +0200 To: kvm@vger.kernel.org, qemu-devel@nongnu.org Cc: Linux Kernel Mailing List From: Qu Wenruo Subject: ridiculously slow VM memory performance on Ryzen CPU Openpgp: preference=signencrypt Autocrypt: addr=quwenruo.btrfs@gmx.com; prefer-encrypt=mutual; keydata= xsBNBFnVga8BCACyhFP3ExcTIuB73jDIBA/vSoYcTyysFQzPvez64TUSCv1SgXEByR7fju3o 8RfaWuHCnkkea5luuTZMqfgTXrun2dqNVYDNOV6RIVrc4YuG20yhC1epnV55fJCThqij0MRL 1NxPKXIlEdHvN0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CwHwEGAEIACYWIQQt33LlpaVbqJ2qQuHCPZHzoSX+qAUCWdWBrwIbDAUJA8JnAAAK CRDCPZHzoSX+qA3xB/4zS8zYh3Cbm3FllKz7+RKBw/ETBibFSKedQkbJzRlZhBc+XRwF61mi f0SXSdqKMbM1a98fEg8H5kV6GTo62BzvynVrf/FyT+zWbIVEuuZttMk2gWLIvbmWNyrQnzPl mnjK4AEvZGIt1pk+3+N/CMEfAZH5Aqnp0PaoytRZ/1vtMXNgMxlfNnb96giC3KMR6U0E+siA 4V7biIoyNoaN33t8m5FwEwd2FQDG9dAXWhG13zcm9gnk63BN3wyCQR+X5+jsfBaS4dvNzvQv h8Uq/YGjCoV1ofKYh3WKMY8avjq25nlrhzD/Nto9jHp8niwr21K//pXVA81R2qaXqGbql+zo Message-ID: Date: Wed, 25 Apr 2018 17:48:42 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hgvx0C9aY42QQ0JhcwaibquzkKs4AzNqq" X-Provags-ID: V03:K1:UyY6a5S9qXv8HeJ96ICEk2ZM7iaCKQNjT1U6c43uRRwwKjCesX2 RkJ2gX6uXIi01aG7ZXo6j+XMVqbRaEtIxJUV00EtcEs9kDLWtJZDfEEBs4z3ry/ihgFS5fM hsYDnc1UFfwQLyRyiG5sxDM8mGBj5K02+BP3VAuC8/Id/ZV80IU0P0cipRBZ5yM7ZpoF9h2 V/snDSKdC076q81ERBgdQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:a6WgYp3FQTA=:l3dqH47bzT5ZcrlCfK/4Lt xY0r4KJa9hx63H2x8SD/U9eqKE7L7eL2rA7k+kd5jYnBqfdddQSBHI04mDGHbl64g+wc2R5Cy RnbHr2naRnxmobBFR8GfN3Y/cNx2meFF1lkMp/fmFXlmtdOQ3WFZIwIROYhRMO0uAVTgR28+W ijS5vDC/JZv0J6XRZKOLaSkaVHrb3Iq7mZbJVz8u7RYe50QOYvNhYHfdkL22yJvcBrWCPvM6j OkvmXUD1Cqce+urL0QAzqc4qa87IYgne8jLjfMPJ/4K5PByUtHc8UaIuBmhOtolV7a6k8NTGm QjLkIZf1MjansHcLhTjnpxFiW4yJnFDSzdv9Bjhjlec1GDKJGft0kEDqLFTKEum1nnQiz63Z4 Lx7mFkTWsbaxG4l0PvYHHdbJQX8+O2SRNGXHfsUVZcmxpv8Laql6kqTRqdpUlXVK8l1TpweH8 RLfjFCfdinUcMzI/r7QF6RsQj/BtGy6oNHGzbqm83FhChViNjv/XZMBDDEm6v0CbdhCA4Y1pm UtLFnkyuHOE7nOxJPMho1d3FcZBofwfSsOZU1AM3wJe0qoIph4Fui3X9gcQWpFHd9uoKIaKBC gO59f6GTIei1kZpkxsexPRoaYvvRmUJ7B425Ahh6QN9KDgjXe3GVinjcqGYeNuuwQWproFkeY IqTTD/Xfpo184NN3eyky4AZYzX3nh5g4kNdmN5Pu0IG5ElA1BGi/sdNgylXMmKRA26rjt54QK z0265hxAS11vN1apf6VswIyU1ar4Nn5Stp+xuNXQ+EPQy3gym6ViYzZE6nq21bbxf1X7SFNQf WiaRCUMXe+SflT1Ii3iONfgd/0MgA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --hgvx0C9aY42QQ0JhcwaibquzkKs4AzNqq Content-Type: multipart/mixed; boundary="ewIvWyEpQ5cyPhrj7WR4uKUJBwPZMfZG0"; protected-headers="v1" From: Qu Wenruo To: kvm@vger.kernel.org, qemu-devel@nongnu.org Cc: Linux Kernel Mailing List Message-ID: Subject: ridiculously slow VM memory performance on Ryzen CPU --ewIvWyEpQ5cyPhrj7WR4uKUJBwPZMfZG0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi, When testing IO heavy work on my VM backed by Ryzen 1700 CPU, I turned to brd modules, but surprisingly, the speed is even slower than some HDD:= --- $ sudo modprobe brd rd_nr=3D1 rd_size=3D1048576 $ dd if=3D/dev/zero of=3D/dev/ram0 bs=3D1M count=3D1024 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 9.9928 s, 107 MB/s --- 107MB is pretty lame... Even some HDD could be faster than this. On host, it's much better: --- $ if=3D/dev/zero of=3D/dev/ram0 bs=3D1M count=3D1024 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 0.754641 s, 1.4 GB/s --- For host hardware: CPU: Ryzen 1700 All cores @ 3.8G Mem: DDR4 2400 dual channel (8G x 2) For host software: Kernel: 4.16.3-1-ARCH Qemu: 2.11.1-2 Distribution: Archlinux VM setup is mostly default setup done by libvirt. I'm not sure if this is related to this bug: https://www.redhat.com/archives/vfio-users/2017-April/msg00019.html Thanks, Qu --ewIvWyEpQ5cyPhrj7WR4uKUJBwPZMfZG0-- --hgvx0C9aY42QQ0JhcwaibquzkKs4AzNqq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEELd9y5aWlW6idqkLhwj2R86El/qgFAlrgTvoACgkQwj2R86El /qhsqQgAlHEgMh4WOzZhYL464zlCGeiEJxoulYvJCPQ0MyVHcUQUXizevvAJUE95 62+mmJTHzGS6Leeh/alfDbrES8aevE3R0ewNrFGxcPBNwgjbVZoAaA5hRfAW+fsb HzcjUmiS4dheLjk3LppCWcb7VQehY0L8lxZ93BwzCC9mXztEUnLhnG0p+hJ5dZX/ /000A22OvOcv04BRnjRo+OVjXTJrDY+5192Psd1u1ZEBQEG/tNPAJg4TG+CY9FIz W5B3JD8h2UCS0GOnvA+z2yyIL+5cR06dGOhfaxc31WmSYmsASDNEqfnmjsvic1KO dzRWBHFwHQmsKC8nR8ukzVlnawmSUQ== =Osjm -----END PGP SIGNATURE----- --hgvx0C9aY42QQ0JhcwaibquzkKs4AzNqq--