Improve memory usage in Debian

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
User avatar
sickpig
Posts: 589
Joined: 2019-01-23 10:34

Re: Improve memory usage in Debian

#106 Post by sickpig »

the only thing WM does less is provide less confusing menus and options. when i click on firefox a smallish version of its own icon keeps on jumping up and down until the browser is active. ? why. i dont know if its just me but i am experiencing DEs to be sluggish. All actions are ever so slightly slowish.

details about the earlier mentioned error:-
SUMMARY

xdotool script gives error

STEPS TO REPRODUCE
1. create a script like:

Code: Select all

 #! /bin/bash

xdotool key ALT+F4
2. create a launcher in the panel pointing to this script
3. try to close windows by clicking on the launcher - u get error

Code: Select all

KDEInit could not launch '/home/a/close.sh'
the funny thing is the error is displayed after the window is closed. So the xdotool action takes effect, yet the error.

The same launcher btw works flawlessly on xfce panel. M sure there must be a way to make the same work on KDE as well. I just haven't figured it out yet. But i can't work in it as it seems slowish, so cant troubleshoot.

M spoilt by the responsive snappiness of openbox. DEs definitely, not my cup of tea. m back to my comfort blanky of openbox.

User avatar
sickpig
Posts: 589
Joined: 2019-01-23 10:34

Re: Improve memory usage in Debian

#107 Post by sickpig »

i submitted a bug to kde Bug 409879
there seems to be traction on it and since its submission more and more kde folk are getting assigned to it
lets c if there is a resolution

edit
i couldn't find anything in syslog or messages

User avatar
sickpig
Posts: 589
Joined: 2019-01-23 10:34

Re: Improve memory usage in Debian

#108 Post by sickpig »

quick clarification the earlier mentioned error is seen if you add a launcher on the top panel. It works as expected from the bottom panel. weird. nothing in journalctl as well, tried to search for logs to help the people working on the earlier reported bug.

Deb-fan
Posts: 1042
Joined: 2012-08-14 12:27

Re: Improve memory usage in Debian

#109 Post by Deb-fan »

Would start a support thread in the appropriate section of the forums. Asking users familiar with KDE about it. Not a mod nor want to be but this thread became a totally off topic free for all long ago. Not that I didn't contribute my share to it.

Originally brought up user choice of de/wm is relevant to system overhead, it is(again they and the underlying OS can be tweaked as well.) Was never intended as an my wm mama can beat up your DE's mama. That debate is to great degree based on personal preference and end user perception and will rage on until the end of time.
Most powerful FREE tech-support tool on the planet * HERE. *

User avatar
sickpig
Posts: 589
Joined: 2019-01-23 10:34

Re: Improve memory usage in Debian

#110 Post by sickpig »

i agree.
i am not looking for support here though, just thought it would be relevant in case anyone interested wanted to replicate the error.

i also agree once you are invested in a particular DE or WM it becomes quite inconvenient to switch to something else. trust me i know i tried, its damn difficult to switch. After all don't fix until broken right? also WM vs DE is not a fair comparison. DEs win in terms of providing a GUI for all configurations and WM wins in terms of speedd and light memory footprint. Both are winners really.

I was harping on WM considering the post title "Improve memory usage in Debian". But after trying to switch my environment I understand how difficult it is. So i can understand the challenges anyone would potentially face if they try to switch. Anyway my whole point was if you are RAM challenged and can not find the root cause then maybe consider lighter alternatives.

Deb-fan
Posts: 1042
Joined: 2012-08-14 12:27

Re: Improve memory usage in Debian

#111 Post by Deb-fan »

No worries but the place to make people aware of an issue with a given de in the relevant section of the forum with a descriptive title and details of what's involved. In this case some highly familiar KDE user may outright know the what's, why's and or easy solution etc. Of course you're right, someone can't install a given de/wm and think they're going to be proficient in it in a few hours of dorking with it.
Most powerful FREE tech-support tool on the planet * HERE. *

User avatar
Hallvor
Posts: 1190
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 4 times
Been thanked: 2 times

Re: Improve memory usage in Debian

#112 Post by Hallvor »

I did some unofficial benchmarks in KDE Buster. I installed the full metapackage and also installed a couple of plasmoids and redshift.

My hardware on this computer is as follows:

Intel i5-3320M CPU@2.60GHZ
6 GiB RAM
Intel HD3000

Test method: Fresh boot, opened Konsole to test CPU and RAM usage. Waited 30 seconds to read the results.

KDE with Kwin, compositing on: 448 MB RAM, 1% CPU.
KDE with Kwin, compositing off: 425 MB RAM, 0,3% CPU.


Turning compositing off has negligible results on RAM and CPU usage.

I then installed the openbox-kde-session package to replace Kwin with Openbox

KDE with Openbox, compositing on (Compton): 414 MB RAM, 0,6% CPU.
KDE with Openbox, compositing off: 405 MB RAM, 0,5% CPU


The difference between Openbox and Kwin with compositing off were a mere 20 megabytes in RAM usage, while Kwin used slightly less CPU. I'd call it a draw. With compositing on, Openbox with Compton used 34 MB less RAM and slightly less CPU, making it an option for low end computers.

Edit: Disabling compositing plugins in Kwin brought the RAM usage down to 437, while CPU usage remained unchanged.
Lenovo ThinkPad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Bullseye (KDE)
Lenovo ThinkPad X240, Intel Core i5-4300U CPU @ 2.90GHz, 8 GB RAM, 120 GB SSD, Debian Bullseye (KDE)

User avatar
sickpig
Posts: 589
Joined: 2019-01-23 10:34

Re: Improve memory usage in Debian

#113 Post by sickpig »

Thanks Hallvor for the analysis quite helpful. The figures mentioned earlier by me for kwin were from real world testing wherein I actually moved mouse and application windows around as a normal user would in normal computer usage.

Image

Post Reply