Jami CPU and power usage

I want to understand how Jami uses CPU resources and power usage.

On my linux laptop with KDE Wayland, running top in Konsole, Jami waiting in the background is the application that frequently requires most CPU, even if I have Kmail, Dolphin file manager and Vivaldi browser open with multiple tabs.

top - 11:27:05 up  2:53,  2 users,  load average: 0,24, 0,15, 0,18
Tasks: 308 total,   1 running, 307 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0,9 us,  0,6 sy,  0,0 ni, 98,5 id,  0,0 wa,  0,0 hi,  0,0 si,  0,0 st 
MiB Mem :  15649,0 total,   5469,2 free,   5560,3 used,   5785,9 buff/cache     
MiB Swap:  23852,5 total,  23852,5 free,      0,0 used.  10088,7 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                                                                   
   1853 pierre    20   0 5663116 978,9m 177592 S   4,6   6,3   5:56.64 /usr/bin/jami                                                                                                                                             
   1671 pierre    20   0 4376828 409828 202016 S   2,3   2,6   3:44.38 /usr/bin/plasmashell --no-respawn                                                                                                                         
   6629 pierre    20   0 1162964 189880 157648 S   2,3   1,2   0:39.77 /usr/bin/konsole                                                                                                                                          
    785 root     -51   0       0      0      0 S   1,0   0,0   1:22.66 [irq/177-iwlwifi]                                                                                                                                         
   1508 pierre    -2   0 2421516 299968 219340 S   1,0   1,9   5:11.57 /usr/bin/kwin_wayland --wayland-fd 7 --socket wayland-0 --xwayland-fd 8 --xwayland-fd 9 --xwayland-display :1 --xwayland-xauthority /run/user/1000/xauth+ 
   2617 pierre    20   0   33,1g 576848 294776 S   0,7   3,6   5:05.51 /opt/vivaldi/vivaldi-bin                                                                                                                                  
   2673 pierre    20   0   33,0g 285360 136272 S   0,3   1,8   8:03.50 /opt/vivaldi/vivaldi-bin --type=gpu-process

Similarly, on my Android phone, when I look at the power consumption, Jami app is the top. These screen captures were taken while I was cycling using Google Maps or Organic Maps with GPS most of the day, while Jami was sleeping in the background (no calls during these days).

Why is Jami such a power hog compared with other network applications?

–
Pierre

1 Like

Yes, Jami is a peer-to-peer software. You should have heard of its introduction. It’s a serverless software, so it must remain online for a long time to receive messages

It does not explain why it uses so much CPU and power resources. I have other network clients like Kmail contacting my own email sever every minute and it doe not exhibit such CPU usage.

On the phone, I can understand that the app is always running while other apps can be sleeping and awaken when coming to front. But in my screenshots, I did not use Jami while I extensively used maps with voice guidance enabled.

Also, there’s a big difference if the Jami window is visible or not. Probably that I’ll need to get a version of Jami with symbols to get more precise stats with perf.

1 Like

Sur notre laptop Linux Mint , au lancement de jami nous devons attendre 5 Ă  10 minutes durant lesquelles il nous est impossible de rejoindre aucune page web sur firefox.

Après ce délai tout rentre dans l’ordre.
Il semblerait que le fait de connecter tous les “noeuds” appareils de nos contacts, monopolise toutes les ressources.

1 Like

It may be Wayland related.

On Cinnamon/X11 its close to ZERO (often is ZERO).

It sounds like you are using the local DHT node mode. How large is the scale of your contacts? Whether used or not, Jami maintains connections with all online devices of your contacts, which consumes quite a bit of resources.

I think I don’t have a big address book, having presently around 30 conversations and probably around 50 contacts. Presently, when looking at the session information in General > Troubleshoot, I see only 3 sessions enabled.
The CPU usage is really variable in top but jami is most frequently the active process. On a PC, the impact is not as important as on a phone where it can drain the battery.

1 Like