[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2022-01-22 Thread Alexander Meshcheryakov
https://bugs.kde.org/show_bug.cgi?id=398908

--- Comment #107 from Alexander Meshcheryakov  ---
Created attachment 145772
  --> https://bugs.kde.org/attachment.cgi?id=145772&action=edit
Dolphin v 21.12.1 running for half a day, leaked about 1 GiB.

I've tried to record heaptrack of running Dolphin v 21.12.1 from Arch linux
repos for half a day. Result is in `heaptrack.dolphin.1030819_19.zst`. Dolphin
leaked about 1GiB of RAM.

I am not quite skilled to analyze this recording. Seems to be caused by
numerous KDirWatch and KBookmarkManager invocations.

Should I re-record heaptrack on dolphin with debug symbols? Will it yield more
useful data?

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2022-01-23 Thread Alexander Meshcheryakov
https://bugs.kde.org/show_bug.cgi?id=398908

--- Comment #108 from Alexander Meshcheryakov  ---
Created attachment 145797
  --> https://bugs.kde.org/attachment.cgi?id=145797&action=edit
Dolphin v 21.12.1 with debug symbols, leaked about half a GiB. Suggests
something is wrong near KBookmarkManager or KDirWatch

I've recorded another heaptrack ( heaptrack.dolphin.1113185_19.zst ), now for
dolphin with debug symbols.

It still suggests something is wrong related to KBookmarkManager or KDirWatch.

Probably this is partially triggered by my large bookmarks file:


$ wc ~/.local/share/user-places.xbel
  8297  10501 251857 /home/self/.local/share/user-places.xbel

Some entries are related to lots tags I have on my files (like `tags:/python`).
Some entries are to long gone sshfs mounts. I probably can figure out something
from here.

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2022-02-01 Thread Méven Car
https://bugs.kde.org/show_bug.cgi?id=398908

--- Comment #109 from Méven Car  ---
(In reply to Alexander Meshcheryakov from comment #108)
> Created attachment 145797 [details]
> Dolphin v 21.12.1 with debug symbols, leaked about half a GiB. Suggests
> something is wrong near KBookmarkManager or KDirWatch
> 
> I've recorded another heaptrack ( heaptrack.dolphin.1113185_19.zst ), now
> for dolphin with debug symbols.
> 
> It still suggests something is wrong related to KBookmarkManager or
> KDirWatch.
> 
> Probably this is partially triggered by my large bookmarks file:
> 
>  
> $ wc ~/.local/share/user-places.xbel
>   8297  10501 251857 /home/self/.local/share/user-places.xbel
>  
> Some entries are related to lots tags I have on my files (like
> `tags:/python`). Some entries are to long gone sshfs mounts. I probably can
> figure out something from here.

It is missing the solid debug symbols it seems, to help further track down the
origin of the over memory allocation.

The heaptrack trace is great clue to fix this, hope you can make a new one with
the solid debug symbols as well.

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2022-02-01 Thread Méven Car
https://bugs.kde.org/show_bug.cgi?id=398908

--- Comment #110 from Méven Car  ---
And kio debug symbols.

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2022-02-01 Thread Méven Car
https://bugs.kde.org/show_bug.cgi?id=398908

--- Comment #111 from Méven Car  ---
Alexander Meshcheryakov, Do you use encrypted devices ?

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2022-02-01 Thread Alexander Meshcheryakov
https://bugs.kde.org/show_bug.cgi?id=398908

--- Comment #112 from Alexander Meshcheryakov  ---
OK, I'll try to record with kio and solid with debug symbols.

I do use encryption. In my setup LVM logical volumes are encrypted with LUKS.

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2022-02-01 Thread Fonic
https://bugs.kde.org/show_bug.cgi?id=398908

Fonic  changed:

   What|Removed |Added

 CC|fonic.max...@live.com   |

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2022-02-01 Thread Michael D
https://bugs.kde.org/show_bug.cgi?id=398908

Michael D  changed:

   What|Removed |Added

 CC|nortex...@gmail.com |

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2022-02-01 Thread Knut Hildebrandt
https://bugs.kde.org/show_bug.cgi?id=398908

--- Comment #113 from Knut Hildebrandt  ---
Here too, my system also is encrypted. All partitions reside in a LUKS
encrypted LVM2 volume. Interestingly, I opened this bug about three months
after encrypting my system. No clue if the problem existed before, but I doubt
it since I would have reported it earlier ;-)

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2022-02-01 Thread Rik Mills
https://bugs.kde.org/show_bug.cgi?id=398908

Rik Mills  changed:

   What|Removed |Added

 CC|rikmi...@kde.org|

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2022-02-01 Thread Méven Car
https://bugs.kde.org/show_bug.cgi?id=398908

--- Comment #114 from Méven Car  ---
(In reply to Alexander Meshcheryakov from comment #112)
> OK, I'll try to record with kio and solid with debug symbols.

Thank you, this should allow to go to the bottom of it for now the traces are
nebulous.

> 
> I do use encryption. In my setup LVM logical volumes are encrypted with LUKS.

I have a suspicion this is part of the bug origin.

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2022-02-02 Thread Alexander Meshcheryakov
https://bugs.kde.org/show_bug.cgi?id=398908

--- Comment #115 from Alexander Meshcheryakov  ---
Created attachment 146198
  --> https://bugs.kde.org/attachment.cgi?id=146198&action=edit
Dolphin v 21.12.1 leaked ~800MB, dolphin, dolphin, kio and solid have debug
symbols

I've recorded one more heaptrack trace "heaptrack.dolphin.1944565_19.zst". Now
with solid and kio debug symbols.

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2021-10-28 Thread Méven Car
https://bugs.kde.org/show_bug.cgi?id=398908

Méven Car  changed:

   What|Removed |Added

 CC||meve...@gmail.com

--- Comment #106 from Méven Car  ---
(In reply to Knut Hildebrandt from comment #103)
> Back with a short summery of my observations.
> 
> 1. with the moment of its start a dolphin instance begins to constantly
> allocate memory
> 2. the amount of memory allocated as well as the CPU time used correlates
> with the number of tabs and views open and grows over time
> 3. the memory allocation does not depend on user interaction. Opening files
> several GB big does not cause any jump in memory usage. On the other hand
> the memory usage increases constantly even without any user interaction at
> all.
> 4. hibernating the machine brings the used memory down to about 20 to 30 MB
> for each instance, but within minutes, sometimes seconds, it is back to the
> level before hibernation and than further rising
> 5. over time and with many dolphins, tabs and views open not only the
> dolphin instances get very slow but the machine too, due to constant swapping
> 
> For me there arise a few questions:
> 
> 1. why does dolphin constantly allocate memory even though there is no user
> interaction?
> 2. what does dolphin need the saved data for, since it obviously works well
> with memory usage far below 100 MB even if there are many tabs open?
> 3. Why once allocated memory never gets freed?
> 
> All the data I mention here I gathered in KSysGuard. I've no idea what tools
> I have to use to collect more useful data.
> 
> One last thing. The original title of the bug report was something like
> "Dolphin uses huge amounts of memory" and has been changed since a potential
> memory leak has been identified. Since this bug was fixed the bug report has
> been closed even though the problem I reported three years ago still exists.
> Thus I'd propose to reopen the bug and change it's title back to the
> original one.

valgrind would be nice to use to check for memory leak.
`valgrind dolphin` would suffice to learn a

Does closing tabs or views release memory?

To some extent dolphin will always use more memories for each tab and views,
since each need an independent KCoreDirLister, that is a cache to read and
access the filesystem and enrich the data, and those will use proportionally
memory as the directory they access are big.
We still have room for optimization for sure.

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2021-08-28 Thread Ahmad Samir
https://bugs.kde.org/show_bug.cgi?id=398908

Ahmad Samir  changed:

   What|Removed |Added

Summary|MimeTypeFinderJob can use   |Dolphin uses up huge
   |huge amounts of memory  |amounts of memory over time
   |reading unnecessary data|
 Resolution|FIXED   |---
 Status|CLOSED  |REOPENED

--- Comment #105 from Ahmad Samir  ---
First step -> reopen.

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2021-08-28 Thread Harald Sitter
https://bugs.kde.org/show_bug.cgi?id=398908

Harald Sitter  changed:

   What|Removed |Added

 CC|sit...@kde.org  |

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2021-08-31 Thread Joseph De Veaugh-Geiss
https://bugs.kde.org/show_bug.cgi?id=398908

Joseph De Veaugh-Geiss  changed:

   What|Removed |Added

 CC||jos...@kde.org
   Keywords||efficiency

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

[frameworks-kio] [Bug 398908] Dolphin uses up huge amounts of memory over time

2021-12-30 Thread Graham Perrin
https://bugs.kde.org/show_bug.cgi?id=398908

Graham Perrin  changed:

   What|Removed |Added

 CC||grahamper...@gmail.com

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