https://bugs.kde.org/show_bug.cgi?id=361521

--- Comment #7 from Chris Samuel <k...@csamuel.org> ---
Using KSysGuard you can get a full breakdown of the mappings, it turns out for
me I see 5GB is used mapping in my Baloo index file (which is just 420MB in
size), another 2GB is anonymous mapping and then you've got 263MB for the heap.

Address Perm    Size ▴  Rss     Pss     Shared Clean    Shared Dirty    Private
Clean   Private Dirty   Referenced      Anonymous       AnonHugePages  
ShmemPmdMapped  Shared Hugetlb  Private Hugetlb Swap    SwapPss Locked 
Filename
7feebe4ee000-7feffe4ee000       r--s    5242880 KB      2708 KB 1239 KB 2700 KB
0 KB    8 KB    0 KB    2704 KB 0 KB    0 KB    0 KB    0 KB    0 KB    0 KB   
0 KB    0 KB    /home/chris/.local/share/baloo/index
7ff0a0000000-7ff120000000       rwxp    2097152 KB      2048 KB 2048 KB 0 KB   
0 KB    0 KB    2048 KB 0 KB    2048 KB 0 KB    0 KB    0 KB    0 KB    0 KB   
0 KB    0 KB    
55ffc0e7c000-55ffd0fd3000       rw-p    263516 KB       249024 KB       249024
KB       0 KB    0 KB    0 KB    249024 KB       235092 KB       249024 KB     
 180224 KB       0 KB    0 KB    0 KB    0 KB    0 KB    0 KB    [heap]

$ du -sh /home/chris/.local/share/baloo/index
420M    /home/chris/.local/share/baloo/index

That's not a sparse file either:

$ ls -lsh /home/chris/.local/share/baloo/index
420M -rw-rw-r-- 1 chris chris 420M Aug 17 22:43
/home/chris/.local/share/baloo/index

Do you see the same?

Here's the summary from KSysGuard for plasmashell in case it is of use:

Process 2344 - plasmashell

Summary

The process plasmashell (with pid 2344) is using approximately 458.4 MB of
memory.
It is using 447.9 MB privately, and a further 58.3 MB that is, or could be,
shared with other programs.
Dividing up the shared memory between all the processes sharing that memory we
get a reduced shared memory usage of 10.5 MB. Adding that to the private usage,
we get the above mentioned total memory footprint of 458.4 MB.

Library Usage

The memory usage of a process is found by adding up the memory usage of each of
its libraries, plus the process's own heap, stack and any other mappings, plus
the stack of its 24 threads. 

Private
435100 KB       [heap]
12028 KB        /drm mm object (deleted)
732 KB  /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5.6.1
680 KB  /home/chris/.cache/plasma_theme_default_v5.25.kcache
364 KB  /usr/bin/plasmashell
[more]

Shared
7640 KB /home/chris/.cache/ksycoca5_en-AU_nRYZdPhro8LuwAG9USlBRsk3F3s=
3696 KB /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
3396 KB /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.6.1
3264 KB /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.6.1
2700 KB /home/chris/.local/share/baloo/index
[more]

Totals

Private 458676 KB       (= 6272 KB clean + 452404 KB dirty)
Shared  59656 KB        (= 59052 KB clean + 604 KB dirty)
Rss     518332 KB       (= Private + Shared)
Pss     469394 KB       (= Private + Shared/Number of Processes)
Swap    0 KB

All the best,
Chris

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to