• Damage@feddit.it
      link
      fedilink
      arrow-up
      30
      ·
      edit-2
      2 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

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

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

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

        • LonelyNematocyst@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          1 month ago

          Consider also getting Simple Tab Groups. You can basically instantly send a bunch of tabs to a “group”, which is like bookmarks except they can also be opened/closed all at once in a new window. Very handy, you can open 50 tabs researching something, close them all, then instantly reopen them when coming back to the research.

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

    • cmnybo@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      33
      ·
      2 months 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
        17
        ·
        2 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.

    • BCsven@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      2 months 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

      • henfredemars@infosec.pub
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        2 months 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.

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

      • dan@upvote.au
        link
        fedilink
        arrow-up
        8
        ·
        2 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.

          • boonhet@lemm.ee
            link
            fedilink
            arrow-up
            3
            ·
            2 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.

            • dan@upvote.au
              link
              fedilink
              arrow-up
              1
              ·
              edit-2
              1 month ago

              I have a separate home server, so I don’t have a reason to not shut down my desktop PC. No reason for it to be using electricity while it’s doing nothing.

              I shut down my laptop because suspend/sleep support on Linux still isn’t great.

      • grue@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 months 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
      8
      ·
      2 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)

      • Grian@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 month 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@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          2
          ·
          1 month 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.

    • expr@programming.dev
      link
      fedilink
      arrow-up
      7
      ·
      2 months ago

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

    • SaharaMaleikuhm@feddit.org
      link
      fedilink
      arrow-up
      3
      ·
      2 months ago

      No need to convince me. I will always believe people complaining about garbage electron apps.
      That being said, I use vscodium myself and actually like it. Does not mean I won’t complain tho

    • caseyweederman@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      Firefox puts inactive tabs to sleep, effectively turning them into bookmarks that reload when you switch back to them. I regularly right-click close-tabs-to-the-right over 200 tabs.

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

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

    • lelgenio@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      I think there’s still something wrong with your setup… You should be able to have as many Firefox windows and tabs as you’d like without using too much RAM, since they should de “suspended”.

      I regularly have hundreds of tabs running fine, on 32GB of RAM.

      Most likely it’s a vscode extension that’s leaking memory, and this problem will still happen after your upgrade, just take longer.

  • Draconic NEO@lemmy.world
    link
    fedilink
    arrow-up
    34
    ·
    edit-2
    2 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).

    • uis@lemm.ee
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      2 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@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        2 months ago

        That’s good to know, I don’t know how well it would work though I feel like I enabled something about closing background tabs to reduce memory load (it might have been what you said, it might have been something else I don’t really remember) and it helped a little bit but it still ended up chewing up a lot of memory.

        Setting the limit though did help immediately. And stop the overconsumption problems, occasionally a couple of tabs crash here and there but it doesn’t freeze or worse cause other apps to slow down and freeze. Which did happen before.

      • Draconic NEO@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 month 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.

    • Mwa@lemm.ee
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      1
      ·
      2 months ago

      Oh my god thanks but what if someone had a systemd free system

      • Draconic NEO@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        2 months ago

        It might be harder for them but there are similar tools that they could use to limit it. One I’ve seen people use is firejail, a tool designed for sandboxing processes and applications.

        I’ve personally never tried it myself though so I can’t attest to how well it works, either for this purpose or sandboxing in general.

        • Mwa@lemm.ee
          link
          fedilink
          English
          arrow-up
          3
          ·
          2 months ago

          Oh, I was talking about runit,sysvinit and openrc systems

    • QuazarOmega@lemy.lol
      link
      fedilink
      arrow-up
      2
      ·
      2 months 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)

      • Draconic NEO@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        1 month ago

        No, it just limits the amount of RAM that Firefox (or whatever other application you launch with these parameters) will see.

        A few Firefox tabs may crash occasionally as a side effect. And obviously if Firefox eats up all of the 8GB it’s allocated it may crash itself though usually it doesn’t and tabs will crash before the browser crashes.

        • Draconic NEO@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 months ago

          I can confirm this, the first time I tried it out I accidentally set it to 1 GB, Firefox could only see that amount of memory. Though limiting Firefox to only 1GB its a very bad idea and it can cause it to crash it’s not because it’s trying to go over though it’s just because it ran out of memory.

          8GB is what I would consider the safe minimum for web browsing. If you said it lower you’ll have performance losses. Setting it higher though will only chew up valuable System RAM by inactive tabs.

  • rtxn@lemmy.worldM
    link
    fedilink
    English
    arrow-up
    16
    ·
    edit-2
    2 months 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.

      • rtxn@lemmy.worldM
        link
        fedilink
        English
        arrow-up
        10
        ·
        2 months 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@lemm.ee
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          2 months ago

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

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

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

  • waz@feddit.uk
    link
    fedilink
    English
    arrow-up
    14
    ·
    2 months ago

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

    • Your use case is obviously different, but I’ve gone years between system upgrades. I mostly do OSS coding, or work stuff; not gaming. The only case I can imagine needing to upgrade my little Ryzen with 16 cores - a laptop CPU - is if it becomes absolutely imperative that I run AI models on my desktop. Or if Rust really does become pervasive; compiling Rust programs is almost as bad as compiling Haskell, and will take over my computer for minutes at a time.

      When I got this little micro, the first thing I did was upgrade it to 64GB of RAM, because that’s the one thing I think you can never have too much of; especially with the modern web and all the shit that brings with it; Electron apps, and so on, absolutely chew up memory. The one good thing about the Rust trend is better memory use, so the crappy compile times are somewhat forgiveable.

      • TurboWafflz@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        2 months ago

        Somewhere around 2017 I bought an old dell precision from 2011 for $25, put a radeon rx 570 in it a few years later and used it as my main computer until last year when I finally got around to building a replacement

      • waz@feddit.uk
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months ago

        My case was purely, that I had upgraded the gpu in my classic Mac Pro, and thought that a SFX pc build could be done with the old gpu and a power supply and mobo. It started out with a cheap mobo, to hold only an old i7 from an imac that was parted out, and 8gb of ram (2x4 sticks I had spare) and the vega56. I found it so capable a system, that the only issue was ram when I forgot about the dozen tabs open on a browser, and the game just launched would hang the system. Before I would ‘waste’ spending money on the max 16gb that this board could hold, I started collecting the parts for it’s current setup; a520i, ryzen5 5600x , 64gb, nvme ssd and the gpus I’ve now swapped between the cMP so now it’s a rx5700xt. Use is purely a spare, don’t want a windows machine, I’ve got the mac for a server/media machine, so it’s all purpose and games on the Linux box. Although I have got dual boot capability set up on both just because I could, maybe something really offside would need w10 - one example; VCDS car diagnostic software that doesn’t support anything but win.

    • Kyrgizion@lemmy.world
      link
      fedilink
      te reo Māori
      arrow-up
      1
      ·
      2 months ago

      I used to run VM’s in parallel for my job, which eat RAM like candy. Other than that though, I’ve never had a use case for more than 32GB RAM.

      • fuckwit_mcbumcrumble@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 months ago

        700 tabs + VM?

        At work I regularly kiss 32gb with everything open and a VM. When I got my latest machine I made sure to get 64 so I think I’ll be good for a while. 32 gigs lasted me from 2017 to 2024. And if I need more this machine takes 2 SODIMMS so I can install at least 96 gigs.

      • Valmond@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        Fixing a SSAO bug where indices overflowed the 32bit int on the gpu I had to use 64GB. Since then I have never needed more than 32GB and at home 24 is way more than I need.

        Well, I just remembered, actually I did need more once for a fftv bug (same story, 32bit overflow) but I borrowed a 192GB pc for that.