[Bug 1318678] Re: haveged consumes 100% cpu when used with -w > 4067

2019-02-18 Thread openand
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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1318678

Title:
  haveged consumes 100% cpu when used with -w > 4067

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haveged/+bug/1318678/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1318678] Re: haveged consumes 100% cpu when used with -w > 4067

2016-07-05 Thread Ubuntu Foundations Team Bug Bot
The attachment "0003-Don-t-set-a-watermark-higher-than-pool-size.patch"
seems to be a patch.  If it isn't, please remove the "patch" flag from
the attachment, remove the "patch" tag, and if you are a member of the
~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1318678

Title:
  haveged consumes 100% cpu when used with -w > 4067

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haveged/+bug/1318678/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1318678] Re: haveged consumes 100% cpu when used with -w > 4067

2016-07-05 Thread nicoo
PS: The solved issues include launchpad bugs #1540978 (and its duplicate
#915218).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1318678

Title:
  haveged consumes 100% cpu when used with -w > 4067

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haveged/+bug/1318678/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1318678] Re: haveged consumes 100% cpu when used with -w > 4067

2016-07-05 Thread nicoo
Hi,

This has been fixed, along with a number of other issues, in the Debian package.
I attached the relevant patch, but you might want to consider tracking the 
upstream Debian package.


Best,

  nicoo

** Patch added: "0003-Don-t-set-a-watermark-higher-than-pool-size.patch"
   
https://bugs.launchpad.net/ubuntu/+source/haveged/+bug/1318678/+attachment/4695942/+files/0003-Don-t-set-a-watermark-higher-than-pool-size.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1318678

Title:
  haveged consumes 100% cpu when used with -w > 4067

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haveged/+bug/1318678/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1318678] Re: haveged consumes 100% cpu when used with -w > 4067

2016-02-25 Thread openand
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:

Generic Linux based OS:

- Create a new random device at /dev/entropy/random to mitigate
possible file based locking issues

- Simply restrict write_wakeup_threshold to 4064 in the code itself.

- Change select to epoll. This has the added advantage of blocking
till there is any actual entropy depletion, immediately replenishing
the pool upon every use. It therefore does not loop when no entropy is
required.

- Two epolls, one for reading and one for writing.

- Overflowing the pool with an extra byte. There is some strange
reasoning behind this as it kinda sorta releases the entropy gathered
by the kernel till time.

Android specific:

- Sleep upon device sleep

- Every 4 hours, a simple touch to the threshold parameters file again
kinda sorta feels like releases entropy gathered by kernel till time.
This can possibly be solved in Linux ( which doesn't sleep ) by
setting read_wakeup_threshold to 8.

Works excellent. Verified using strace.

There some very distinct usability improvements on both Android and
Linux, including GUI responsiveness and network connectivity due to
faster random number generation. Will almost certainly help virtual
machines too as they are entropy starved.

Invited author to take a look at this.

There is still the problem of a very slow (u)random device that slows
the entire Linux ecosystem down. It is recommended instead to replace
the (u)random device according to the fortuna ( at least 5x faster )
patch at:

http://jlcooke.ca/random

Thanks.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1318678

Title:
  haveged consumes 100% cpu when used with -w > 4067

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haveged/+bug/1318678/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1318678] Re: haveged consumes 100% cpu when used with -w > 4067

2016-02-25 Thread Richard Collins
This also affects me. It's 2016, still no changes, it seems.
 - Ubuntu 14.04.4 LTS (Server) (32-bit i686)
 - haveged 1.7c-1
 - 4067 entropy_avail, 4096 poolsize
 - 4.2.0-27-generic

** Bug watch added: Debian Bug tracker #740117
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740117

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1318678

Title:
  haveged consumes 100% cpu when used with -w > 4067

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haveged/+bug/1318678/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1318678] Re: haveged consumes 100% cpu when used with -w > 4067

2016-02-25 Thread Richard Collins
note: same bug reported here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740117

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1318678

Title:
  haveged consumes 100% cpu when used with -w > 4067

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haveged/+bug/1318678/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1318678] Re: haveged consumes 100% cpu when used with -w > 4067

2015-11-13 Thread Michal Smereczynski
Same on 14.04 with haveged 1.9.1 and 3.19.0-31-generic
#36~14.04.1-Ubuntu kernel. 4067 is a maximum.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1318678

Title:
  haveged consumes 100% cpu when used with -w > 4067

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haveged/+bug/1318678/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1318678] Re: haveged consumes 100% cpu when used with -w 4067

2015-06-26 Thread openand
It may be the 'nbytes1' line. It can perhaps be changed to 'nbytes8'.
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/a71df191b15a610140e420f2f17da558e6ebca08

Specifically around lines: 558, 568 for an idea of what we did to solve
the issue on Android and Ubuntu.

BTW, great usability improvements can be seen simply by freeing up the
entropy collection from user input.

Cursory, pun intended :)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1318678

Title:
  haveged consumes 100% cpu when used with -w  4067

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haveged/+bug/1318678/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1318678] Re: haveged consumes 100% cpu when used with -w 4067

2014-12-07 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: haveged (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1318678

Title:
  haveged consumes 100% cpu when used with -w  4067

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haveged/+bug/1318678/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1318678] Re: haveged consumes 100% cpu when used with -w 4067

2014-12-07 Thread Manuel Kraus
I have exact the same issue.

Ubuntu Server 14.04.1 LTS
haveged 1.7c-1 (amd64)
kernel 3.13.0-40-generic (64-bit)

As workaround I've set it to 3072, which works fine.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1318678

Title:
  haveged consumes 100% cpu when used with -w  4067

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haveged/+bug/1318678/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1318678] Re: haveged consumes 100% cpu when used with -w 4067

2014-12-07 Thread Manuel Kraus
Maybe worth to mention:

After I've set it to 3072 entropy_avail now commutes between 3150 and
3300 in very short cycles (15-30 seconds), which it shouldn't be to
expect either.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1318678

Title:
  haveged consumes 100% cpu when used with -w  4067

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haveged/+bug/1318678/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs