RE: [HyperV-2016] urandom performance issue...
I was not able to reproduce it on my test machine with Windows 10 (Build 17134) host and FreeBSD 11.2 release guest. I downloaded the 11.2 guest image directly from freebsd.org. When running the dd command, I did see the guest OS hanged until the dd exited. However, there is no dmesg coming out during the run, neither did the host freeze. I allocated 2GB memory and 1 vcpu to the guest. The host performance monitor shows around 20% of system usage when the dd was running. It got back to single digit after it exited. Thanks, Wei From: clement.mou...@gmail.com On Behalf Of Support SimpleRezo Sent: Wednesday, August 22, 2018 9:04 PM To: Wei Hu Cc: freebsd-virtualization@freebsd.org Subject: Re: [HyperV-2016] urandom performance issue... 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ût 2018 à 11:38, Wei Hu mailto:w...@microsoft.com>> a é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-virtualizat...@freebsd.org<mailto:owner-freebsd-virtualizat...@freebsd.org> mailto:owner-freebsd-virtualizat...@freebsd.org>> On Behalf Of John-Mark Gurney Sent: Wednesday, August 22, 2018 8:35 AM To: Support SimpleRezo mailto:simpler...@gmail.com>> Cc: freebsd-virtualization@freebsd.org<mailto: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=/dev/urandom"... I discovered this... > > I ran the following test... and quite surprised by the speed result! > $ dd if=/dev/urandom of=/dev/null bs=10M count=3 > 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=https%3A%2F%2Fwiki.freebsd.org%2FHyperV&data=02%7C01%7Cweh%40microsoft.com%7Cc42c865cb80e4ed2c95f08d607c74577%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636704949779065690&sdata=WaGPCp%2FggDUQMyrk49GAbe8TypqYGdpV2tgTg3sTqvk%3D&reserved=0<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.freebsd.org%2FHyperV&data=02%7C01%7Cweh%40microsoft.com%7C78a1c87c7675414d6fc408d6082fd29f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705398826503446&sdata=UugmDCzy2VcrLF60MgxVpRUi5fgmB6SaG51%2B2ElC63A%3D&reserved=0> > ! This is likely the same issue as: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.freebsd.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D230808&data=02%7C01%7Cweh%40microsoft.com%7Cc42c865cb80e4ed2c95f08d607c74577%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636704949779065690&sdata=nm3oeJoKGlYzD0ZcSPhGCEw1rMgbsrGkem69AYA2hoI%3D&reserved=0<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.freebsd.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D230808&data=02%7C01%7Cweh%40microsoft.com%7C78a1c87c7675414d6fc408d6082fd29f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705398826513460&sdata=4tlxEXjwiB%2FPmM9zqZ6HdYlgzI8MW06db5vFvYRqQT4%3D&reserved=0> 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. -- 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<mailto:freebsd-virtualization@freebsd.org> mailing list https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freebsd.org%2Fmailman%2Flistinfo%2Ffreebsd-virtualization&data=02%7C01%7Cweh%40microsoft.com%7Cc42c865cb80e4ed2c95f08d607c74577%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636704949779065690&sdata=SgFYMJo8%2B8y4HbCfAqBldexkB6bbX5eherDDHtNhEqU%3D&reserved=0<https://na01.safelinks.protection.outlook.com/?url=https%3A
Re: [HyperV-2016] urandom performance issue...
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ût 2018 à 11:38, Wei Hu a é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-virtualizat...@freebsd.org < > owner-freebsd-virtualizat...@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=/dev/urandom"... I discovered this... > > > > I ran the following test... and quite surprised by the speed result! > > $ dd if=/dev/urandom of=/dev/null bs=10M count=3 > > 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=https%3A%2F%2Fwiki.freebsd.org%2FHyperV&data=02%7C01%7Cweh%40microsoft.com%7Cc42c865cb80e4ed2c95f08d607c74577%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636704949779065690&sdata=WaGPCp%2FggDUQMyrk49GAbe8TypqYGdpV2tgTg3sTqvk%3D&reserved=0 > ! > > This is likely the same issue as: > > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.freebsd.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D230808&data=02%7C01%7Cweh%40microsoft.com%7Cc42c865cb80e4ed2c95f08d607c74577%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636704949779065690&sdata=nm3oeJoKGlYzD0ZcSPhGCEw1rMgbsrGkem69AYA2hoI%3D&reserved=0 > > 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. > > -- > 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=https%3A%2F%2Flists.freebsd.org%2Fmailman%2Flistinfo%2Ffreebsd-virtualization&data=02%7C01%7Cweh%40microsoft.com%7Cc42c865cb80e4ed2c95f08d607c74577%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636704949779065690&sdata=SgFYMJo8%2B8y4HbCfAqBldexkB6bbX5eherDDHtNhEqU%3D&reserved=0 > To unsubscribe, send any mail to " > freebsd-virtualization-unsubscr...@freebsd.org" > ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
RE: [HyperV-2016] urandom performance issue...
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-virtualizat...@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=/dev/urandom"... I discovered this... > > I ran the following test... and quite surprised by the speed result! > $ dd if=/dev/urandom of=/dev/null bs=10M count=3 > 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=https%3A%2F%2Fwiki.freebsd.org%2FHyperV&data=02%7C01%7Cweh%40microsoft.com%7Cc42c865cb80e4ed2c95f08d607c74577%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636704949779065690&sdata=WaGPCp%2FggDUQMyrk49GAbe8TypqYGdpV2tgTg3sTqvk%3D&reserved=0 > ! This is likely the same issue as: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.freebsd.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D230808&data=02%7C01%7Cweh%40microsoft.com%7Cc42c865cb80e4ed2c95f08d607c74577%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636704949779065690&sdata=nm3oeJoKGlYzD0ZcSPhGCEw1rMgbsrGkem69AYA2hoI%3D&reserved=0 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. -- 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=https%3A%2F%2Flists.freebsd.org%2Fmailman%2Flistinfo%2Ffreebsd-virtualization&data=02%7C01%7Cweh%40microsoft.com%7Cc42c865cb80e4ed2c95f08d607c74577%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636704949779065690&sdata=SgFYMJo8%2B8y4HbCfAqBldexkB6bbX5eherDDHtNhEqU%3D&reserved=0 To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org" ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
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=/dev/urandom"... I discovered this... > > I ran the following test... and quite surprised by the speed result! > $ dd if=/dev/urandom of=/dev/null bs=10M count=3 > 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://wiki.freebsd.org/HyperV ! This is likely the same issue as: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230808 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. -- 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://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
[HyperV-2016] urandom performance issue...
Hi list! 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=/dev/urandom"... I discovered this... I ran the following test... and quite surprised by the speed result! $ dd if=/dev/urandom of=/dev/null bs=10M count=3 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://wiki.freebsd.org/HyperV ! Regards -- Clement SimpleRezo ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"