Improve memory usage in Debian

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

Re: Improve memory usage in Debian

Postby PsySc0rpi0n » 2019-06-26 19: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.


It's not that the point. I on't want to have 16Gb of RAM and force my OS and apps to use as low memory as possible. It becomes an issue when you're pretty much sure that your OS and apps are using too much memory without reason. Like when something is wrong!
I don't mind to have 15 tabs open on chrome, using Atom (text editor), Gimp while I listen to music with VLC and speaking to people on Discord, Telegram and Skpe and RAM is at 95% or more... That's reasonable. What it is not reasonable is when you have only the same 15 tabs open and not much more and you have like 85% or 90% of RAM used. That's not reasonable to me and probably something is wrong. Some hanged up app or some process using too much CPU and/or RAM without you knowing!
User avatar
PsySc0rpi0n
 
Posts: 115
Joined: 2012-10-24 13:54
Location: Portugal

Re: Improve memory usage in Debian

Postby Hallvor » 2019-06-26 21:25

My post was not directed at you.
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 946
Joined: 2009-04-16 18:35
Location: Norway

Re: Improve memory usage in Debian

Postby oswaldkelso » 2019-06-26 23:27

PsySc0rpi0n 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.


It's not that the point. I on't want to have 16Gb of RAM and force my OS and apps to use as low memory as possible. It becomes an issue when you're pretty much sure that your OS and apps are using too much memory without reason. Like when something is wrong!
I don't mind to have 15 tabs open on chrome, using Atom (text editor), Gimp while I listen to music with VLC and speaking to people on Discord, Telegram and Skpe and RAM is at 95% or more... That's reasonable. What it is not reasonable is when you have only the same 15 tabs open and not much more and you have like 85% or 90% of RAM used. That's not reasonable to me and probably something is wrong. Some hanged up app or some process using too much CPU and/or RAM without you knowing!


On this system I have 3GB of memory. I don't run the same applications or Debian but a similar load as you. 26 tabs in the browser, MPV playing a film inkscape and gimp with files open, transmission, Rox, pidgin, 2 libre-office files open a doc and a spreadsheet, wicd and mail, tor, and chat.

3.6 MiB + 1.1 MiB = 4.7 MiB tint2 (2)
4.0 MiB + 865.5 KiB = 4.9 MiB notification-daemon
4.9 MiB + 467.0 KiB = 5.3 MiB wicd
5.9 MiB + 1.3 MiB = 7.3 MiB transmission-gtk
7.0 MiB + 879.5 KiB = 7.9 MiB ROX-Filer
8.0 MiB + 471.5 KiB = 8.5 MiB bash (3)
7.2 MiB + 1.4 MiB = 8.6 MiB leafpad (2)
10.7 MiB + 1.6 MiB = 12.3 MiB wicd-client
12.5 MiB + 73.5 KiB = 12.5 MiB nscd
13.1 MiB + 1.4 MiB = 14.5 MiB pidgin
14.7 MiB + 1.6 MiB = 16.3 MiB claws-mail
21.6 MiB + 3.3 MiB = 24.9 MiB mumble
37.2 MiB + 361.0 KiB = 37.5 MiB tor
16.9 MiB + 29.4 MiB = 46.3 MiB Xorg
52.4 MiB + 1.8 MiB = 54.2 MiB mpv
72.9 MiB + 1.8 MiB = 74.7 MiB inkscape
82.2 MiB + 1.3 MiB = 83.5 MiB soffice.bin
237.2 MiB + 1.6 MiB = 238.8 MiB gimp-2.6
680.1 MiB + 26.3 MiB = 706.5 MiB seamonkey
---------------------------------
1.4 GiB
=================================
bash-4.3#

Now my system is old and 32bit but I would expect you to be able to run the same with 64bit applications with newer versions with 3gb of ram. If not you must be running some serious bugs or bloat somewhere. Having 16 gb of ram to run those application is obscene even allowing for "you have it I'll use it." of the kernel.

Maybe you need to review your software choice and buy a samsung nc 10. That will make you think about what effects your performance. in a way that improves it. Then when you run that system with 16gb of ram it will friggin fly

All software has a bang for buck ratio.. Some are worth the hit others deserve to die
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
User avatar
oswaldkelso
 
Posts: 1184
Joined: 2005-07-26 23:20
Location: UK

Re: Improve memory usage in Debian

Postby sickpig » 2019-06-27 05:20

oswaldkelso, i dont suppose u r running a DE
or electron apps(the worse RAM magnets)

no doubt something is wrong in OP's kde system, the question is what?

16gb RAM is such a luxury, i have 3 laptops their combined total does not equal 16gb RAM
User avatar
sickpig
 
Posts: 317
Joined: 2019-01-23 10:34

Re: Improve memory usage in Debian

Postby Hallvor » 2019-06-27 07:11

It is not that hard to identify the culprit. I'll suggest the OP runs all his usual suspects and monitor their resource usage closely. Once the culprit(s) is/are found, uninstall them and look for options.
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 946
Joined: 2009-04-16 18:35
Location: Norway

Re: Improve memory usage in Debian

Postby sickpig » 2019-06-27 07:39

@Hallvor
thats not helpful at all
OP needs to know how to identify and prevent the high RAM using activities. My suggestion is to skip DE and if thats not palatable then use TDE which is quite frugal in terms of RAM usage.
U r saying KDE is not resource hungry at all but OP is using KDE then why are they having this issue?
User avatar
sickpig
 
Posts: 317
Joined: 2019-01-23 10:34

Re: Improve memory usage in Debian

Postby Wheelerof4te » 2019-06-27 14:21

^You are being vocal about ditching KDE, but I have yet to understand why. OP has 16 GB of RAM, that should be enough to run any DE.
His problem lies elsewhere.
Wheelerof4te
 
Posts: 1423
Joined: 2015-08-30 20:14

Re: Improve memory usage in Debian

Postby Hallvor » 2019-06-27 14:42

sickpig wrote:@Hallvor
thats not helpful at all
OP needs to know how to identify and prevent the high RAM using activities. My suggestion is to skip DE and if thats not palatable then use TDE which is quite frugal in terms of RAM usage.
U r saying KDE is not resource hungry at all but OP is using KDE then why are they having this issue?


Please learn the difference between correlation and causality.

Secondly, changing desktop environment is quite a job. Giving advice in that direction for no good reason, is horrible advice.

Thirdly, KDE is not that resource hungry. In a real use example (Web browser, file manager and terminal), Debian 9 with KDE clocked in at 5th place out of 20, a mere 96 MB behind Debian XFCE - with maybe twice the configurability.

https://www.reddit.com/r/linux/comments ... n_updated/
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 946
Joined: 2009-04-16 18:35
Location: Norway

Re: Improve memory usage in Debian

Postby wizard10000 » 2019-06-27 15:01

sickpig wrote: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.


I used to have that same obsession (which I call intellectual masturbation). But - unused resources are wasted resources.

My openbox install with all my bells and whistles takes up about 350MB of RAM at idle, which is pretty fat for openbox but that includes compton, conky, tilda and a small pile of GVFS stuff for plugging in cameras or phones.
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 99
Joined: 2019-04-16 23:15
Location: southeastern us

Re: Improve memory usage in Debian

Postby sickpig » 2019-06-27 21:51

Hallvor wrote:[Secondly, changing desktop environment is quite a job. Giving advice in that direction for no good reason, is horrible advice.

the quickest way to confirm if they can open same tabs and apps without draining excessive RAM is test in a different DE.
Alternatively purge KDE and do a fresh install of it?
For me no advice is horrible advice. Any advice which might resolve OP's issue is useful I believe.

Wheelerof4te wrote:^You are being vocal about ditching KDE, but I have yet to understand why. OP has 16 GB of RAM, that should be enough to run any DE.
His problem lies elsewhere.

I agree problem lies elsewhere. Hopefully a purge and KDE reinstall solves it for the OP.

wizard10000 wrote:I used to have that same obsession (which I call intellectual masturbation). But - unused resources are wasted resources.

My openbox install with all my bells and whistles takes up about 350MB of RAM at idle, which is pretty fat for openbox but that includes compton, conky, tilda and a small pile of GVFS stuff for plugging in cameras or phones.


Openbox is quite flexible it can be as light or as heavy you want it to be. Gives the user extensive granular control over what can be added. I love its modularity, you can only add components which are useful to you and skip the rest.

I use all of system's resources, I just like to keep the baseline as low as possible.
User avatar
sickpig
 
Posts: 317
Joined: 2019-01-23 10:34

Re: Improve memory usage in Debian

Postby sickpig » 2019-06-28 02:29

Hallvor wrote:Please learn the difference between correlation and causality.

how is this constructive? your posts have just been in defence of kde, any actual help in solving the OP, no.
User avatar
sickpig
 
Posts: 317
Joined: 2019-01-23 10:34

Re: Improve memory usage in Debian

Postby sickpig » 2019-06-28 02:30

and i choose not to learn stupid things like "correlation and causality"
User avatar
sickpig
 
Posts: 317
Joined: 2019-01-23 10:34

Re: Improve memory usage in Debian

Postby vbrummond » 2019-06-29 00:14

Hallvor is a quality contributor here, so I don't appreciate this conduct. There isn't a computer today that isn't affordable that can't run any Linux DE in memory. The issue today is support for modern gpu technology, compositing, and perceived performance.
Always on Debian Testing
vbrummond
 
Posts: 4468
Joined: 2010-03-02 01:42

Re: Improve memory usage in Debian

Postby sickpig » 2019-06-29 02:22

yes, my responses were childish, I shall refrain from such behaviour. I agree our forum is no place for non-sense. My apologies.
User avatar
sickpig
 
Posts: 317
Joined: 2019-01-23 10:34

Re: Improve memory usage in Debian

Postby Deb-fan » 2019-07-02 01:08

First find out how much memory each of those are using (+1 ps_mem) but there are so many commands,utils,methods of doing it in gnu/Linux, worth Googling about the topic and experimenting to find what you like. Yep browsers are notorious memory hogs now. That can be mitigated to whatever extent (as shown by HOAS demonstrating Firefox.) Which has always been my browser, thus I've learned to tweak it to make it faster and lighter than out-of-box. Google such tweaks for your preferred web browser but be careful in how you go about it ie: use a virtual machine or to separate profile. There are plenty of trash how-to's on the web.

+1 lowering swappiness. Same for disabling unneeded start up services with systemctl etc. Switching to a lighter desktop (or window manager) is a easy and straightforward way to save a huge chunk of system resources but is dependent on a person preferences. Would advise trying any that look interesting to you in live session isos or vm to see if it's something you'd want to do or pursue.

KDE/etc can be tweaked to reduce memory footprint too (Google) the way they come out-of-box verses how someone with the required know how can set them up can be drastically different. things. Just a matter of getting familiar with whatever de/wm or combo thereof and what they can do.
Deb-fan
 
Posts: 445
Joined: 2012-08-14 12:27

PreviousNext

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable