• @[email protected]
    link
    fedilink
    English
    26 months ago

    Wondering how my 64gb will outlast every other part upgrade my gaming Linux box will get over the years

    • pwndave
      link
      fedilink
      16 months ago

      Fun fact, KDE is very lightweight. More so than a lot of folks give it credit for

  • Draconic NEO
    link
    fedilink
    1
    edit-2
    6 months ago

    Gives a lot of Space for running Virtual machines.

    Also browsers can chew that up fast if you have a lot of tabs, Firefox has managed to do it a few times. At least until I started limiting its RAM to 8GB (best decision ever)

    Limit Firefox to 8GB of RAM .desktop file
    [Desktop Entry]
    Version=1.0
    Name=Firefox RAM limit 8GB
    GenericName=Firefox Ram limit 8GB
    Comment=Limit RAM for Firefox to 8GB;
    Exec=systemd-run --user --scope -p MemoryLimit=8G firefox
    Icon=firefox
    Type=Application
    Terminal=false
    Categories=Utility;Development;
    StartupWMClass=Firefox
    

    (To use it with other apps like Chrome or Electron apps just replace the command at the end, and startup class with the ones from the program you’d like to run. Icon and Name changes are optional but might be desirable so you remember what app it is for).

    • @[email protected]
      link
      fedilink
      1
      edit-2
      6 months ago

      Alternatively you can open about:config and limit memory usage there. For example limit in-memory cache.

      EDIT: it seems firefox doesn’t allow to set RAM limits yet, only cache sizes

      • Draconic NEO
        link
        fedilink
        16 months ago

        Something I didn’t consider when answering earlier is that even if Firefox did have good RAM usage limiting built-in I probably still wouldn’t use it or recommend it, because one of Firefox’s biggest problems is that it leaks. And memory leaks will not be negated by Firefox’s built-in RAM limiter but they will be by systemd’s (or anything else you might be using instead) Firefox would still crash in the event of a leak but it’s still better than it taking gnome or other apps with it, or freezing your system entirely.

  • @[email protected]
    link
    fedilink
    16 months ago

    Can’t relate, just upgraded my laptop from 32GB to 64GB since VScode would keep closing due to OOM. What? Oh, no, it’s not vscode’s fault…I keep like 5 Firefox windows with 30+ tabs open, like a fucking maniac… Close them? What do you mean “close” them?

      • @[email protected]
        link
        fedilink
        06 months ago

        I had around 1500 open tabs in Firefox. It was fine. I figured enough was enough and closed them all. Now I close all tabs at the end of the day before shutting down.

          • @[email protected]
            link
            fedilink
            16 months ago

            Wait, do people shut down their computers when they’re done using them?

            I know I did on the desktop PC we had at home when I was a kid… But now the desktop doubles as a homeserver (and does that more than it does gaming lately) and the laptop just goes to sleep rather than shutting it down.

    • miss phant
      link
      fedilink
      06 months ago

      When I started hitting OOMs I just downloaded free ram.

      (Modifying my zram-generator config to use 1.5x my ram size instead of the measly 4GB – uncompressed – default. Seriously it’s worth looking into, though default depends on your distro)

      • @[email protected]
        link
        fedilink
        05 months ago

        Can’t you just add swap?

        I think you can run some apps purely on swap and keep your ram for vscode only

        • miss phant
          link
          fedilink
          15 months ago

          zram is swap on ram, it works by compressing parts of the ram when you run low and it’s much faster than traditional disk-based swap.

  • melroy
    link
    fedilink
    16 months ago

    This is on my Framework Laptop:

    free -h
                   total        used        free      shared  buff/cache   available
    Mem:            58Gi       3,3Gi        47Gi        82Mi       8,6Gi        55Gi
    
      • Ephera
        link
        fedilink
        16 months ago

        Firefox unloads old tabs when restarting the browser, so most of those are more like temporary bookmarks.

        Don’t think I’ve ever seen someone open 300 tabs in one session or on Chromium…

    • @[email protected]
      link
      fedilink
      4
      edit-2
      6 months ago

      The other day my laptop was sluggish as hell, checked top and turns out Discord and Orca Slicer were maxing out my cores

      • @[email protected]
        link
        fedilink
        2
        edit-2
        6 months ago

        Is Orca that resource intensive? I’m running it in a container with KasmVNC and have never really checked out the resource usage. Admittedly it’s on one of my local servers in another room. I guess it’s how large your projects are too.

        Edit: maybe it’s just my small projects

  • @[email protected]
    link
    fedilink
    English
    56 months ago

    I’ve seen builds of the Linux kernel that comfortably fits in my on-die CPU caches.

    So it would just be a picture of an empty sofa.

    • @[email protected]
      link
      fedilink
      English
      16 months ago

      There are mid range CPUs with 128MB of L3 cache now. A Linux distro like Tiny Core could fit entirely in cache.

      • @[email protected]
        link
        fedilink
        English
        16 months ago

        Tiny Core Linux is a minimal Linux kernel based operating system focusing on providing a base system using BusyBox and FLTK. It was developed by Robert Shingledecker, who was previously the lead developer of Damn Small Linux.

        Ah, that explains a lot! Didn’t know about TCL.

  • @[email protected]
    link
    fedilink
    26 months ago

    That’s how I got a free netbook. The netbook had 32GB flash with windows and office occupying 27+GB. Then windows wanted to do an update - with an 8+GB file. Spot the problem. And windows can get quite annoying with updates. As the netbook could not be expanded, and attempts to redirect the update to a USB stick did not work, a newer netbook was bought, and I got the old one. Linux plus libreoffice plus a bunch of extras happily sat in 4GB…

  • @[email protected]
    link
    fedilink
    2
    edit-2
    6 months ago

    One of the cushions is your browser, the other half some IDE you use to write an one-liner.

  • @[email protected]
    link
    fedilink
    06 months ago

    Am i the only one who still has no problems with 8GB? Not that I wouldn’t be happy with more but i can’t remember the last time I’ve even thought about ram usage

  • @[email protected]
    link
    fedilink
    36 months ago
    % free -h
                   total        used        free      shared  buff/cache   available
    Mem:           125Gi        15Gi        90Gi       523Mi        22Gi       110Gi
    Swap:           63Gi          0B        63Gi
    

    I’ll use it eventually. Just gotta let the disk cache warm up.