Bug 1148312 - upowerd suddenly consumes CPU and memory
Summary: upowerd suddenly consumes CPU and memory
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: upower
Version: 21
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1130776 1163747 (view as bug list)
Depends On:
Blocks: 1326942
TreeView+ depends on / blocked
 
Reported: 2014-10-01 07:24 UTC by abyss.7
Modified: 2016-04-13 20:13 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1326942 (view as bug list)
Environment:
Last Closed: 2015-12-02 04:04:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description abyss.7 2014-10-01 07:24:47 UTC
At some moment upowerd starts to use 100% of CPU (1 core) and consumes all memory until system reaches limit.

I don't know neither exact cause, nor stacktrace of upowerd at the moment - system is unresponsive.

I'm ready to provide any useful information to help with diagnostics.

Version: 0.99.1

Comment 1 Julian 2014-11-28 07:15:18 UTC
I experience this as well. This happens about once or twice per day on f20 and f21. "systemctl restart upower" helps, if I realize the problem early enough to get a shell open.

Upower version is 0.99.1 on up-to-date f21 and f20, both with updates-testing enabled.

"journalctl -xu upower" shows nothing noteworthy, but I probably couldn't tell for upower anyway. 

Let me know, if you need some logs or so.

Comment 2 Bill Nottingham 2014-12-01 18:44:04 UTC
*** Bug 1163747 has been marked as a duplicate of this bug. ***

Comment 3 Bill Nottingham 2014-12-01 18:44:33 UTC
*** Bug 1130776 has been marked as a duplicate of this bug. ***

Comment 4 Bill Nottingham 2014-12-01 18:45:38 UTC
This is almost certainly:
   https://bugs.freedesktop.org/show_bug.cgi?id=82659

Any chance we can get a new release and/or update with those patches? Having to manually kill an out-of-control upower on a regular basis isn't fun.

Comment 5 Mark Nelson 2014-12-02 17:13:13 UTC
fwiw, I just hit this too on f21 beta.  Definitely would look good to have this patched for release!

Mark

Comment 6 Julian 2014-12-17 15:58:25 UTC
As a workaround I used SystemD to limit the memory upower is allowed to use. Just add the following lines to /usr/lib/systemd/system/upower.service:

MemoryAccounting=true
MemoryLimit=256M

I never hit this problem again since my last post, i.e. the last three weeks.

Comment 7 Richard Hughes 2014-12-19 10:15:00 UTC
I think this might help: https://admin.fedoraproject.org/updates/upower-0.99.2-1.fc21 -- if it does, please give positive karma. Thanks.

Comment 8 Yury Bulka 2015-01-09 10:54:10 UTC
I 0.99.2-1.fc21 but I still encounter the memory leak. Just restarted upowerd after it used around 500 megabytes of system RAM...

Comment 9 Fedora End Of Life 2015-11-04 15:43:43 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 10 Fedora End Of Life 2015-12-02 04:04:27 UTC
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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