<div dir="ltr"><div>I tend to keep tabs on memory a few ways, I use a memory monitor that shows me used in kde menu tray, and always run htop.  I flushed everything and rebooted a few days ago sending this, but it was green entirely to around 58gb of mem before I started forcibly having to kill things.  Killing everything else I could only get it back to 8-9gb of use, which is still pretty damn steep, so not sure where the memory is leaking to.<br></div><div><br></div><div>Plasma, KWin, and even SDDM tend to use more memory then they should as well, certainly growing in footprint over time after a reboot to weeks later in use.<br></div><div><br></div><div>I've tracked some of the news around the oomkiller features being added in systemd, probably needs to be a todo item.  If the system just killed firefox or whatever the offender was, it'd be fine, but typically my desktop will just get wonky as I try to figure out what is up, but often will end up freezing before I can at that point.  Really annoying, as I tend to lose some unsaved work every time.</div><div><br></div><div>Agreed, perhaps just the way I work I *do* need the memory, but I figure there's got to be some others that do what I do, working on a more standard system with 8-16gb ram OK, like probably the other 99% of everyone.</div><div><br></div><div>-mb</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 7, 2020 at 7:09 PM Ryan Petris via PLUG-discuss <<a href="mailto:plug-discuss@lists.phxlinux.org">plug-discuss@lists.phxlinux.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u><div><div>I think maybe you're looking at this the wrong way -- what use is having a lot of ram if it's not going to be used? This is how the kernel and some userspace programs think about it.<br></div><div><br></div><div>When you look at memory usage, how much is actually in use vs cache? Cache is the yellow part of the bar in Htop. If there's just a bunch of cache used, this is normal as the kernel isn't really going to drop cache unless there's a reason to, and it will do so automatically when more memory is needed by anything; thus, you shouldn't really look at cache memory as "in use".<br></div><div><br></div><div>As for Chrome and possibly Firefox, they use a lot of RAM, yes, however they also somehow tell the OOM killer to kill their processes first in the even of an OOM condition. Here's a description of how this is handled in ChromiumOS however I imagine it's the same in regular Linux: <a href="https://www.chromium.org/chromium-os/chromiumos-design-docs/out-of-memory-handling" target="_blank">https://www.chromium.org/chromium-os/chromiumos-design-docs/out-of-memory-handling</a><br></div><div><br></div><div>Therefore, unless random programs start getting killed left and right, I personally wouldn't worry about it.<br></div><div><br></div><div>On Fri, Nov 6, 2020, at 7:48 AM, Michael Butash via PLUG-discuss wrote:<br></div><blockquote type="cite" id="gmail-m_-1510529808317499482qt"><div dir="ltr"><div>Memory usage is getting frustrating for me, as whether I use 64gb of ram, or 128gb, I still tend to exhaust memory on my system.  My laptop currently has 64gb, and started freaking out this morning, to find I was hitting oom's again with browsing and some general use as wake up.<br></div><div><br></div><div>Trying to figure out with htop what is using all my memory, firefox was a big consumer, using ~25gb of ram once killed.  Yeah, it's like that.  Chrome was typically worse.  I use 6 profiles, as I have to for different companies I consult for, mostly due to different gsuite accounts and different o365 accounts that will not play nice in a same profile.  Same for Chrome.  I figure I can't be the only person that does this, perhaps so, but the memory utilization with with only a few tabs on each is astounding.<br></div><div><br></div><div>I tend to run several VM's at a time, a full instance of windoze10 or two with 4-8gb of ram work fine.<br></div><div><br></div><div>I use pluma text editor a lot as the gedit fork from mint, which I'll find uses 3-4gb of memory with a few dozen text files open.  Of text.  Doesn't seem to be worth a few gig of ram.<br></div><div><br></div><div>Libreoffice itself tends to use 3-4gb of memory keeping a dozen or two files open, which again flipping between several customers, I tend to work on, review, etc constantly.<br></div><div><br></div><div>Even on boot, kde tends to use ~3.5gb of memory, and after running for a few week or two, with everything else killed, will start consuming ~9gb with nothing else running.  No idea where it goes.<br></div><div><br></div><div>My question is how the heck do others run linux with only 4-8gb of ram on a "normal" system?  Most linux users are likely IT professionals like myself, just curious what the heck I'm doing wrong.<br></div><div><br></div><div>-mb<br></div><div><br></div><div><br></div></div><div>---------------------------------------------------<br></div><div>PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br></div><div>To subscribe, unsubscribe, or to change your mail settings:<br></div><div><a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></div></blockquote><div><br></div></div>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></blockquote></div>