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 921857 - Alsamixer - High CPU utilization when started without terminal
Summary: Alsamixer - High CPU utilization when started without terminal
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: alsa-utils
Version: 7.0
Hardware: Unspecified
OS: Linux
medium
low
Target Milestone: alpha
: ---
Assignee: Jaroslav Kysela
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On: 921855 1148479
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-15 06:43 UTC by Robin Hack
Modified: 2015-10-19 06:44 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 921855
Environment:
Last Closed: 2013-07-31 18:51:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Robin Hack 2013-03-15 06:43:05 UTC
+++ This bug was initially created as a clone of Bug #921855 +++

Description of problem:
When alsamixer is started without terminal (gnome->run application) then i've got high cpu utilization.

Version-Release number of selected component (if applicable):
alsa-utils-1.0.26-1.el7.x86_64


How reproducible:
always

Steps to Reproduce:
1. run alsamixer without terminal
  
Actual results:
High cpu utilization

Expected results:
No cpu utilization.

Additional info:

Part of strace output.

Still repeat:
...
rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 0x359720f500}, {0x3599e192f0, [], SA_RESTORER|SA_RESTART, 0x359720f500}, 8) = 0
select(1, [0], NULL, NULL, {0, 0})      = 1 (in [0], left {0, 0})
rt_sigaction(SIGTSTP, {0x3599e192f0, [], SA_RESTORER|SA_RESTART, 0x359720f500}, NULL, 8) = 0
poll([{fd=0, events=POLLIN}, {fd=3, events=POLLIN|POLLERR|POLLNVAL}], 2, -1) = 1 ([{fd=0, revents=POLLIN}])
rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 0x359720f500}, {0x3599e192f0, [], SA_RESTORER|SA_RESTART, 0x359720f500}, 8) = 0
rt_sigaction(SIGTSTP, {0x3599e192f0, [], SA_RESTORER|SA_RESTART, 0x359720f500}, NULL, 8) = 0
poll([{fd=0, events=POLLIN}, {fd=3, events=POLLIN|POLLERR|POLLNVAL}], 2, -1) = 1 ([{fd=0, revents=POLLIN}])
select(1, [0], NULL, NULL, {0, 0})      = 1 (in [0], left {0, 0})
read(0, "", 1)                          = 0
...

Comment 2 Robin Hack 2013-03-15 07:29:19 UTC
It seems that they have problem with STDIN handling.
I wrote small repeater:
alsamixer 0>/dev/null

Comment 3 Jaroslav Kysela 2013-03-22 13:04:52 UTC
I added a simple tty check to alsamixer:

http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=5622f3b09fecbb19363db2b22b7060c27a65bb04

Comment 4 Jaroslav Kysela 2013-07-31 18:51:30 UTC
The patch from comment#3 is in the current alsa-utils package for rhel-7. Closing..


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