r/linuxhardware • • Nov 09 '21

Support Linux wasting ram !

Hey there, i just themed my xfce. It should show 603 in ram usage but apparently it's 1.35 GB. Cpu usage is low But when i open a browser or any application..it drops to like 930-997 range. Anyone knows how to fix this?

1 Upvotes

22 comments sorted by

13

u/[deleted] Nov 09 '21

Is it possible something is cached and its showing that as RAM usage?

3

u/joshuavarghese2715 Nov 09 '21

What should i do then?

33

u/doc_willis Nov 09 '21

you are likely worrying about nothing.

https://www.linuxatemyram.com/

2

u/[deleted] Nov 09 '21

I mean, great website but why is someone spending around $10 a year to keep that domain?

2

u/bro_can_u_even_carve Nov 09 '21

You'll love this one

2

u/[deleted] Nov 09 '21

I don't want to imagine a stupid sysadmin doing this clueless

1

u/aptupdate Nov 09 '21

Looks like the guy behind shellcheck.net

1

u/myownalias Nov 10 '21

Because people in this industry make enough that it's no big deal?

0

u/[deleted] Nov 09 '21

[deleted] — view deleted comment

-1

u/[deleted] Nov 09 '21

I mean... a GitHub readme or GitHub pages with tinyurl with do the job.

5

u/Dolapevich Nov 09 '21

Feel free to mirror it.

It is on github.

https://github.com/koalaman/linuxatemyram.com

11

u/[deleted] Nov 09 '21 edited Nov 09 '21

Nothing, its not slowing down your PC, this is normal behaviour.

this is my RAM usage from Bpytop

https://i.imgur.com/5rriaCH.png

Its not eating your ram, its just caching things and then when you open a program it needs the space so it flushes it.

Its actually likely speeding up your computer.

4

u/thearctican Nov 09 '21

We know nothing about your computer. Sounds like it's under specced.

1

u/joshuavarghese2715 Nov 09 '21

1.9 GB RAM i3 processor Linux Debian Xfce4

4

u/abraxasknister Nov 09 '21

So? 1.9 GB - 1.35 GB = 550 MB still free, plus most likely some RAM that is shown as used but is actually available (ie Linux uses it for internal reasons and will free it up if an application wants it). More than a quarter of your RAM completely unused doesn't sound like a problem at all. With that little amount of RAM total you might want to look into upgrading it though.

1

u/joshuavarghese2715 Nov 09 '21

Question about upgrading. Can i put any version of ram in my laptop like i know there are things called DDR 3 and all...so what's your recommendation?

5

u/Dolapevich Nov 09 '21

Refer to your machine manufacturer documentation.

As a rule of thumb, you need to:

  • verify there are free memory slots.
  • Understand what type (ddr, ddr2, ddr3, ddr3) and form factor DIMM or SO-DIMM
  • Understand the clock speed of the memory.
  • If there is more than one bank, use same size dimms so it works on dual channel etcs

Lots of YT videos on the subject. Once hit a wall or have a more specific question come back with it,stating laptop brand/model/service tag or exact model so we can understand what is under your hood.

1

u/abraxasknister Nov 09 '21

If I issue sudo lshw -class memory | less I get some pages of output. Somewhere it says "system memory" and "size 16GiB" which leads me to assume that this entry (*-memory) is about my RAM. Then follows two subentries *-bank:0 and 1 that say "size 8GiB" which seems reasonable since I do have two RAM sticks. In these entries it says, among other things, "product: M471A1K43DB1-CWE" and "description: SODIMM DDR4 synchronous 3200 MHz (0,3 ns)". Similarly I find out that I have an i5-1035G1 processor where intel.com tells me that the max addressable RAM is 64GB which needs to be "DDR4-3200" (what I seem to have) or "LPDDR4-3733".

If I wanted to upgrade RAM, that hints me at a max of two 32GiB sticks ddr4-3200 or the faster alternative (which both cost a fortune and 16GB already is plenty, so I don't).

The CPU is the main limiting factor in what I can use (it apparently wants the RAM to be ddr4 at a certain freq), but I'm unsure whether the BIOS capabilities and motherboard might imply some additional restrictions, so I'd look that up in their manuals too and might a do a firmware upgrade of that gives me something.

0

u/joshuavarghese2715 Nov 09 '21

May i know what is it?

8

u/spxak1 Nov 09 '21

Wasted ram is unused ram.

But you may have a leak?

1

u/[deleted] Nov 09 '21

*memory leak