• Draconic NEO@lemmy.world
    link
    fedilink
    arrow-up
    18
    ·
    5 hours 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).

    • QuazarOmega@lemy.lol
      link
      fedilink
      arrow-up
      1
      ·
      15 minutes ago

      Does it kill Firefox if it tries to go over the limit? I think I tried this once and if there is a memory leak it just closes itself (which is batter than hogging the whole system, bit still)

    • Damage@feddit.it
      link
      fedilink
      arrow-up
      18
      ·
      edit-2
      13 hours ago

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

      • dai@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        9 hours 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

      • dan@upvote.au
        link
        fedilink
        arrow-up
        3
        ·
        9 hours ago

        What’s the benefit of running Discord’s app instead of just using it as a PWA? A PWA would reuse your existing browser and its session.

          • dan@upvote.au
            link
            fedilink
            arrow-up
            1
            ·
            3 hours ago

            Oh that’s a good point. I totally forgot that Discord has voice features. don’t use Discord often, and when I do, it’s just for text chat. Unfortunately some open source apps I use use Discord for communicating with the developers.

    • 14th_cylon
      link
      fedilink
      arrow-up
      5
      ·
      14 hours ago

      And your browser with 300 open tabs doesn’t even fit into the room

      • Ephera@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        7 hours 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…

  • rtxn@lemmy.worldM
    link
    fedilink
    English
    arrow-up
    14
    ·
    edit-2
    11 hours ago

    Try realizing ten thousand mesh instances in Blender and watch that sucker eat the rest of your RAM like it’s got a pebble in its shoe.

    I did that on my work PC with 128 GB memory (originally built for esports shit) and it still wasn’t enough.

    • Rin
      link
      fedilink
      arrow-up
      5
      ·
      10 hours ago

      What fucking e sports game need 100gb of ram…

      • rtxn@lemmy.worldM
        link
        fedilink
        English
        arrow-up
        6
        ·
        9 hours ago

        It was also supposed to be an all-in-one recording/streaming computer for university events, and they had to use the budget for something. It ended up being used as a proxmox host for a while, then it was handed off to me. Now the most resource-intensive thing it runs is a Windows 11 VM that I torture mercilessly use for experiments. It rarely gets to 10% memory utilization.

        • Rin
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          9 hours ago

          Aaaaah, that make slightly more sense? How old is the computer roughtly?

          • rtxn@lemmy.worldM
            link
            fedilink
            English
            arrow-up
            4
            ·
            edit-2
            8 hours ago

            It has an i9 10980, so about 4-5 years old. It was built before I was hired.

  • JGrffn@lemmy.world
    link
    fedilink
    arrow-up
    28
    ·
    14 hours 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?

    • expr@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      8 hours ago

      You only need 1 tab to OOM if that tab is Jira. I’ve literally had tabs take up more than 10GB.

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      7 hours ago

      I mean, I doubt Kate or Geany or Vim would’ve closed due to OOM, but sure…

      • dan@upvote.au
        link
        fedilink
        arrow-up
        5
        ·
        9 hours 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.

      • grue@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        12 hours ago

        I was about to reply to the same thing to another comment about 300 tabs, LOL

    • miss phant@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      7
      ·
      14 hours 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)

  • henfredemars@infosec.pub
    link
    fedilink
    English
    arrow-up
    58
    ·
    16 hours 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.

    • cmnybo@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      39
      ·
      16 hours ago

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

      • henfredemars@infosec.pub
        link
        fedilink
        English
        arrow-up
        21
        ·
        16 hours 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.

      • henfredemars@infosec.pub
        link
        fedilink
        English
        arrow-up
        6
        ·
        edit-2
        16 hours ago

        Hm? Do you mean a link to builds that are this small? My midrange Intel i5-12600K (I’m a working man, doc…) L3 cache is 20,971,520 bytes. My Linux Mint (basically Ubuntu kernel) vmlinuz right now is only 14,952,840 bytes. Sure, that’s a compressed kernel image not uncompressed, but consider this is a generic kernel built to run most desktops applications very comfortably and with wide hardware support. It’s not too hard to imagine fitting an uncompressed kernel into the same amount of space. Does that help to show they’re roughly on the same order of magnitude?

        Ten years old kernels could be 2 MB.

    • BCsven@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      15 hours ago

      My ARM board from 2010 has 256MB of memory. It runs an old 3.1 kernel (not attached to internet) , new kernels won’t fit/load. But on that I have OpenMediaVault running SAMBA shares and mindlna to serve music. It isn’t even using 50% of the 256MB

  • LovableSidekick@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    10 hours ago

    When I think back to when I marveled that one of our office’s 8Gb nightly backup tapes fit in my shirt pocket - EIGHT GIGABYTES - in my POCKET!!!

    In the future Gen ┐ will whine to their parents that their cerebral implant is only 100 terabytes.