Closed kancolle386 closed 1 year ago
Not going to close this yet, but I'll link some commits that should greatly reduce overhead when checking updates.
https://github.com/linuxmint/mintcommon/commit/d845884248214d05b7f93c344868ec386ee82436 https://github.com/linuxmint/mintupdate/commit/eef74ad7b5206e17b3559ef92cab86c1f5825d70 https://github.com/linuxmint/cinnamon/commit/108b77756b64620241f842622231a3412f6eeb28
It's all in the repositories now.
mintupdate still hogs too much RAM with updates applied and a reboot:
Confirmed
Disabling flatpak support drops RAM usage to couple MBs
A very short profiling session led to somewhere in flatpakUpdater.py and then probably to mintcommon.
I have recievied mintUpdate 5.9.3 and tested it.
$ top -b -p80207 -e m -n 1
top - 09:13:32 up 1 day, 22:58, 1 user, load average: 0.72, 0.77, 0.65
Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.7 us, 0.8 sy, 0.0 ni, 97.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 15923.0 total, 6475.0 free, 3457.2 used, 5990.8 buff/cache
MiB Swap: 2048.0 total, 2048.0 free, 0.0 used. 12086.1 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
80207 kancoll+ 20 0 1204.0m 499.1m 65.0m S 0.0 3.1 0:09.31 mintUpdate
$ top -b -p80207 -e m -n 1
top - 09:46:06 up 1 day, 23:31, 1 user, load average: 0.32, 0.48, 0.76
Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.6 us, 0.8 sy, 0.0 ni, 97.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 15923.0 total, 5321.0 free, 4543.5 used, 6058.5 buff/cache
MiB Swap: 2048.0 total, 2048.0 free, 0.0 used. 10972.6 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
80207 kancoll+ 20 0 1293.9m 598.8m 65.4m S 0.0 3.8 0:19.39 mintUpdate
$ top -b -p80207 -e m -n 1
top - 09:47:11 up 1 day, 23:32, 1 user, load average: 0.17, 0.40, 0.71
Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie
%Cpu(s): 2.5 us, 0.0 sy, 0.0 ni, 97.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 15923.0 total, 5293.3 free, 4566.6 used, 6063.1 buff/cache
MiB Swap: 2048.0 total, 2048.0 free, 0.0 used. 10947.1 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
80207 kancoll+ 20 0 1294.9m 636.9m 65.4m S 0.0 4.0 0:22.78 mintUpdate
Fixed in mintupdate 5.9.4
I noticed high memory use of mintUpdate, and CPU use in "Refresh" operation.
Here is the documentations. PID of mintUpdate is 5810.
System Monitor indicates memory use of mintUpdate is 1GB
Memory map of mintUpdate(sorted by "VM size" descending, not all)
Open files of mintUpdate(sorted by "Object", it's all)
output of top command, from start to end of "Refresh" operation peak value of %CPU is 319.7% (line 80) top.mintupdate.txt