From owner-freebsd-virtualization@freebsd.org Wed Aug 22 13:04:41 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 C6C9010885A0 for ; Wed, 22 Aug 2018 13:04:41 +0000 (UTC) (envelope-from simplerezo@gmail.com) Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0A1C172F3A for ; Wed, 22 Aug 2018 13:04:41 +0000 (UTC) (envelope-from simplerezo@gmail.com) Received: by mail-lj1-x232.google.com with SMTP id s12-v6so1388586ljj.0 for ; Wed, 22 Aug 2018 06:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:sender:from:date:message-id :subject:to:cc; bh=chUZYgmqVlcl5izAidDtDsrQJdTMhx52i3U2ksCzf+U=; b=RdpLj0UKmqXWPDkiis3mRwT/05xcsUBCG+LEFiKsiWZ9f/NW4n9KLJ2WzTkVEaHjdm ofNMmPEvkO7CcLMVgihYauj9TuPtZTMaQqsbGElGhbBnnb8DD2ZdfaiM0dkfWnhlPX/U DLpjCjsXNtuCQGMoucsRksU1TXJSqRvVX3M9R8LGGyQqu50Zje2ZIJw/8yc1FIpixGhY zA2K4HnpAgxVEo1y9AS+lnVpKVbDX8BpJK/XFuRvITWpCzyhwcJO585nZD/9C6ohLUoW g393i5CpBjoncde6/eCj6U6kqWSXQcc851/eZHI2XG3iCH4CkOGZM52BOOjHv5OG4UzO AQrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:sender:from :date:message-id:subject:to:cc; bh=chUZYgmqVlcl5izAidDtDsrQJdTMhx52i3U2ksCzf+U=; b=Hle0WXkqed+cQZWKTWLpHNTZ6itBXcVHVWCo/aMy79zNFky+i+Y9wa+FwM3T1fPQzD tibDB9hs8VOurRBwrTAI63kj/Met8AegvP0OeeLNZzAU1nfc2BscihE7CN7bX2rwZZO0 ibfjb80MIZioQZiYwdJ75VulR78in8oS0Q8z7j1/ailwdY8dLIEeX2FoYNkTrxwCABlc Cb/j15ATjDx7psko000mp2vDNnY4f8EKtQrCkdKdvFJGGex91AWllTZMMmERJFkwfi20 FsqCEqwjQA5XNOXeXNsu7rq+C+yVtQuubstEFpQ8roQyKJ0s1dfD22+Sv5/Cz08KwvBp AKnA== X-Gm-Message-State: APzg51CeUgzUOmXtIoNKdtFtjh+gAcJ9iSFPeuvYSqOjx2Ijc6VKHyfJ anR97+nzv6ctyvIDHAj9IyD2dJmthzRsr1w3H4k= X-Google-Smtp-Source: ANB0VdYtCsNnV3nrEe+yFjABtheY5pBUV+SWUBXlb7Gma2pxatoNHceX/qoCYdfbpu+zY1iyMYEZ5o3DMjfDueWR8lQ= X-Received: by 2002:a2e:8e94:: with SMTP id z20-v6mr4670687ljk.117.1534943079553; Wed, 22 Aug 2018 06:04:39 -0700 (PDT) MIME-Version: 1.0 References: <20180822003512.GI97145@funkthat.com> In-Reply-To: Sender: clement.moulin@gmail.com X-Google-Sender-Delegation: clement.moulin@gmail.com From: Support SimpleRezo Date: Wed, 22 Aug 2018 15:04:27 +0200 X-Google-Sender-Auth: tJ-iJe2Dmvv6OqUEG-Rd6oVGwsg Message-ID: Subject: Re: [HyperV-2016] urandom performance issue... To: weh@microsoft.com Cc: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 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 13:04:42 -0000 This is happening with Hyper-V Server 2016. It's seems to not be the same on 2012 version, but the VM was on FreeBSD 10.3, not 11.2. Regards -- Clement SimpleRezo Le mer. 22 ao=C3=BBt 2018 =C3=A0 11:38, Wei Hu a =C3=A9= crit : > Have you ever seen the same issue on Hyper-V 2012? What is the Windows > version what you are running into the issue? > > Thanks, > Wei > > -----Original Message----- > From: owner-freebsd-virtualization@freebsd.org < > 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 > > GENERIC) After loosing some times because i was thinking about > > hardware issue (disk controller was my first thought...) and testing > > with "dd if=3D/dev/urandom"... I discovered this... > > > > 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 > > test was also sometimes "freezing" the Hyper-V host! > > > > Looking into "dmesg" i have found this: > > random: registering fast source Intel Secure Key RNG > > random: fast provider: "Intel Secure Key RNG" > > > > So I rebuilt my KERNEL without "rdrand_rng" (didn't find another way > > to disable it...)... and performances went back to normal! > > > > I think this issue should documented on > https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fwiki.f= reebsd.org%2FHyperV&data=3D02%7C01%7Cweh%40microsoft.com%7Cc42c865cb80e= 4ed2c95f08d607c74577%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636704949= 779065690&sdata=3DWaGPCp%2FggDUQMyrk49GAbe8TypqYGdpV2tgTg3sTqvk%3D&= reserved=3D0 > ! > > This is likely the same issue as: > > https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fbugs.f= reebsd.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D230808&data=3D02%7C01%7Cweh= %40microsoft.com%7Cc42c865cb80e4ed2c95f08d607c74577%7C72f988bf86f141af91ab2= d7cd011db47%7C1%7C0%7C636704949779065690&sdata=3Dnm3oeJoKGlYzD0ZcSPhGCE= w1rMgbsrGkem69AYA2hoI%3D&reserved=3D0 > > If you're having troubles w/ the host freezing, this should probably stil= l > be investigated as even w/ the excessive locking, it should never freeze. > > -- > 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.= freebsd.org%2Fmailman%2Flistinfo%2Ffreebsd-virtualization&data=3D02%7C0= 1%7Cweh%40microsoft.com%7Cc42c865cb80e4ed2c95f08d607c74577%7C72f988bf86f141= af91ab2d7cd011db47%7C1%7C0%7C636704949779065690&sdata=3DSgFYMJo8%2B8y4H= bCfAqBldexkB6bbX5eherDDHtNhEqU%3D&reserved=3D0 > To unsubscribe, send any mail to " > freebsd-virtualization-unsubscribe@freebsd.org" >