[SOLVED] How does Desktop environment affect performance?

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
bensatlantic

[SOLVED] How does Desktop environment affect performance?

Post by bensatlantic »

I'm running Linux Mint 17.1 with Cinnamon on two machines and it works flawlessly on both of them. But one (Toshiba Satellite) has a slower processor and less RAM and begins to struggle with videos and multiple open browser tabs, etc. I'm trying to improve performance in whatever way I can. I know that KDE (edit - sorry, not KDE, it's resource-heavy) MATE or XFCE desktops are often suggested for older, slower computers - but why does that help? Is it because a 'heavier' desktop environment like Cinnamon tasks the limits of the slower CPU or is it having less RAM that is the problem?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 10 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Joe2Shoe
Level 5
Level 5
Posts: 850
Joined: Wed Oct 18, 2017 8:12 pm
Location: Ozone

Re: How does a Desktop environment affect performance?

Post by Joe2Shoe »

That's probably because the other variants of LM use less overhead.
You can try another variant of LM, or I personally would upgrade the RAM to a minimum 4GB and upgrade the CPU to a minimum 2.20GHz.
I upgraded all 4 of my 10 year old laptops and they work well on LM18.3 Cinnamon 64-bit.
"Tolerance is the refuge of men without conviction."
"Common sense is not so common" - Voltaire
User avatar
jimallyn
Level 19
Level 19
Posts: 9075
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: How does Desktop environment affect performance?

Post by jimallyn »

Both CPU and RAM, actually. I compared RAM usage in XFCE, MATE, and Cinnamon a while back when I installed on a laptop for a friend of mine:

Cinnamon used 730 MB of RAM with no applications running, and 1.1 GB of RAM with Firefox running.

MATE used 514 MB of RAM with no applications running, and 895 MB of RAM with Firefox running.

XFCE used 303 MB of RAM with no applications running, and 680 MB of RAM with Firefox running.

I have not done comparable tests for CPU usage, but my understanding is that you would get similar results for CPU usage. I didn't bother to test KDE because this testing was done on an older, not-so-powerful laptop, and I knew KDE would be too much for it.

I use Cinnamon on my desktop computer with i7 processor and 12 GB of RAM, and XFCE on my old laptop with some puny processor I can't remember, and 2 GB of RAM. I am planning to update my desktop to Mint 18.3 soon, and will probably move it to XFCE at that time. Why use up my RAM and CPU just running the OS and leave less for applications to use?

Use XFCE or MATE.
“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan
User avatar
Schultz
Level 9
Level 9
Posts: 2957
Joined: Thu Feb 25, 2016 8:57 pm

Re: How does a Desktop environment affect performance?

Post by Schultz »

bensatlantic wrote:
I know that KDE or XFCE desktops are often suggested for older, slower computers . . .
That should be Mate and Xfce. KDE is the heaviest of all four.
bensatlantic

[SOLVED] How does Desktop environment affect performance?

Post by bensatlantic »

jimallyn wrote:Both CPU and RAM, actually. I compared RAM usage in XFCE, MATE, and Cinnamon a while back when I installed on a laptop for a friend of mine:

Cinnamon used 730 MB of RAM with no applications running, and 1.1 GB of RAM with Firefox running.

MATE used 514 MB of RAM with no applications running, and 895 MB of RAM with Firefox running.

XFCE used 303 MB of RAM with no applications running, and 680 MB of RAM with Firefox running.

I have not done comparable tests for CPU usage, but my understanding is that you would get similar results for CPU usage. I didn't bother to test KDE because this testing was done on an older, not-so-powerful laptop, and I knew KDE would be too much for it.

I use Cinnamon on my desktop computer with i7 processor and 12 GB of RAM, and XFCE on my old laptop with some puny processor I can't remember, and 2 GB of RAM. I am planning to update my desktop to Mint 18.3 soon, and will probably move it to XFCE at that time. Why use up my RAM and CPU just running the OS and leave less for applications to use?

Use XFCE or MATE.
Thanks - this is what I was after and what I suspected but didn't have the actual data - that it was mostly due to RAM limitation. Good information to know and understand. Thanks again.
bensatlantic

Re: How does a Desktop environment affect performance?

Post by bensatlantic »

Schultz wrote:
bensatlantic wrote:
I know that KDE or XFCE desktops are often suggested for older, slower computers . . .
That should be Mate and Xfce. KDE is the heaviest of all four.
Right, my mistake - - thanks.
Last edited by bensatlantic on Mon Dec 18, 2017 9:50 pm, edited 1 time in total.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: How does a Desktop environment affect performance?

Post by Flemur »

I fiddled with desktops a bit; here are some (IIRC) used memory at boot ("free -m"):
- fluxbox: ~110-150 MB
- xfce: 250-300 MB
- Mate: ??
- Cin: a lot
- KDE: 500+ MB
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Topken

Re: How does a Desktop environment affect performance?

Post by Topken »

The heavier the Desktop Environment the more resources it needs to run think of Windows and how newer versions require newer and thus more powerful hardware and more ram as well. So yeah there are a few lighter DEs that are available such as Mate since its based on Gnome 2 while Cinnomin is based on the newer Gnome 3 and thus requires more resources.
bensatlantic

Re: [SOLVED] How does Desktop environment affect performance?

Post by bensatlantic »

jimallyn wrote: I compared RAM usage in XFCE, MATE, and Cinnamon a while back when I installed on a laptop for a friend of mine:

Cinnamon used 730 MB of RAM with no applications running, and 1.1 GB of RAM with Firefox running.
MATE used 514 MB of RAM with no applications running, and 895 MB of RAM with Firefox running.
XFCE used 303 MB of RAM with no applications running, and 680 MB of RAM with Firefox running.[/quote]

I would like to be able to understand how to run tests to obtain these kinds of measurements - can you please explain how to go about this? Would I use 'top' or 'htop' or VmStat commands to monitor RAM usage of processes in real-time? Or maybe an application like System Monitor? Also how to do the same with CPU measurements. Learning this skill would help me to contribute testing information to Linux forums as you've done. Thanks for your time and help!
Last edited by Moem on Tue Dec 19, 2017 9:35 am, edited 1 time in total.
Reason: Made a quote look like a quote, to make the post easier to understand.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: [SOLVED] How does Desktop environment affect performance?

Post by Flemur »

bensatlantic wrote:I would like to be able to understand how to run tests to obtain these kinds of measurements - can you please explain how to go about this?
I just do

Code: Select all

free -m
which shows free and used memory.

The only mild glitch is the terminal uses some memory, but not much(5-10MB).
fluxbox window manager uses less memory than a terminal.

Using nvidia drivers (vs default) sometimes adds 40MB over default (non-proprietary).
nm-applet uses IIRC 20MB - more than fluxbox.

Anyway, that's how people get slightly different results for a given desktop - other stuff besides the desktop is running.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
bensatlantic

Re: [SOLVED] How does Desktop environment affect performance?

Post by bensatlantic »

I've since discovered Gnome System Monitor which gives real-time information on CPU, RAM and processes. And I've installed LXDE as my desktop to replace Cinnamon and noticed a big difference in the Toshiba Satellite - with Cinnamon, the fan was always running at high speed, even though the CPU didn't struggle. The Toshiba CPU will be near 100% when playing say, an HD video on youtube in Chrome or Firefox - that's a good test of any computer really. With LXDE the fan runs, but at a lower speed - it's very interesting and answered my original question - the desktop really DOES affect how the computer performs. LXDE is a good solution for running Mint 17.1 on my Toshiba. I also want to try Fluxbox.
Locked

Return to “Beginner Questions”