I am too. Why not use your ram, you paid for it. Else you're writing to slow files and and caching things. I'd gladly have everything I need in ram if it fits.

What I'm more concerned about is applications releasing ram when I need it back. If I start a game will the browser give back the ram? That's my only concern though

  • source
  • parent
  • context
  • [–] 12 points 1 day ago

    Someone posted this earlier and it’s a good explanation

    https://www.linuxatemyram.com/

    Here is an Ug level explanation if you want something shorter:

    Disk slow, memory fast (even compared to an SSD)

    If memory fast, why no use memory

    Some things load from disk often but slow to wait. Load from disk in advance and keep in memory so fast. Now use memory better.

    If not enough memory we let go of other thing to run program.

    How work? Magic.

  • source
  • parent
  • context
  • [–] 9 points 1 day ago

    Use something like ps to list out what is using the RAM

    You mention you closed Firefox and it didn’t change but you did not say how you actually measured it.

    Start the system up fresh and run this command.

    ps faux --sort=-%mem

    Or

    ps faux --sort=-rss

    That will help you track down what is actually using it.

    Note: browsers will soak up a ton of memory on modern systems as almost all of them sandbox tabs at this point. If you open a ton of tabs, that will be half your problem.

  • source
  • [–] 21 points 1 day ago (1 child)

    I'm in the unused RAM is wasted RAM camp. Unless I run into problems I don't care about memory usage. So in your case I would've kept playing unless I got constant stutters.

    And I think KDE is surprisingly light. Especially compared to older versions.

  • source
  • [–] 5 points 1 day ago (3 children)

    "Unused ram is wasted ram" is the worst argument I ever heard because that ram is so I can run MORE THAN ONE PROGRAM instead of some SHITASS WEB BROWSER taking all of it.

    If I wanted to go back to the days before multitasking OSes when all ram was taken up by one program cuz you could only run one I'd install FreeDOS. Sick of this shit.

  • source
  • [–] 2 points 1 day ago (1 child)

    You should use zwap with swappiness 100 if you want zram + swap. You can also enable and configure systemd-oomd (out of memory demon) if you actually run out of memory at times - it goes about things smarter than the kernel (for example killing processes that wait on memory all the time).

  • source
  • [–] 2 points 1 day ago

    Sounds like a memory leak. Is it really KDE? Maybe its the browser or some kind of service running in the background. If memory got leaked out of the app, that it doesn't matter if you close the app or not, because those are ghost memory now. I had this issue with a local Ai program just yesterday. It doesn't matter if I close everything, somehow the memory usage shows high amount; because a software leaked and it was not KDE, as this was reproducable.

    My point is. you might not know where this leak come from without careful analyzing it. You can't just conclude its KDEs fault because you don't know why this happens. You should investigate which program does that.

  • source
  • [–] 6 points 1 day ago* (1 child)

    That's just because ZFS's disc cache shows up as application-used memory, instead of disc cache memory. (Disc cache memory is often reported in system monitor tools as 'free' memory, because it can be freed up as soon as you need it. ZFS's disc cache works the same way, but it's not reported separately to the OS, so that makes it look like ZFS is using a shitload of RAM.) If it bothers you, you can set a maximum amount of RAM for ZFS to use, and that will clear it up. It will mean that your performance is slightly worse, though, because ZFS won't be able to use disc caching optimally.

  • source
  • parent
  • context
  • [–] 1 point 1 day ago (3 children)

    Ok. Can you tell me more about what you are using? Are you on KDE and using Dolphin for the file manager? If Dolphin, do you see anything at all under removable devices? What file system is the card formatted as?

    Can you also try running: sudo journalctl --follow in a terminal, plug in the reader, and check if you see something like "kernel: sd 12:0:0:1: [sdc] Attached SCSI removable disk".

  • source
  • parent
  • context
  • [–] 4 points 1 day ago (1 child)

    buffered/cached memory shows separately

    Some of it does. Let's try an experiment: does the reported amount of used memory drop if you run the following command?

    sudo sh -c 'echo 3 >  /proc/sys/vm/drop_caches'
    

    (obligatory don't blindly trust commands from strangers, type them out instead of copy/pasting, yaddayadda)

  • source
  • view more: ‹ prev next ›