RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1121614 - virtio-rng sets timer to bump up quota even if quota does not need adjusting
Summary: virtio-rng sets timer to bump up quota even if quota does not need adjusting
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: pagupta
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-21 11:42 UTC by Amit Shah
Modified: 2016-12-27 10:28 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-27 10:22:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Amit Shah 2014-07-21 11:42:47 UTC
Description of problem:

1. Even if max-bytes and period settings are not provided, the timer is armed.
2. When the quota available has reached the max-bytes amount, the timer is still armed.

This just means qemu keeps waking up to service the vrng->rate_limit_timer timer even when there's no work to do upon waking up.  This causes extra load on the host, as well as more power consumption.

The fix would be to not arm the timer when no quota restriction is specified, and also to disable the timer when the entire quota is replenished by a few timer invocations.

Comment 1 Amit Shah 2014-07-21 11:46:21 UTC
To test this, we can use virtio-rng trace events.

The trace events are not yet upstream, but I have posted a patch to do that.  The trace events can be backported as part of this bug.

Before this bug is fixed, the trace events will show the timer firing often in the function virtio_rng_process(), with a trace event like

virtio_rng_requested_size rng 0x7f984c218758: 0 bytes requested, 4294967295 bytes quota left

After the fix, such 0 bytes requested trace events should not occur.

Comment 4 pagupta 2016-12-27 10:22:12 UTC
Fixed in upstream version 2.4.


Note You need to log in before you can comment on or make changes to this bug.