Bug 1157207 - glib-pacrunner cpu usage is about 80-90 %
Summary: glib-pacrunner cpu usage is about 80-90 %
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: glib-networking
Version: 20
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-26 07:33 UTC by Pavel Malyshev
Modified: 2015-06-29 23:02 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-06-29 23:02:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
strace -s4096 -p `pidof glib-pacrunner` (145.61 KB, text/plain)
2014-10-26 07:33 UTC, Pavel Malyshev
no flags Details
lsof -p `pidof glib-pacrunner` (3.83 KB, text/plain)
2014-10-26 07:34 UTC, Pavel Malyshev
no flags Details
strace -s4096 -f -tt -p `pidof glib-pacrunner` (18.86 MB, application/x-bzip)
2014-10-27 20:36 UTC, Pavel Malyshev
no flags Details
strace of glib-pacrunner at another system (kelly) (13.51 MB, application/x-bzip)
2014-10-28 20:12 UTC, Pavel Malyshev
no flags Details

Description Pavel Malyshev 2014-10-26 07:33:24 UTC
Created attachment 950734 [details]
strace -s4096 -p `pidof glib-pacrunner`

Description of problem:

When I enable automatic proxy discovery in Gnome Settings glib-pacrunner starts and eats one of my CPU cores (80-90% per top), which causes battery drain and fans to be turn on at a high speed.

Version-Release number of selected component (if applicable):

glib-networking-2.38.2-1.fc20.x86_64


How reproducible:
Easily


Steps to Reproduce:
1. Open Gnome Settings
2. Choose "Network"
3. Choose "Network proxy"
4. Switch method to "Automatic", leave "Configuration URL" empty

Actual results:
Per top, glib-pacrunner consumes 80-90% of CPU core until killed.

Expected results:
I don't expect any task to consume so much CPU for a long time (more than few seconds).


Additional info:
Fresh Fedora 20 with all updates installed.
My office network won't work without correct WPAD support.

Comment 1 Pavel Malyshev 2014-10-26 07:34:07 UTC
Created attachment 950735 [details]
lsof -p `pidof glib-pacrunner`

Comment 2 Dan Winship 2014-10-27 19:14:08 UTC
The strace shows the main thread being repeatedly woken up by another thread, but there's no hint of why.

Can you please do

  strace -s4096 -f -tt `pidof glib-pacrunner`

to get all threads? Thanks.

Comment 3 Pavel Malyshev 2014-10-27 20:36:42 UTC
Created attachment 951159 [details]
strace -s4096 -f -tt -p `pidof glib-pacrunner`

Comment 4 Dan Winship 2014-10-28 17:34:00 UTC
So the log shows that in the span of 5 seconds, glib-pacrunner received 523 requests to resolve the proxy for outlook.office365.com:443 (and only managed to reply to 60 of them). Is some other process also using lots of CPU? (Presumably something evolution or gnome-online-accounts related.)

Comment 5 Pavel Malyshev 2014-10-28 20:09:45 UTC
I haven't seen any other process which used lots of CPU.
Actually it should be evolution, who tried to resolve office365.com.
Does the behavior mean that it is an evolution bug? Or should pacrunner be able to tolerate the load rejecting/caching some requests?

I was able to reproduce high CPU usage on another Fedora 20 system.

Comment 6 Pavel Malyshev 2014-10-28 20:12:24 UTC
Created attachment 951522 [details]
strace of glib-pacrunner at another system (kelly)

Comment 7 Fedora End Of Life 2015-05-29 13:09:42 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. 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 '20'.

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 20 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 8 Fedora End Of Life 2015-06-29 23:02:46 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 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.