After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 758370 - gnome-contacts-search-provider consuming 100% CPU
gnome-contacts-search-provider consuming 100% CPU
Status: RESOLVED OBSOLETE
Product: gnome-contacts
Classification: Core
Component: search provider
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Contacts maintainer(s)
GNOME Contacts maintainer(s)
: 701580 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-11-19 22:02 UTC by Sri Ramkrishna
Modified: 2018-01-24 15:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
High CPU and RAM use by gnome-contacts (78.93 KB, image/png)
2016-09-26 11:44 UTC, butternut
Details

Description Sri Ramkrishna 2015-11-19 22:02:13 UTC
Several folks have reported to me that /usr/libexec/gnome-contacts-search-provider starting up and consuming 100% cpu and making for a less-than-optimal desktop experience.

The workaround is to link gnome-contacts-search-provider to /bin/true.  But it would be great to figure out what is going wrong.  There is a corresponding fedora bug:
https://bugzilla.redhat.com/show_bug.cgi?id=919889

Fixing this would be awesome...
Comment 1 butternut 2016-09-26 11:44:03 UTC
Created attachment 336258 [details]
High CPU and RAM use by gnome-contacts

Resource usage out of control
Comment 2 butternut 2016-09-26 11:46:06 UTC
Just to add, it's probably related to the evolution-ews getting corporate contact lists from the GAL (global address list) which can be large, e.g. 65K users. Perhaps gnome-contacts is not very efficient in handling iterating through the large GAL when updating contacts periodically? E.g. seems to load all contact data into memory instead of "streaming" through it.
Comment 3 Niels De Graef 2017-12-26 22:39:13 UTC
*** Bug 701580 has been marked as a duplicate of this bug. ***
Comment 4 Niels De Graef 2017-12-26 22:44:46 UTC
Hey everyone. I just updated the code a bit to directly use the SearchView in Folks (commit 024738f on master). I'm hoping that this will improve both performance & memory usage a bit. There are still ways of speeding up that code, but those are found in libfolks, rather than in gnome-contacts.

Since I'm not in the position to do a lot of benchmarking right now: can someone check if it's gotten better for them?
Comment 5 Niels De Graef 2017-12-26 22:48:48 UTC
Also, thank you for taking your time to report this :-)
Comment 6 GNOME Infrastructure Team 2018-01-24 15:17:16 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-contacts/issues/67.