← Back to team overview

desktop-packages team mailing list archive

[Bug 1511629] Re: baobab eats 80% of CPU when its window loses focus

 

I installed baobab-dbgsym and tried a couple of system-wide profilers
(sysprof; perf top -g).  They don't see any symbols in baobab :(

perf report --sort comm,dso shows this:

      Children      Self  Command          Shared Object                                                                                                 ◆
    +   51,13%     0,00%  baobab           [unknown]                                                                                                     ▒
    +   42,56%    40,07%  baobab           libgtk-3.so.0.1800.2                                                                                          ▒
    +    9,39%     9,35%  baobab           libglib-2.0.so.0.4600.1                                                                                       ▒
    +    9,34%     8,99%  baobab           libgobject-2.0.so.0.4600.1                                                                                    ▒
    +    6,95%     6,56%  baobab           libc-2.21.so                                                                                                  ▒
    +    6,70%     0,00%  Xorg             [unknown]                                                                                                     ▒
    +    6,63%     6,50%  Xorg             intel_drv.so                                                                                                  ▒
    +    4,30%     4,20%  baobab           libcairo.so.2.11400.2                                                                                         ▒
    +    3,84%     0,00%  gnome-shell      [unknown]                                                                                                     ▒
    +    2,96%     2,95%  swapper          [kernel.kallsyms]                                                                                             ▒
    +    2,91%     0,22%  gnome-shell      libc-2.21.so                                                                                                  ▒
    +    2,80%     2,56%  Xorg             [kernel.kallsyms]                                                                                             ▒
    +    2,78%     0,39%  gnome-shell      [kernel.kallsyms]                                                                                             ▒
    +    2,75%     1,03%  Xorg             libc-2.21.so                                                                                                  ▒
    +    2,42%     0,01%  gnome-shell      [drm]                                                                                                         ▒
    +    2,42%     2,38%  gnome-shell      [i915]                                                                                                        ▒
    +    1,86%     0,01%  EMT              libc-2.21.so                                                                                                  ▒
    +    1,75%     1,75%  EMT              [vboxpci]                                                                                                     ▒
    +    1,68%     1,63%  Xorg             Xorg                                                                                                          ▒
    +    1,47%     1,42%  baobab           libpthread-2.21.so                                                                                            ▒
    +    1,34%     0,16%  Xorg             libpthread-2.21.so                                                                                            ▒
    +    1,33%     0,00%  EMT              [unknown]                                                                                                     ▒

If I expand the libgtk+ DSO, I see this:

    -   42,56%    40,07%  baobab           libgtk-3.so.0.1800.2                                                                                          ▒
       + 6,71% gtk_css_selector_tree_get_change                                                                                                          ▒
       + 5,87% match_class                                                                                                                               ▒
       + 4,56% gtk_css_static_style_compute_value                                                                                                        ▒
       + 4,20% transition_info_add                                                                                                                       ▒
       + 4,03% gtk_css_selector_tree_match_foreach                                                                                                       ▒
       + 3,52% gtk_css_node_declaration_has_class                                                                                                        ▒
       + 3,20% _gtk_css_selector_tree_match_all                                                                                                          ▒
       + 2,98% _gtk_css_style_property_lookup_by_id                                                                                                      ▒
       + 2,65% gtk_css_matcher_node_get_previous                                                                                                         ▒
       + 2,55% _gtk_css_value_compute                                                                                                                    ▒
       + 2,51% gtk_css_static_style_get_value                                                                                                            ▒
       + 2,24% _gtk_css_value_ref                                                                                                                        ▒
       + 2,18% match_name                                                                                                                                ▒
         2,14% _gtk_css_array_value_get_nth                                                                                                              ▒
       + 2,07% gtk_css_value_number_compute                                                                                                              ▒
       + 1,88% _gtk_css_value_unref                                                                                                                      ▒
       + 1,82% gtk_css_value_array_compute                                                                                                               ▒
       + 1,78% _gtk_css_style_property_is_inherit                                                                                                        ▒
       + 1,73% gtk_css_selector_default_foreach_matcher                                                                                                  ▒
         1,56% gtk_css_animated_style_create_css_transitions.constprop.1                                                                                 ▒
       + 1,36% _gtk_css_lookup_resolve                                                                                                                   ▒
       + 1,29% gtk_css_value_rgba_compute                                                                                                                ▒
       + 1,23% gtk_css_style_provider_lookup                                                                                                             ▒
       + 1,22% gtk_css_matcher_superset_has_class                                                                                                        ▒
       + 1,05% match_pseudoclass_state                                                                                                                   ▒
       + 1,00% _gtk_css_number_value_get                                                                                                                 ▒
       + 0,96% gtk_css_value_initial_compute                                                                                                             ▒
         0,89% _gtk_allocated_bitmask_get                                                                                                                ▒
       + 0,89% _gtk_css_selector_tree_get_change_all                                                                                                     ▒
       + 0,89% _gtk_css_style_property_get_n_properties                                                                                                  ▒
       + 0,77% gtk_css_style_add_difference                                                                                                              ▒
       + 0,69% gtk_css_matcher_node_has_class                                                                                                            ▒

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to baobab in Ubuntu.
https://bugs.launchpad.net/bugs/1511629

Title:
  baobab eats 80% of CPU when its window loses focus

Status in baobab package in Ubuntu:
  New

Bug description:
  Steps to reproduce:

  1. Run Baobab
  2. Have it index some directory
  3. Wait for it to finish
  4. Open 'top' in a terminal
  5. Focus the Baobab window, look at the CPU usage of the /usr/bin/baobab --gapplication-service process
  6. Focus some other window, look at the CPU usage of the /usr/bin/baobab --gapplication-service process
  7. Repeat steps 5 and 6 until the pattern becomes clear

  Expected results:

  CPU usage is low in both step 5 and 6.

  Actual results:

  CPU usage in step 5 is 0.  In step 6 it rises to 80% of one core.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: baobab 3.16.1-1ubuntu1
  ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
  Uname: Linux 4.2.0-16-generic x86_64
  ApportVersion: 2.19.1-0ubuntu3
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Fri Oct 30 08:40:48 2015
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2012-07-25 (1191 days ago)
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
  SourcePackage: baobab
  UpgradeStatus: Upgraded to wily on 2015-10-22 (7 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/baobab/+bug/1511629/+subscriptions


References