Improve memory usage in Debian

New to Debian (Or Linux in general)? Ask your questions here!

Re: Improve memory usage in Debian

Postby Wheelerof4te » 2019-06-23 10:59

PsySc0rpi0n wrote:Isn't any of those apps critical to the system? I mean not even 'systemd', 'kded4', 'dbus eamon', 'gnome-keyring-deamon', etc???

People here most likely think of systemd services. Disabling some of them you don't use might improve your boot time and CPU usage a bit, but any impact on RAM will be negligible.
And if you disable the wrong one, your system can become unstable. I would advise against this. As HoAS said, maybe trying out another browser can improve the situation.
sickpig wrote:or try the below in sysctl.conf

CODE: SELECT ALL
vm.swappiness = 0
vm.vfs_cache_pressure=15

Never reduce swappiness to 0. And I mean, never.
sickpig wrote:I use this https://github.com/oguzhaninan/Stacer/r ... tag/v1.1.0 for managing startup apps, services and much more.

Again, you don't have to do this. Your problem is likely the browser (Chromium).
Wheelerof4te
 
Posts: 1423
Joined: 2015-08-30 20:14

Re: Improve memory usage in Debian

Postby Wheelerof4te » 2019-06-23 11:02

sickpig wrote:dbus is a dependency for systemd, i tried turning it off but my login crashes and i automatically re-login. So i wouldn't touch that.
'systemd', 'kded4', of course you would need..

Suggesting to disable dbus proves you have no idea what you're talking about. Please refrain from advising such things in the future.
Wheelerof4te
 
Posts: 1423
Joined: 2015-08-30 20:14

Re: Improve memory usage in Debian

Postby Hallvor » 2019-06-23 11:03

sickpig wrote:looks beautiful and sleek for sure
but anything which uses above 100mb RAM after boot scares me off


I don't get this obsession of low memory usage on an empty desktop. It really doesn't matter at all, unless you like to stare at it, doing nothing. What matters, if RAM is so precious that you pay for it without wanting to use it, is how much RAM is being used when running the applications you use for your daily tasks.
Last edited by Hallvor on 2019-06-23 11:05, edited 1 time in total.
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 947
Joined: 2009-04-16 18:35
Location: Norway

Re: Improve memory usage in Debian

Postby PsySc0rpi0n » 2019-06-23 11:05

sickpig wrote:no no yes of course they are, am not saying all of them are useless, I meant research which ones can be safely turned off.
There are plenty of guides out there detailing which can be safely turned off.

edit
from the ones u listed i safely turned of gnome-keyring-deamon and it has not interrupted my work flow but i m not using a DE as such so my use case might not be applicable to you. dbus is a dependency for systemd, i tried turning it off but my login crashes and i automatically re-login. So i wouldn't touch that.
'systemd', 'kded4', of course you would need.

If in doubt leave it on.



I have no idea of what apps I could possibly stop. There are so many there. I would have to search each one and try to check if they are critical or not.
Although I'm not using Gnome, there are still some apps there with the name Gnome on it like gnome-keyring-eamon. I also have gpg-agent, so I'm not sure I can remove gnome-keyring-deamon.

I know only that I can stop teamviewerd, MusicManager, proftpd I think I can also remove. But most of the apps, I have no idea!


Edited;
Yeah, I'm not gonna mess much with autostarting apps other the ones I really know.
What I could possibly ask is for help detecting apps, for instance, belonging to Gnome (I used Gnome in the past, so maybe apps got behind when I changed Desktop) that I can uninstall and replace for proper ones belonging to KDE Plasma Desktop.

And yes,Chromium is the coolpritt of this amount of RAM used. I have just added a new add-on to block scripts from being ran an I'll try to manage them an enable only the ones I really need. Because apparently, JS scripts and Java running in our browsers are taking too much RAM too! So I'll give a try on this one for some time!
Last edited by PsySc0rpi0n on 2019-06-23 11:11, edited 1 time in total.
User avatar
PsySc0rpi0n
 
Posts: 117
Joined: 2012-10-24 13:54
Location: Portugal

Re: Improve memory usage in Debian

Postby sickpig » 2019-06-23 11:07

Wheelerof4te wrote:
sickpig wrote:Suggesting to disable dbus proves you have no idea what you're talking about. Please refrain from advising such things in the future.

where did i suggest to disable dbus?
proves u have no idea what you are reading about.
User avatar
sickpig
 
Posts: 317
Joined: 2019-01-23 10:34

Re: Improve memory usage in Debian

Postby Wheelerof4te » 2019-06-23 11:09

Oh sorry, you really didn't. I am truly sorry. But you did turn it off yourself, which is a a big no-no if you want to retain some credibility.
i tried turning it off but my login crashes and i automatically re-login. So i wouldn't touch that.
Wheelerof4te
 
Posts: 1423
Joined: 2015-08-30 20:14

Re: Improve memory usage in Debian

Postby Hallvor » 2019-06-23 11:13

PsySc0rpi0n wrote:
sickpig wrote:no no yes of course they are, am not saying all of them are useless, I meant research which ones can be safely turned off.
There are plenty of guides out there detailing which can be safely turned off.

edit
from the ones u listed i safely turned of gnome-keyring-deamon and it has not interrupted my work flow but i m not using a DE as such so my use case might not be applicable to you. dbus is a dependency for systemd, i tried turning it off but my login crashes and i automatically re-login. So i wouldn't touch that.
'systemd', 'kded4', of course you would need.

If in doubt leave it on.



I have no idea of what apps I could possibly stop. There are so many there. I would have to search each one and try to check if they are critical or not.
Although I'm not using Gnome, there are still some apps there with the name Gnome on it like gnome-keyring-eamon. I also have gpg-agent, so I'm not sure I can remove gnome-keyring-deamon.


Just leave them. The effect on RAM usage is negligible.

Edit: Use KDE applications for KDE, if you can. They will use a lot of shared memory, making very efficient use of resources.
Last edited by Hallvor on 2019-06-23 11:15, edited 1 time in total.
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 947
Joined: 2009-04-16 18:35
Location: Norway

Re: Improve memory usage in Debian

Postby sickpig » 2019-06-23 11:14

Hallvor wrote:I don't get this obsession of low memory usage on an empty desktop. It really doesn't matter at all, unless you like to stare at it, doing nothing. What matters, if RAM is so precious that you pay for it without wanting to use it, is how much RAM is being used when running the applications you use for your daily tasks.


I agree, I have this OCD for having the lowest possible RAM after boot without sacrificing utility. Also, I strive for fastest boot possible. I mean i know few seconds here and there is not going to change much but just another obsession.
User avatar
sickpig
 
Posts: 317
Joined: 2019-01-23 10:34

Re: Improve memory usage in Debian

Postby sickpig » 2019-06-23 11:18

Wheelerof4te wrote:But you did turn it off yourself, which is a a big no-no if you want to retain some credibility.

hahaha i have broken my system many times by thinking ohh this looks imp can i turn it off? thats how i learn, by failing and then recovering not ashamed to admit it :)
User avatar
sickpig
 
Posts: 317
Joined: 2019-01-23 10:34

Re: Improve memory usage in Debian

Postby PsySc0rpi0n » 2019-06-23 12:57

Yeah, me too. I failed too many times, but somehow I don't know why, my learning curve is very very flat! I use Debian for at least 8 years and there are tons of things I can't do on my own.

Anyway, I'll focus on manage the number of tabs open and the scripts running. I'll try to stop a couple of application from starting at boot such as teamviewer which I don't need at all as I use AnyDesk instead!
User avatar
PsySc0rpi0n
 
Posts: 117
Joined: 2012-10-24 13:54
Location: Portugal

Re: Improve memory usage in Debian

Postby theblueplll » 2019-06-25 01:25

Hallvor wrote:
sickpig wrote:looks beautiful and sleek for sure
but anything which uses above 100mb RAM after boot scares me off


I don't get this obsession of low memory usage on an empty desktop. It really doesn't matter at all, unless you like to stare at it, doing nothing. What matters, if RAM is so precious that you pay for it without wanting to use it, is how much RAM is being used when running the applications you use for your daily tasks.


You have a point but I have an older machine with only 4gb of ram and it helps to be at least a little conscious of it.

I did actually notice I had a problem with a lot of cpu usage with kde even with minimal apps running.
So I am testing out Mate which uses a little more ram to start with but doesn't cracnk on my cpu so badly.
theblueplll
 
Posts: 154
Joined: 2019-04-29 01:17

Re: Improve memory usage in Debian

Postby GarryRicketson » 2019-06-25 02:03

You have a point but I have an older machine with only 4gb of ram

I never can understand why people need so much ram, My host machine, only has 2gb, and it is all ways more then enough, on this VM, Debian Buster, using Dillo Browser, 4 tabs open,... 106 mb, I have 963mb and it is more then enough.
Image
Last edited by GarryRicketson on 2019-06-25 02:12, edited 1 time in total.
User avatar
GarryRicketson
 
Posts: 5877
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Improve memory usage in Debian

Postby sickpig » 2019-06-25 02:06

theblueplll wrote:You have a point but I have an older machine with only 4gb of ram and it helps to be at least a little conscious of it.

I did actually notice I had a problem with a lot of cpu usage with kde even with minimal apps running.
So I am testing out Mate which uses a little more ram to start with but doesn't cracnk on my cpu so badly.


TDE as DE is also quite frugal with RAM and CPU usage. When I used it 6 months ago with Debian 9.6 it used less than 220 mb RAM with zero cpu usage on idle after boot. I suppose it is in official repos.
The bottom panel can have stability issues but DE as a whole is quite smooth. I believe it is one of the most resource friendly DEs.
User avatar
sickpig
 
Posts: 317
Joined: 2019-01-23 10:34

Re: Improve memory usage in Debian

Postby Hallvor » 2019-06-25 06:16

theblueplll wrote:
Hallvor wrote:
sickpig wrote:looks beautiful and sleek for sure
but anything which uses above 100mb RAM after boot scares me off


I don't get this obsession of low memory usage on an empty desktop. It really doesn't matter at all, unless you like to stare at it, doing nothing. What matters, if RAM is so precious that you pay for it without wanting to use it, is how much RAM is being used when running the applications you use for your daily tasks.


You have a point but I have an older machine with only 4gb of ram and it helps to be at least a little conscious of it.

I did actually notice I had a problem with a lot of cpu usage with kde even with minimal apps running.
So I am testing out Mate which uses a little more ram to start with but doesn't cracnk on my cpu so badly.


What process was using CPU? On an older computer, I would turn compositing and visual effects down to a minimum. KDE is not that heavy.

https://www.reddit.com/r/linux/comments ... n_updated/

If you want something lighter, try TDE, like sickpig suggested. It should be about as light as LXDE, but with roughly as many options as KDE plasma. I have it on a 2011 netbook with 2 GB of RAM and a horrible processor. It will fly on your system.
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 947
Joined: 2009-04-16 18:35
Location: Norway

Re: Improve memory usage in Debian

Postby Hallvor » 2019-06-25 06:25

sickpig wrote:
theblueplll wrote:You have a point but I have an older machine with only 4gb of ram and it helps to be at least a little conscious of it.

I did actually notice I had a problem with a lot of cpu usage with kde even with minimal apps running.
So I am testing out Mate which uses a little more ram to start with but doesn't cracnk on my cpu so badly.


TDE as DE is also quite frugal with RAM and CPU usage. When I used it 6 months ago with Debian 9.6 it used less than 220 mb RAM with zero cpu usage on idle after boot. I suppose it is in official repos.
The bottom panel can have stability issues but DE as a whole is quite smooth. I believe it is one of the most resource friendly DEs.


No, it is not in the official repositories, but it has its own Debian reposisitory:

https://wiki.trinitydesktop.org/DebianInstall

I have never had problems with the lower panel, but then I haven't tinkered with it much.

Yes, you are right. It is light on boot, but once you start running TDE applications on top of it, the light resource usage is very impressive.
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 947
Joined: 2009-04-16 18:35
Location: Norway

PreviousNext

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable