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

--- Comment #25 from Wachid Adi Nugroho <wachidadinugroho.m...@gmail.com> ---
Created attachment 144354
  --> https://bugs.kde.org/attachment.cgi?id=144354&action=edit
Heaptrack plasmashell with i965 and crocus drivers

I used `ksysguard` and `heaptrack` to monitor memory usage of `plasmashell` for
5 minutes running with two different drivers `i965_dri.so` and `crocus_dri.so`.

Procedure:
- Open `ksysguard`
- End Process of `plasmashell`
- Open `konsole` with Ctrl+Alt+T shortcut, then Spit View or New Tab
- Test with default driver (`i965_dri.so`)
  * `heaptrack /usr/bin/plasmashell`
  * `while true; do notify-send "Test plasmashell memory leaks: $(date)"; sleep
1; done`
  * Stop them Ctrl+C after 5 minutes
- Test with Crocus driver (`crocus_dri.so`)
  * `MESA_LOADER_DRIVER_OVERRIDE=crocus heaptrack /usr/bin/plasmashell`
  * `export MESA_LOADER_DRIVER_OVERRIDE=crocus; while true; do notify-send
"Test plasmashell memory leaks: $(date)"; sleep 1; done`
  * Stop them Ctrl+C after 5 minutes

Monitoring results at `ksysguard` (KDE System Monitor)

| Driver | Begin   | End      |
|--------|---------|----------|
| i965   | 130 MiB | 1145 MiB |
| crocus | 95 MiB  | 360 MiB  |

Heaptrack files
https://drive.google.com/drive/folders/11Z9d0miByLll-XrxcS3Riow3_QY3YOcO

Using the Crocus driver can significantly reduce memory leaks, but memory leaks
still occur.

So I think there needs to be a fix from the GPU drivers and KDE Plasma side.

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

Reply via email to