bad performance with rng-egd backend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
1. create listen socket
# cat /dev/random | nc -l localhost 1024
2. start vm with rng-egd backend
./x86_64-
-chardev socket,
-object rng-egd,
-device virtio-
(guest) # dd if=/dev/hwrng of=/dev/null
note: cancelling dd process by Ctrl+c, it will return the read speed.
Problem: the speed is around 1k/s
===================
If I use rng-random backend (filename=
It seems that when the request entry is added to the list, we don't read the data from queue list immediately.
The chr_read() is delayed, the virtio_notify() is delayed. the next request will also be delayed. It effects the speed.
I tried to change rng_egd_
Problem: we can't poll the content in time currently
Any thoughts?
Thanks, Amos
Looking through old bug tickets... is this still an issue with the latest version of QEMU? Or could we close this ticket nowadays?