Date: Mon, 20 Aug 2018 13:27:33 +0200 From: Ali Abdallah <aliovx@gmail.com> To: freebsd-hackers@freebsd.org Subject: rand_harvestq high cpu usage when /dev/urandom is used Message-ID: <CAO3OKx_3nKDEKP_eii0QoC7DG57Y_KLrHxwJrV7r7UMRL%2BX5_A@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello, I was just sorting randomly some jpg image files using: ls *.jpg | sort -R --random-source=/dev/urandom The above command never exited. Later I noticed that one of my CPU is always running 100%. top -S reveals that it is rand_harvestq kernel service. Is this is a bug? This occurs on 12-ALPHA1 and 11.2 Also, I read on https://lists.freebsd.org/pipermail/freebsd-current/2013-November/046683.html someone saying that sysctls to turn off harvesting is documented in random(6) <https://www.freebsd.org/cgi/man.cgi?query=random&sektion=6&manpath=freebsd-release-ports>. I had a look at that document, but wasn't clear to me how to turn it off. I tried to play with the mask, but nothing. Cheers, Ali
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO3OKx_3nKDEKP_eii0QoC7DG57Y_KLrHxwJrV7r7UMRL%2BX5_A>