Maybe one can try setting the read and write threshold to the same.
The select high cpu issues didn't seem to kick in for values > 4064 when
the read threshold and write threshold were set the same > 4064. eg even
4096!
--
You received this bug notification because you are a member of Ubuntu
Bug
Hi,
There is a possible race condition with the device file and the select
command.
We have had a very sketchy attempt at a fix at ( this is not a
complete fix as much as working with the observed issue ):
https://github.com/Openand-I/haveged/tree/oi
The main changes can be summarized as
It may be the 'nbytes<1' line. It can perhaps be changed to 'nbytes<8'.
A few sleep commands in the loop are also not a bad idea either.
In either case, we've had a very cursory attempt at:
https://github.com/Openand-I/haveged/commit/a71df191b15a610140e420f2f17da5