View Issue Details

IDProjectCategoryView StatusLast Update
0002432gnunet-gtkgnunet-fs-gtkpublic2012-11-05 17:32
ReporterLRN Assigned ToChristian Grothoff Due Date
PrioritylowSeveritytweakReproducibilityalways
Status closedResolutionfixed 
PlatformW32OSNTOS Version6.1.7601
Product VersionGit master 
Target Version0.9.4Fixed in Version0.9.4 
Summary0002432: High CPU load when displaying search results
Descriptiongnunet-fs-gtk consumes different amount of CPU resources depending on whether a search result tab is opened, and the number of items in it.
Steps To Reproduce0) Observe CPU usage of gnunet-fs-gtk when idle. It's near zero, with occasional spikes to 0.19%
1) Search for "foobarbazzoolica". It will find nothing. Observe CPU usage. It's near zero, with occasional (more frequent) spikes to 0.20%
2) Without closing previous search, search for "GPL". It will find two files. Observe CPU usage. It will remain relatively high (roughly between 3% and 8%)
3) Without closing previous search, search for "test". It will find 255 files. Observe CPU usage. It will remain high (between 5% and 12%).
4) Without closing previous search, switch to "foobarbazzoolica" tab. CPU usage will drop to 0 with frequent spikes to 0.39%
Additional InformationSince i have a 4-core machine with HT (8 logical processors), 12,5% CPU usage means a process using 100% of one core, so CPU usage of 3% is actually 24% of a core, 8% is 64% of a core, and 0.39% is 3.12% of a core.

This is all without taking into account CPU usage spikes from scrolling, moving the mouse over widgets etc.
TagsNo tags attached.

Relationships

duplicate of 0002578 closedChristian Grothoff GNUnet Busy loop trying to connect on localhost. 

Activities

LRN

2012-06-18 19:11

reporter   ~0006087

CPU usage drops significantly (1-2% for "GPL" and 5-8% for "test" tab) when not running under gdb. Reducing log level to WARNING-only also helps. However, "test" tab CPU load never goes below 4%. I think it spends CPU on doing probes...Clicking the "pause" button on the tab does not reduce CPU usage.

Christian Grothoff

2012-06-18 19:23

manager   ~0006089

Well, the code is certainly doing probes. We also now run the animation code (which is active even if you don't have any real animations going on, just having the tab open should do it). However, CPU usage on my system is minimal despite probes and animations. Sounds like we should find out where exactly your CPU is going...

Christian Grothoff

2012-10-07 10:49

manager   ~0006417

Sounds now like a duplicate of 0002578, as it pretty much explains the behavior.

Issue History

Date ModifiedUsernameFieldChange
2012-06-18 19:03LRNNew Issue
2012-06-18 19:11LRNNote Added: 0006087
2012-06-18 19:23Christian GrothoffNote Added: 0006089
2012-06-18 20:58Christian GrothoffStatusnew => feedback
2012-09-17 10:56Christian GrothoffAssigned To => Christian Grothoff
2012-09-17 10:59Christian GrothoffPrioritynormal => low
2012-09-29 19:27Christian GrothoffSeverityminor => tweak
2012-10-07 10:49Christian GrothoffNote Added: 0006417
2012-10-07 10:49Christian GrothoffRelationship addedduplicate of 0002578
2012-10-07 10:49Christian GrothoffStatusfeedback => resolved
2012-10-07 10:49Christian GrothoffFixed in Version => 0.9.4
2012-10-07 10:49Christian GrothoffResolutionopen => fixed
2012-10-07 10:49Christian GrothoffTarget Version => 0.9.4
2012-11-05 17:32Christian GrothoffStatusresolved => closed