rtkit is using cpu

Bug #882240 reported by Jeff Hill
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I observe /usr/lib/rtkit/rtkit-daemon using 30% of the CPU on Ubuntu 11.10 (Oneiric Ocelot). I tried to grab a stack trace with sudo gdb but this hangs up and I am unable to get the gdb command line back with <ctrl>C. See also repeating syslog output below. Issuing "sudo kill -9 1596" commands against the rtkit daemon has no visible impact.

Ubuntu 3.0.0-12.20-generic 3.0.4

hill@ubuntu:~$ grep rtkit /var/log/syslog
Oct 18 14:55:41 ubuntu rtkit-daemon[1596]: The canary thread is apparently starving. Taking action.
Oct 18 14:55:41 ubuntu rtkit-daemon[1596]: Demoting known real-time threads.
Oct 18 14:55:41 ubuntu rtkit-daemon[1596]: Successfully demoted thread 1974 of process 1972 (n/a).
Oct 18 14:55:41 ubuntu rtkit-daemon[1596]: Successfully demoted thread 1973 of process 1972 (n/a).
Oct 18 14:55:41 ubuntu rtkit-daemon[1596]: Successfully demoted thread 1972 of process 1972 (n/a).
Oct 18 14:55:41 ubuntu rtkit-daemon[1596]: Demoted 3 threads.
Oct 19 14:22:53 ubuntu rtkit-daemon[1596]: The canary thread is apparently starving. Taking action.
Oct 19 14:22:53 ubuntu rtkit-daemon[1596]: Demoting known real-time threads.
Oct 19 14:22:53 ubuntu rtkit-daemon[1596]: Successfully demoted thread 1974 of process 1972 (n/a).
Oct 19 14:22:53 ubuntu rtkit-daemon[1596]: Successfully demoted thread 1973 of process 1972 (n/a).
Oct 19 14:22:53 ubuntu rtkit-daemon[1596]: Successfully demoted thread 1972 of process 1972 (n/a).

hill@ubuntu:~$ ps xau | grep 1972
hill 1972 0.0 0.2 97488 2688 ? Sl Oct17 0:21 /usr/bin/pulseaudio --start --log-target=syslog
hill 21250 0.0 0.0 4192 792 pts/4 R+ 13:46 0:00 grep --color=auto 1972
hill@ubuntu:~$ ps xau | grep 1973
hill 21252 0.0 0.0 4188 792 pts/4 R+ 13:46 0:00 grep --color=auto 1973
hill@ubuntu:~$ ps xau | grep 1974
hill 21254 0.0 0.0 4188 788 pts/4 S+ 13:46 0:00 grep --color=auto 1974

Revision history for this message
Jeff Hill (johill-lanl) wrote :
Download full text (95.4 KiB)

00:00.0 Host bridge [0600]: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge [8086:7190] (rev 01)
 Subsystem: VMware Virtual Machine Chipset [15ad:1976]
 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 0
 Kernel driver in use: agpgart-intel

00:01.0 PCI bridge [0604]: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge [8086:7191] (rev 01) (prog-if 00 [Normal decode])
 Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
 Status: Cap- 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 0
 Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
 Secondary status: 66MHz+ FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- <SERR- <PERR-
 BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B+
  PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
 Kernel modules: shpchp

00:07.0 ISA bridge [0601]: Intel Corporation 82371AB/EB/MB PIIX4 ISA [8086:7110] (rev 08)
 Subsystem: VMware Virtual Machine Chipset [15ad:1976]
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 0

00:07.1 IDE interface [0101]: Intel Corporation 82371AB/EB/MB PIIX4 IDE [8086:7111] (rev 01) (prog-if 8a [Master SecP PriP])
 Subsystem: VMware Virtual Machine Chipset [15ad:1976]
 Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 64
 Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
 Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
 Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
 Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
 Region 4: I/O ports at 10c0 [size=16]
 Kernel driver in use: ata_piix

00:07.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] (rev 08)
 Subsystem: VMware Virtual Machine Chipset [15ad:1976]
 Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Interrupt: pin ? routed to IRQ 9
 Kernel modules: i2c-piix4

00:07.7 System peripheral [0880]: VMware Virtual Machine Communication Interface [15ad:0740] (rev 10)
 Subsystem: VMware Virtual Machine Communication Interface [15ad:0740]
 Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Interrupt: pin A routed to IRQ 9
 Region 0: I/O ports at 1080 [size=64]
 Region 1: Memory at c8000000 (64-bit, non-prefetchable) [size=8K]
 Capabilities: [40] MSI: Enable- Count=1/1 Maskable- ...

description: updated
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 882240

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Jeff Hill (johill-lanl) wrote :

output from lspci

description: updated
description: updated
Revision history for this message
Jeff Hill (johill-lanl) wrote :

hill@ubuntu:~$ apport-collect 882240
Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 25, in <module>
    import apport
  File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 1, in <module>
    from apport.report import Report
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 20, in <module>
    import apport.fileutils
  File "/usr/lib/python2.7/dist-packages/apport/fileutils.py", line 22, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py", line 19, in <module>
    import apt
  File "/usr/lib/python2.7/dist-packages/apt/__init__.py", line 21, in <module>
    import apt_pkg
ImportError: /home/hill/altera/11.0sp1/quartus/linux/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/python2.7/dist-packages/apt_pkg.so)

Revision history for this message
Jeff Hill (johill-lanl) wrote :

Attempts at "sudo apport-collect 882240" failed (hang). this is what I see when I type ctrl C.

hill@ubuntu:~$ sudo apport-collect 882240
[sudo] password for hill:

^CTraceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 368, in <module>
    app.run_argv()
  File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 570, in run_argv
    return self.run_update_report()
  File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 421, in run_update_report
    if not self.crashdb.can_update(self.options.update_report):
  File "/usr/lib/python2.7/dist-packages/apport/crashdb_impl/launchpad.py", line 471, in can_update
    bug = self.launchpad.bugs[id]
  File "/usr/lib/python2.7/dist-packages/apport/crashdb_impl/launchpad.py", line 117, in launchpad
    version='1.0')
  File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 539, in login_with
    credential_save_failed, version)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 346, in _authorize_token_and_login
    credentials = authorization_engine(credentials, credential_store)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 458, in __call__
    request_token_string = self.get_request_token(credentials)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 475, in get_request_token
    token_format=Credentials.DICT_TOKEN_FORMAT)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 128, in get_request_token
    url, method='POST', headers=headers, body=urlencode(params))
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1436, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1188, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1123, in _conn_request
    conn.connect()
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 887, in connect
    sock.connect((self.host, self.port))
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
KeyboardInterrupt

Revision history for this message
Jeff Hill (johill-lanl) wrote :

> and change the bug status to 'Confirmed'.

Presumably that decision should be made by a person with relevant experience with rtkit

Jeff Hill (johill-lanl)
Changed in linux (Ubuntu):
status: Incomplete → New
Revision history for this message
Brad Figg (brad-figg) wrote :

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 882240

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Jeff Hill (johill-lanl)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . If possible, please test the latest kernel (Not a kernel in the daily directory). Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag(Only that one tag, please leave the others). This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text.

If this bug is fixed by the mainline kernel, please add the following tag 'kernel-fixed-upstream-KERNEL-VERSION'. For example, if kernel version 3.1-rc9 fixed and issue, the tag would be: 'kernel-fixed-upstream-v3.1-rc9'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Thanks in advance.

tags: added: needs-upstream-testing oneiric
Revision history for this message
Brad Figg (brad-figg) wrote : Test with newer development kernel (3.0.0-12.20)

Thank you for taking the time to file a bug report on this issue.

However, given the number of bugs that the Kernel Team receives during any development cycle it is impossible for us to review them all. Therefore, we occasionally resort to using automated bots to request further testing. This is such a request.

We have noted that there is a newer version of the development kernel than the one you last tested when this issue was found. Please test again with the newer kernel and indicate in the bug if this issue still exists or not.

If the bug still exists, change the bug status from Incomplete to Confirmed. If the bug no longer exists, change the bug status from Incomplete to Fix Released.

Thank you for your help, we really do appreciate it.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: kernel-request-3.0.0-12.20
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Changed in linux (Ubuntu):
status: Expired → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.