On 11/05/2020 13.26, Carlos E. R. wrote:
On 11/05/2020 12.41, Per Jessen wrote:
Carlos E. R. wrote:
My own TB :
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9381 per 20 0 3911224 479812 55616 S 0.000 11.90 205:57.21 thunderbird-bin
(4 IMAP accounts).
Any chance the memory usage might be dependent on the setup - IMAP or POP accounts, indexing etc ?
Will it not simply go into swaping? You have to tell top to also display swap.
Try it. In my case above, 0 swap in use.
I did try it a month or two ago, and it was not better. It began to swap earlier.
If David is right in his theory that TB basically uses available memory, and that for machines with large amounts of memory this becomes a problem, cgroups ought to fix it.
I will try again.
The process was (retrieved from bash_history; I can't locate the email): cd /sys/fs/cgroup/memory mkdir thunderbird cd thunderbird echo 1G >memory.limit_in_bytes pidof thunderbird-bin >cgroup.procs cat memory.usage_in_bytes cat memory.max_usage_in_bytes cat memory.limit_in_bytes cat memory.usage_in_bytes memory.max_usage_in_bytes memory.limit_in_bytes cat cgroup.procs cat cgroup.procs cat tasks cat memory.usage_in_bytes memory.max_usage_in_bytes memory.limit_in_bytes cat cgroup.procs ls memor* cat memory.pressure_level cat memory.stat cat memory.swappiness Ie: Telcontar:~ # cd /sys/fs/cgroup/memory Telcontar:/sys/fs/cgroup/memory # mkdir thunderbird Telcontar:/sys/fs/cgroup/memory # cd thunderbird Telcontar:/sys/fs/cgroup/memory/thunderbird # echo 2G >memory.limit_in_bytes Telcontar:/sys/fs/cgroup/memory/thunderbird # pidof thunderbird-bin >cgroup.procs Telcontar:/sys/fs/cgroup/memory/thunderbird # cat memory.usage_in_bytes 163840 Telcontar:/sys/fs/cgroup/memory/thunderbird # cat memory.max_usage_in_bytes 442368 Telcontar:/sys/fs/cgroup/memory/thunderbird # cat memory.limit_in_bytes 2147483648 Telcontar:/sys/fs/cgroup/memory/thunderbird # cat memory.usage_in_bytes memory.max_usage_in_bytes memory.limit_in_bytes 521936896 932331520 2147483648 Telcontar:/sys/fs/cgroup/memory/thunderbird # cat cgroup.procs 5234 Telcontar:/sys/fs/cgroup/memory/thunderbird # cat memory.usage_in_bytes memory.max_usage_in_bytes memory.limit_in_bytes 521895936 932331520 2147483648 Telcontar:/sys/fs/cgroup/memory/thunderbird # cat memory.pressure_level cat: memory.pressure_level: Invalid argument Telcontar:/sys/fs/cgroup/memory/thunderbird # cat memory.stat cache 573440 rss 520839168 rss_huge 67108864 shmem 532480 mapped_file 532480 dirty 0 writeback 0 pgpgin 200866 pgpgout 89920 pgfault 201918 pgmajfault 0 inactive_anon 532480 active_anon 520810496 inactive_file 36864 active_file 4096 unevictable 0 hierarchical_memory_limit 2147483648 total_cache 573440 total_rss 520839168 total_rss_huge 67108864 total_shmem 532480 total_mapped_file 532480 total_dirty 0 total_writeback 0 total_pgpgin 200866 total_pgpgout 89920 total_pgfault 201918 total_pgmajfault 0 total_inactive_anon 532480 total_active_anon 520810496 total_inactive_file 36864 total_active_file 4096 total_unevictable 0 Telcontar:/sys/fs/cgroup/memory/thunderbird # cat memory.swappiness 60 Telcontar:/sys/fs/cgroup/memory/thunderbird # Thunderbird remains using 4 GB of memory nonetheless. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)