Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 891641 - mate-base/mate-panel-1.26.2: mate clock applet has high CPU usage
Summary: mate-base/mate-panel-1.26.2: mate clock applet has high CPU usage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-21 22:50 UTC by OzTiram
Modified: 2023-12-22 20:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description OzTiram 2023-01-21 22:50:26 UTC
This seems highly unusual that the clock applet needs so much CPU.


```
top - 23:46:14 up 5 days, 12:41,  1 user,  load average: 0.85, 1.05, 1.11
Tasks: 582 total,   1 running, 581 sleeping,   0 stopped,   0 zombie
%Cpu(s):  2.3 us,  0.7 sy,  0.0 ni, 96.7 id,  0.1 wa,  0.2 hi,  0.1 si,  0.0 st
MiB Mem :  64234.6 total,  11737.1 free,  10633.3 used,  41864.2 buff/cache
MiB Swap:  16384.0 total,  16013.1 free,    370.9 used.  52544.8 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                       
3921555 oznt      20   0 3307376 229800  43456 S  20.1   0.3 321:18.25 clock-applet                                  
 131922 root      20   0 1211016 307108  26656 S  10.2   0.5  54:18.97 buildkitd                                     
   5538 root      20   0 1351620 513268  30076 S   6.9   0.8 477:35.38 kube-apiserver                                
   5567 root      20   0   10.8g  77384  18468 S   4.0   0.1 239:13.02 etcd                                          
3933524 oznt      20   0   20.3g 807036 282204 S   4.0   1.2 220:01.65 firefox-bin                                   
4148154 oznt      20   0 1129.5g 373348 144324 S   3.6   0.6  57:30.49 signal-desktop                                
 890536 oznt      20   0   26.5g 203876 104768 S   3.3   0.3   0:08.10 Isolated Web Co                               
   5049 root      20   0 4464868  79656  27428 S   3.0   0.1 277:46.95 kubelet                       
```

Reproducible: Always

Steps to Reproduce:
1. Add a few cities to the clock applet
2. watch CPU usage
3.


Expected Results:  
Applet does not consume so much CPU

It seems like the applet is trying to connect to some service?
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-21 22:51:30 UTC
Try strace -p 3921555 and see what it's doing?
Comment 2 Larry the Git Cow gentoo-dev 2023-12-21 11:55:44 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e245232a6d9c936ca8502dd562f571f16ae3003

commit 4e245232a6d9c936ca8502dd562f571f16ae3003
Author:     Ian Jordan <immoloism@gmail.com>
AuthorDate: 2023-12-18 02:08:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-21 11:49:39 +0000

    mate-base/mate-panel: add 1.26.4, 1.27.2
    
    Includes fixes for #891641 which needs more testing to close upstream.
    
    Bug: https://bugs.gentoo.org/891641
    Signed-off-by: Ian Jordan <immoloism@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 mate-base/mate-panel/Manifest                 |  2 +
 mate-base/mate-panel/mate-panel-1.26.4.ebuild | 72 ++++++++++++++++++++++++++
 mate-base/mate-panel/mate-panel-1.27.2.ebuild | 73 +++++++++++++++++++++++++++
 3 files changed, 147 insertions(+)
Comment 3 immolo 2023-12-22 20:44:28 UTC
I've tried this with both mate-base/mate-panel-1.26.4 and 1.27.2 by adding 5 locations then leaving it to run for 2 hours. During this time clock-applet has remaining at 0% so the commits that hint at being related to this seemed to have solved it.

Please feel free to reopen if required.