Comparison between DEs - Power Efficiency, Ram Usage, etc -

If none of the more specific forums is the right place to ask

Comparison between DEs - Power Efficiency, Ram Usage, etc -

Postby Kenshin Himura » 2019-12-28 14:27

Good evening Ladies and Gentlemen. I would like to ask you what DEs do you find less "resource hungry"?
Kenshin Himura
 
Posts: 64
Joined: 2019-11-15 21:14

Re: Comparison between DEs - Power Efficiency, Ram Usage, et

Postby Lysander » 2019-12-28 14:44

I have GNOME, Xfce and LXQt on my system. I use GNOME primarily.

GNOME takes the most RAM at a clear desktop after reboot, unsurprisingly, at

Code: Select all
Memory: 742MiB / 5962MiB


Next was LXQt

Code: Select all
Memory: 549MiB / 5962MiB


Finally Xfce

Code: Select all
Memory: 502MiB / 5962MiB


Xfce is a great low-resource choice which also looks good and gives the user a lot of functionality.

I can't speak for window managers like Fluxbox since I don't use them.
User avatar
Lysander
 
Posts: 593
Joined: 2017-02-23 10:07
Location: London

Re: Comparison between DEs - Power Efficiency, Ram Usage, et

Postby Head_on_a_Stick » 2019-12-28 14:56

I've managed to tame my GNOME desktop by masking lots of unwanted services:
Code: Select all
empty@E485:~/git/ps_mem $ sudo ./ps_mem.py
 Private  +   Shared  =  RAM used       Program
308.0 KiB +  81.5 KiB = 389.5 KiB       cron
352.0 KiB +  84.5 KiB = 436.5 KiB       rtkit-daemon
716.0 KiB +  45.5 KiB = 761.5 KiB       mksh
652.0 KiB + 158.5 KiB = 810.5 KiB       gdm-wayland-session
696.0 KiB + 175.5 KiB = 871.5 KiB       gsd-screensaver-proxy
740.0 KiB + 212.5 KiB = 952.5 KiB       gsd-a11y-settings
776.0 KiB + 199.5 KiB = 975.5 KiB       gsd-mouse
840.0 KiB + 188.5 KiB =   1.0 MiB       gsd-rfkill
  1.0 MiB + 155.5 KiB =   1.2 MiB       gsd-disk-utility-notify
  1.0 MiB + 133.5 KiB =   1.2 MiB       dconf-service
  1.0 MiB + 229.5 KiB =   1.2 MiB       sudo
996.0 KiB + 320.5 KiB =   1.3 MiB       gsd-housekeeping
960.0 KiB + 563.5 KiB =   1.5 MiB       alsactl
996.0 KiB + 668.5 KiB =   1.6 MiB       systemd-timesyncd
  1.2 MiB + 440.5 KiB =   1.7 MiB       gsd-sound
  1.5 MiB + 209.5 KiB =   1.7 MiB       accounts-daemon
  1.5 MiB + 384.5 KiB =   1.9 MiB       gdm3
  1.2 MiB + 721.5 KiB =   2.0 MiB       systemd-logind
  1.3 MiB + 780.5 KiB =   2.1 MiB       gsd-sharing
  1.9 MiB + 270.5 KiB =   2.2 MiB       systemd-udevd
  1.8 MiB + 566.5 KiB =   2.3 MiB       realmd
  1.7 MiB + 764.5 KiB =   2.4 MiB       gsd-print-notifications
  2.4 MiB + 234.5 KiB =   2.6 MiB       polkitd
  2.4 MiB + 184.5 KiB =   2.6 MiB       iwd
  2.2 MiB + 556.0 KiB =   2.8 MiB       dbus-daemon (2)
  2.4 MiB + 580.5 KiB =   2.9 MiB       upowerd
  2.4 MiB + 545.5 KiB =   3.0 MiB       gnome-keyring-daemon
  2.0 MiB +   1.1 MiB =   3.0 MiB       gsd-printer
  3.2 MiB + 466.5 KiB =   3.6 MiB       gdm-session-worker
  2.8 MiB + 878.5 KiB =   3.7 MiB       gnome-session-binary
  3.6 MiB + 651.5 KiB =   4.2 MiB       systemd-journald
  5.3 MiB + 394.5 KiB =   5.7 MiB       gsd-smartcard
  5.7 MiB + 796.5 KiB =   6.5 MiB       colord
  3.9 MiB +   4.0 MiB =   7.9 MiB       systemd (3)
  7.9 MiB +   1.2 MiB =   9.1 MiB       xterm
  8.0 MiB +   2.2 MiB =  10.2 MiB       gsd-datetime
 12.2 MiB +   1.9 MiB =  14.1 MiB       pulseaudio
 12.8 MiB +   4.8 MiB =  17.7 MiB       gsd-clipboard
 13.1 MiB +   4.8 MiB =  17.9 MiB       gsd-keyboard
 13.8 MiB +   5.3 MiB =  19.1 MiB       gsd-media-keys
 13.9 MiB +   5.3 MiB =  19.2 MiB       gsd-color
 15.4 MiB +   5.1 MiB =  20.5 MiB       gsd-power
 15.6 MiB +   5.0 MiB =  20.6 MiB       gsd-wacom
 15.4 MiB +   5.5 MiB =  20.9 MiB       gsd-xsettings
 27.1 MiB +   7.4 MiB =  34.4 MiB       Xwayland
111.2 MiB +  12.9 MiB = 124.1 MiB       gnome-shell
---------------------------------
                        406.5 MiB
=================================
empty@E485:~/git/ps_mem $

406MiB sounds like a lot but this machine has 16GiB and the kernel isn't shy about using it. Openbox/Tint2 uses about the same and the stock Xfce desktop uses more.

EDIT: but then my old dwm desktop was under 100MiB...
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Comparison between DEs - Power Efficiency, Ram Usage, et

Postby shep » 2019-12-28 14:58

https://wiki.debian.org/DesktopEnvironment

LXDE (GTK2) is probably the lightest.

XFCE4 (GTK2 in Buster) and Mate (GTK3) would be next

Gnome3/KDE plasma would bring up the end.

Some Linux reviewers measure power usage/battery life.

https://www.dedoimedo.com/linux.html.

I run OpenBox, tint2 and my own build of jgmenu. With xdm, cups and mpd daemons running, I have the following at idle
Code: Select all
Tasks: 142 total,   1 running, 141 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  1.6 sy,  0.0 ni, 98.4 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :  14034.3 total,  13041.2 free,    298.2 used,    694.9 buff/cache
MiB Swap:  14283.0 total,  14283.0 free,      0.0 used.  13455.7 avail Mem
Last edited by shep on 2019-12-28 15:30, edited 3 times in total.
shep
 
Posts: 353
Joined: 2011-03-15 15:22

Re: Comparison between DEs - Power Efficiency, Ram Usage, et

Postby Kenshin Himura » 2019-12-28 14:59

Lysander wrote:I have GNOME, Xfce and LXQt on my system. I use GNOME primarily.

GNOME takes the most RAM at a clear desktop after reboot, unsurprisingly, at

Code: Select all
Memory: 742MiB / 5962MiB


Next was LXQt

Code: Select all
Memory: 549MiB / 5962MiB


Finally Xfce

Code: Select all
Memory: 502MiB / 5962MiB


Xfce is a great low-resource choice which also looks good and gives the user a lot of functionality.

I can't speak for window managers like Fluxbox since I don't use them.


Thanks for feedback :D
Kenshin Himura
 
Posts: 64
Joined: 2019-11-15 21:14

Re: Comparison between DEs - Power Efficiency, Ram Usage, et

Postby Kenshin Himura » 2019-12-28 15:00

Head_on_a_Stick wrote:I've managed to tame my GNOME desktop by masking lots of unwanted services:
Code: Select all
empty@E485:~/git/ps_mem $ sudo ./ps_mem.py
 Private  +   Shared  =  RAM used       Program
308.0 KiB +  81.5 KiB = 389.5 KiB       cron
352.0 KiB +  84.5 KiB = 436.5 KiB       rtkit-daemon
716.0 KiB +  45.5 KiB = 761.5 KiB       mksh
652.0 KiB + 158.5 KiB = 810.5 KiB       gdm-wayland-session
696.0 KiB + 175.5 KiB = 871.5 KiB       gsd-screensaver-proxy
740.0 KiB + 212.5 KiB = 952.5 KiB       gsd-a11y-settings
776.0 KiB + 199.5 KiB = 975.5 KiB       gsd-mouse
840.0 KiB + 188.5 KiB =   1.0 MiB       gsd-rfkill
  1.0 MiB + 155.5 KiB =   1.2 MiB       gsd-disk-utility-notify
  1.0 MiB + 133.5 KiB =   1.2 MiB       dconf-service
  1.0 MiB + 229.5 KiB =   1.2 MiB       sudo
996.0 KiB + 320.5 KiB =   1.3 MiB       gsd-housekeeping
960.0 KiB + 563.5 KiB =   1.5 MiB       alsactl
996.0 KiB + 668.5 KiB =   1.6 MiB       systemd-timesyncd
  1.2 MiB + 440.5 KiB =   1.7 MiB       gsd-sound
  1.5 MiB + 209.5 KiB =   1.7 MiB       accounts-daemon
  1.5 MiB + 384.5 KiB =   1.9 MiB       gdm3
  1.2 MiB + 721.5 KiB =   2.0 MiB       systemd-logind
  1.3 MiB + 780.5 KiB =   2.1 MiB       gsd-sharing
  1.9 MiB + 270.5 KiB =   2.2 MiB       systemd-udevd
  1.8 MiB + 566.5 KiB =   2.3 MiB       realmd
  1.7 MiB + 764.5 KiB =   2.4 MiB       gsd-print-notifications
  2.4 MiB + 234.5 KiB =   2.6 MiB       polkitd
  2.4 MiB + 184.5 KiB =   2.6 MiB       iwd
  2.2 MiB + 556.0 KiB =   2.8 MiB       dbus-daemon (2)
  2.4 MiB + 580.5 KiB =   2.9 MiB       upowerd
  2.4 MiB + 545.5 KiB =   3.0 MiB       gnome-keyring-daemon
  2.0 MiB +   1.1 MiB =   3.0 MiB       gsd-printer
  3.2 MiB + 466.5 KiB =   3.6 MiB       gdm-session-worker
  2.8 MiB + 878.5 KiB =   3.7 MiB       gnome-session-binary
  3.6 MiB + 651.5 KiB =   4.2 MiB       systemd-journald
  5.3 MiB + 394.5 KiB =   5.7 MiB       gsd-smartcard
  5.7 MiB + 796.5 KiB =   6.5 MiB       colord
  3.9 MiB +   4.0 MiB =   7.9 MiB       systemd (3)
  7.9 MiB +   1.2 MiB =   9.1 MiB       xterm
  8.0 MiB +   2.2 MiB =  10.2 MiB       gsd-datetime
 12.2 MiB +   1.9 MiB =  14.1 MiB       pulseaudio
 12.8 MiB +   4.8 MiB =  17.7 MiB       gsd-clipboard
 13.1 MiB +   4.8 MiB =  17.9 MiB       gsd-keyboard
 13.8 MiB +   5.3 MiB =  19.1 MiB       gsd-media-keys
 13.9 MiB +   5.3 MiB =  19.2 MiB       gsd-color
 15.4 MiB +   5.1 MiB =  20.5 MiB       gsd-power
 15.6 MiB +   5.0 MiB =  20.6 MiB       gsd-wacom
 15.4 MiB +   5.5 MiB =  20.9 MiB       gsd-xsettings
 27.1 MiB +   7.4 MiB =  34.4 MiB       Xwayland
111.2 MiB +  12.9 MiB = 124.1 MiB       gnome-shell
---------------------------------
                        406.5 MiB
=================================
empty@E485:~/git/ps_mem $

406MiB sounds like a lot but this machine has 16GiB and the kernel isn't shy about using it. Openbox/Tint2 uses about the same and the stock Xfce desktop uses more.

EDIT: but then my old dwm desktop was under 100MiB...


Are you gonna share a guide do this Comrade?
Kenshin Himura
 
Posts: 64
Joined: 2019-11-15 21:14

Re: Comparison between DEs - Power Efficiency, Ram Usage, et

Postby Kenshin Himura » 2019-12-28 15:00

shep wrote:https://wiki.debian.org/DesktopEnvironment

LXDE (GTK2) is probably the lightest.

XFCE4 (GTK2 in Buster) and Mate (GTK3) would be next

Gnome3/KDE plasma would bring up the end.

Some Linux reviewers measure power usage/battery life.

https://www.dedoimedo.com/linux.html


Thanks for answering <3
Kenshin Himura
 
Posts: 64
Joined: 2019-11-15 21:14

Re: Comparison between DEs - Power Efficiency, Ram Usage, et

Postby arochester » 2019-12-28 15:05

There is a good diagram here: https://l3net.wordpress.com/2013/03/17/ ... -desktops/

Scroll down to the end.

A bit dated, but still useful.
arochester
 
Posts: 1599
Joined: 2010-12-07 19:55

Re: Comparison between DEs - Power Efficiency, Ram Usage, et

Postby Kenshin Himura » 2019-12-28 15:08

arochester wrote:There is a good diagram here: https://l3net.wordpress.com/2013/03/17/ ... -desktops/

Scroll down to the end.

A bit dated, but still useful.


Thank you Friend <3
Kenshin Himura
 
Posts: 64
Joined: 2019-11-15 21:14

Re: Comparison between DEs - Power Efficiency, Ram Usage, et

Postby Head_on_a_Stick » 2019-12-28 15:19

Kenshin Himura wrote:Are you gonna share a guide do this Comrade?

Use
Code: Select all
systemd-cgls

To show a tree of the running systemd services. It will show some listed under "user@1000.service" (1000 is my user's GID) — those are user services and include memory hogs like gvfs. They will continue to run even if all the management options that might activate these programs are disabled.

Disable any unwanted user services permanently and prevent them from being started by any other process with
Code: Select all
systemctl --user disable --now $service
systemctl --user mask $service

Replace $service with the actual name of the unit file to be killed, the .service suffix is assumed and so does not need to be added.
Last edited by Head_on_a_Stick on 2019-12-28 15:22, edited 1 time in total.
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Comparison between DEs - Power Efficiency, Ram Usage, et

Postby Kenshin Himura » 2019-12-28 15:22

Head_on_a_Stick wrote:
Kenshin Himura wrote:Are you gonna share a guide do this Comrade?

Use
Code: Select all
systemd-cgls

To show a tree of the running systemd services. It will show some listed under "user@1000" (1000 is my user's GID) — those are user services and include memory hogs like gvfs. They will continue to run even if all the management options that might activate these programs are disabled.

Disable any unwanted user services permanently and prevent them from being started by any other process with
Code: Select all
systemctl --user disable --now $service
systemctl --user mask $service

Replace $service with the actual name of the unit file to be killed, the .service suffix is assumed and so does not need to be added.


Show I assume that in order to reach your ram usage I should disable everything except those you are showing us?
Kenshin Himura
 
Posts: 64
Joined: 2019-11-15 21:14

Re: Comparison between DEs - Power Efficiency, Ram Usage, et

Postby Head_on_a_Stick » 2019-12-28 15:23

No, just disable the things you don't want. Think about it and use some judgement. The functionality of my desktop has been reduced by these changes but I don't want to use the extra bells & whistles anyway.

EDIT: and please stop full-quoting unnecessarily, it reduces the readability of the thread.
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Comparison between DEs - Power Efficiency, Ram Usage, et

Postby Kenshin Himura » 2019-12-28 15:51

OK about the quoting. But as for the thread thing I can't know what to disable cause I'm noob at Linux, that's why I asked you.
Kenshin Himura
 
Posts: 64
Joined: 2019-11-15 21:14

Re: Comparison between DEs - Power Efficiency, Ram Usage, et

Postby Head_on_a_Stick » 2019-12-28 16:05

Kenshin Himura wrote:I can't know what to disable cause I'm noob at Linux

Well consider this an excellent learning opportunity then.

Find out what the services do with
Code: Select all
systemctl --user cat $service

Look for the "ExecStart=" line(s), these will have the command run by the service.

Once you have that then read
Code: Select all
man man

To find out how to access the manual for the programs, that will show what they do.

Pro tip: kill gvfs with fire.
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Comparison between DEs - Power Efficiency, Ram Usage, et

Postby Hallvor » 2019-12-28 17:39

Asking for real benchmarks would be preferable, IMHO.

Having said that, TDE with TDE applications should be extremely frugal. Very light and tons of features.

https://www.trinitydesktop.org/
https://www.youtube.com/watch?v=8OYHRvPL9JU

Don't get fooled by resource usage on a clean desktop. Even KDE Plasma shines in efficiency once you start running (KDE) applications on it.

https://www.forbes.com/sites/jasonevang ... e2306826d2
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 988
Joined: 2009-04-16 18:35
Location: Norway

Next

Return to General Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable