FreeBSD Bugzilla – Attachment 182516 Details for
Bug 219216
sched_bind() blocks if the entropy pool is starved
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shell script to reproduce the problem
reproduce.sh (text/plain), 773 bytes, created by
Dominic Fandrey
on 2017-05-11 17:19:45 UTC
(
hide
)
Description:
shell script to reproduce the problem
Filename:
MIME Type:
Creator:
Dominic Fandrey
Created:
2017-05-11 17:19:45 UTC
Size:
773 bytes
patch
obsolete
>#!/bin/sh ># ># This script reproduces PR 219216. ># ># You need to be on an intel platform with coretemp loaded. ># ># Every .5 seconds it prints all core temperatures. Every 5 seconds ># it consumes 1 GiB from /dev/random. ># ># If you are affected you will see access to the dev.cpu.%d.temperature ># sysctls start to stutter and freeze. ># ># To terminate the script press CTRL+C and move your mouse to feed ># some entropy into the RNG. ># > >set -f > >ncpu=$(sysctl -n hw.ncpu) >for i in $(jot $ncpu 0); do > mibs="$mibs dev.cpu.$i.temperature" >done > >while /bin/sleep .5; do > sysctl $mibs > echo $((count += 1)) cycles completed > if [ $((count % 10)) -eq 0 ]; then > echo -n "consuming 1 GiB from /dev/random ..." > dd bs=1m count=1024 < /dev/random > /dev/null > echo " done." > fi >done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 219216
: 182516