robert7 / nixnote2

Nixnote - Evernote desktop client for Linux
GNU General Public License v3.0
297 stars 32 forks source link

High resources usage (CPU and RAM) #175

Closed vitaly-zdanevich closed 1 year ago

vitaly-zdanevich commented 3 years ago
top - 06:13:52 up  3:01,  1 user,  load average: 6.78, 7.42, 6.72
Tasks: 188 total,   2 running, 186 sleeping,   0 stopped,   0 zombie
%Cpu(s): 26.0 us,  1.8 sy,  0.0 ni, 35.6 id, 36.6 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :   3808.2 total,    129.3 free,   3166.6 used,    512.2 buff/cache
MiB Swap:   2048.0 total,      0.0 free,   2048.0 used.    101.9 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                   
   1155 anna      20   0 7266788   1.5g   7076 R 100.3  40.9  70:27.89 nixnote2                                                                                                  
    615 root      20   0 1072116   6672      0 S   3.5   0.2   0:06.23 snapd                                                                                                     
   7610 anna      20   0  392004  49428  36828 D   3.5   1.3   0:00.20 xfce4-screensho                                                                                           
    105 root      20   0       0      0      0 S   1.6   0.0   0:26.37 kswapd0                                                                                                   
    769 root      20   0  719928  43200  35516 S   0.6   1.1  13:53.07 Xorg                                                                                                      
   1678 anna      20   0 4369868 364952  51924 S   0.6   9.4  17:06.39 firefox                                                                                                   
   1063 anna      20   0  522120   1880     56 S   0.3   0.0   0:08.62 panel-9-pulseau                                                                                           
   1354 anna      20   0  842296  30056   4600 S   0.3   0.8   0:05.00 kitty                                                                                                     
   2768 anna      20   0 3013796 380512  24432 S   0.3   9.8   8:55.37 Web Content                                                                                               
   3996 root      20   0       0      0      0 I   0.3   0.0   0:23.46 kworker/1:0-events                                                                                        
   4098 anna      20   0   26.6g 184952  30920 S   0.3   4.7   1:54.65 Web Content                                                                                               
   6964 anna      20   0 2601604 139352  36860 S   0.3   3.6   0:28.16 Web Content   

And it in memory even after Quit.

This is during first sync after sudo apt install nixnote2 on Xubuntu 21.04. I have ~6000 notes, but sync was on 14%, very slowly downloading the rest notes.

Nixnote version 2.1.6

robert7 commented 3 years ago

I think high CPU usage is normal during initial sync

vitaly-zdanevich commented 3 years ago

Why? Just downloading notes, with indexing.

vitaly-zdanevich commented 1 year ago

Syncing on the current version, fresh install - looks like not a big problem now, because sometimes only one core is used 100%. And I have more RAM now: 16 GB, NixNote eats 25%.