From owner-freebsd-virtualization@freebsd.org Wed Aug 22 09:38:12 2018 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A31210834FF for ; Wed, 22 Aug 2018 09:38:12 +0000 (UTC) (envelope-from weh@microsoft.com) Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sg2apc01on0115.outbound.protection.outlook.com [104.47.125.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT TLS CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 912658C3C2 for ; Wed, 22 Aug 2018 09:38:11 +0000 (UTC) (envelope-from weh@microsoft.com) Received: from PU1P153MB0153.APCP153.PROD.OUTLOOK.COM (10.170.188.143) by PU1P153MB0185.APCP153.PROD.OUTLOOK.COM (10.170.187.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.3; Wed, 22 Aug 2018 09:38:05 +0000 Received: from PU1P153MB0153.APCP153.PROD.OUTLOOK.COM ([fe80::38ea:9c9a:850b:3142]) by PU1P153MB0153.APCP153.PROD.OUTLOOK.COM ([fe80::38ea:9c9a:850b:3142%4]) with mapi id 15.20.1101.005; Wed, 22 Aug 2018 09:38:05 +0000 From: Wei Hu To: Support SimpleRezo CC: "freebsd-virtualization@freebsd.org" Subject: RE: [HyperV-2016] urandom performance issue... Thread-Topic: [HyperV-2016] urandom performance issue... Thread-Index: AQHUOXFyZXWVzRFU7EyHiPddTqf9GqTK7RYAgACWNhA= Date: Wed, 22 Aug 2018 09:38:05 +0000 Message-ID: References: <20180822003512.GI97145@funkthat.com> In-Reply-To: <20180822003512.GI97145@funkthat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=weh@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2018-08-22T09:38:03.1408784Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General x-originating-ip: [2404:f801:9000:18:e84f:2f9e:1c0c:b7d6] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; PU1P153MB0185; 6:Qn31Zqy2LceISeO1c637qWRqG4pRT4IxXubd7BS8XnvZCGCjpEpiIxQazcOVs5QXlCwVx1IuZS4SnNBIIGUz1eLyjWLIe0TrQb4zhNve5ZQaUPtDkzr7z/XJEldLKmDu8C8G/xOL2h2ovNifOUJ5isUT4JcLmf0leEQgifiZqrR3bwQEQjpTHJwi+0TMjXGs8Ul5dOocBklxhRaH+V2csqaAq213Vb746rqJVt0fLiGr15WrDIwABEMqbB5q8zG8k7hPjrJ+uKY3nH5mLnA+43/Ua0JrC0xM0cmaBl6w6Aa26mWHXHAuBEO+/Pl33Y0Kuq2jXhaZnky3qU9+P72qDy3NAFGvfi1qu/O+E7J64tAMGqCjDNCeRtO4VJ9zSvMcSLYwCJyS2WwVfI6RHieBJfsA29JPNZ4BaoAN2R89pR2IVtkIv3G//JaWs00+FTxucY8j1WvyY7SbiKynB7XzeA==; 5:NLrW8xfOHbNAU+uq5AflfzYSIcl5kYsYCXc6xKCPykhSBhc1PMMrca+Gk5JobysLp+vNxvXrqGfMu2ckQyMBG7TGh64VKxiRkJz0wMoiGN6ltJG5rkG7LpSS0prC273MUwEOIHskNXAsIq+ui7k3m9eWotbup3qvcZ025HrfImI=; 7:f9lklulnp0etqHZO9vxsLjLt0Y8e1VdmgPmhAbnEhHo6mXHkpDIHNa/G9Nvz64OARhaEeHrslmt1X5OL4M7l4zr31dsZA3NS308udODmh6Rj617HbDtPJqgHXsItyQf/EhCRF/VOV2K9wXzn1uJq9fA6ZvfPtNnG0o7bI49IsxgnAuN1j7DQOqw0iSlcMbT1JftXyvnKhHptvtql4W/bGvIfdD3UC4mFx3MZ3+ydxgR2w6QWdCZrBTcLEKdlF3BB x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 1eb01325-ffb9-49f0-4634-08d60812f68f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7193020); SRVR:PU1P153MB0185; x-ms-traffictypediagnostic: PU1P153MB0185: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(189930954265078)(85827821059158)(219752817060721); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231311)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016); SRVR:PU1P153MB0185; BCL:0; PCL:0; RULEID:; SRVR:PU1P153MB0185; x-forefront-prvs: 0772E5DAD5 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(366004)(396003)(136003)(346002)(39860400002)(199004)(189003)(13464003)(476003)(446003)(1411001)(81156014)(81166006)(575784001)(186003)(86362001)(86612001)(25786009)(2900100001)(6506007)(6436002)(53546011)(11346002)(256004)(102836004)(229853002)(99286004)(22452003)(46003)(486006)(316002)(4326008)(5250100002)(39060400002)(5660300001)(8676002)(6116002)(97736004)(10290500003)(9686003)(478600001)(966005)(14454004)(55016002)(10090500001)(6246003)(8990500004)(6306002)(6916009)(33656002)(8936002)(106356001)(68736007)(2906002)(74316002)(76176011)(305945005)(7696005)(53936002)(105586002)(7736002); DIR:OUT; SFP:1102; SCL:1; SRVR:PU1P153MB0185; H:PU1P153MB0153.APCP153.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: gT+NkERK0m720ZdENU6zovfFlt08SDrHNVysTxS63+ayDYi4eAV35/56bF5CVru7+rM10vOFZ9r01+PfWCJfyXCnu3koVdlmun81SJ/agBtyGcpY33s7i10x3skXJ+stpOQpfBnX2+jsjyedjhd8hu9utac3SKmAFw/lKxl5lhdZXVV0ApTIB3vApE54TO0CerbAXEU8QNgkzDKVzDv+62RR6HGr2FjphIqzViwv0zb6nKOV1/mxJ316L1KLFmkmwpUT+YO/RJb+/UREZnI5FnIunKdGZHTi6z3iB8Q9VfV6j3f+LmIBbV0zetmMrb4bSDuwJyZHXBGnfRx6ehv7J8d3Ql43nHIb8+gAgAmO2RY= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1eb01325-ffb9-49f0-4634-08d60812f68f X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Aug 2018 09:38:05.4459 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1P153MB0185 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2018 09:38:12 -0000 Have you ever seen the same issue on Hyper-V 2012? What is the Windows vers= ion what you are running into the issue? Thanks, Wei -----Original Message----- From: owner-freebsd-virtualization@freebsd.org On Behalf Of John-Mark Gurney Sent: Wednesday, August 22, 2018 8:35 AM To: Support SimpleRezo Cc: freebsd-virtualization@freebsd.org Subject: Re: [HyperV-2016] urandom performance issue... Support SimpleRezo wrote this message on Tue, Aug 21, 2018 at 19:06 +0200: > I was figuring a performance issue of a FreeBSD on HyperV, after: > - moving it from an Hyper-V 2012 host to a Hyper-V 2016 > - updating to FreeBSD 11.2 (custom kernel, but same issue with=20 > GENERIC) After loosing some times because i was thinking about=20 > hardware issue (disk controller was my first thought...) and testing=20 > with "dd if=3D/dev/urandom"... I discovered this... >=20 > I ran the following test... and quite surprised by the speed result! > $ dd if=3D/dev/urandom of=3D/dev/null bs=3D10M count=3D3 > 3+0 records in > 3+0 records out > 31457280 bytes transferred in 27.960431 secs (1125064 bytes/sec) The=20 > test was also sometimes "freezing" the Hyper-V host! >=20 > Looking into "dmesg" i have found this: > random: registering fast source Intel Secure Key RNG > random: fast provider: "Intel Secure Key RNG" >=20 > So I rebuilt my KERNEL without "rdrand_rng" (didn't find another way=20 > to disable it...)... and performances went back to normal! >=20 > I think this issue should documented on https://na01.safelinks.protection= .outlook.com/?url=3Dhttps%3A%2F%2Fwiki.freebsd.org%2FHyperV&data=3D02%7= C01%7Cweh%40microsoft.com%7Cc42c865cb80e4ed2c95f08d607c74577%7C72f988bf86f1= 41af91ab2d7cd011db47%7C1%7C0%7C636704949779065690&sdata=3DWaGPCp%2FggDU= QMyrk49GAbe8TypqYGdpV2tgTg3sTqvk%3D&reserved=3D0 ! This is likely the same issue as: https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fbugs.fre= ebsd.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D230808&data=3D02%7C01%7Cweh%4= 0microsoft.com%7Cc42c865cb80e4ed2c95f08d607c74577%7C72f988bf86f141af91ab2d7= cd011db47%7C1%7C0%7C636704949779065690&sdata=3Dnm3oeJoKGlYzD0ZcSPhGCEw1= rMgbsrGkem69AYA2hoI%3D&reserved=3D0 If you're having troubles w/ the host freezing, this should probably still = be investigated as even w/ the excessive locking, it should never freeze. --=20 John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." _______________________________________________ freebsd-virtualization@freebsd.org mailing list https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Flists.fr= eebsd.org%2Fmailman%2Flistinfo%2Ffreebsd-virtualization&data=3D02%7C01%= 7Cweh%40microsoft.com%7Cc42c865cb80e4ed2c95f08d607c74577%7C72f988bf86f141af= 91ab2d7cd011db47%7C1%7C0%7C636704949779065690&sdata=3DSgFYMJo8%2B8y4HbC= fAqBldexkB6bbX5eherDDHtNhEqU%3D&reserved=3D0 To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebs= d.org"