• @[email protected]
      link
      fedilink
      29
      edit-2
      20 days 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
        9
        edit-2
        20 days 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
        520 days 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.

        • Da Bald Eagul
          link
          fedilink
          120 days ago

          Global keyboard shortcuts are pretty nice. E.g. muting yourself without alt tabbing to your browser.

          • @[email protected]
            link
            fedilink
            519 days 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
        link
        fedilink
        820 days 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
          2
          edit-2
          5 days 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.

        • Estebiu
          link
          fedilink
          219 days ago

          i think i have over 200 tabs open in Zen (firefox fork)

  • @[email protected]
    link
    fedilink
    English
    6820 days 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
      4320 days 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
        2520 days 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
        English
        7
        edit-2
        20 days 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.

        • @[email protected]
          link
          fedilink
          English
          320 days ago

          Gotcha - I thought you meant you had seen some sort of demo/article/whatever with a proof of concept, but I misunderstood.

    • @[email protected]
      link
      fedilink
      320 days 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

  • @[email protected]
    link
    fedilink
    3920 days 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
        820 days 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
            319 days 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.

            • @[email protected]
              link
              fedilink
              2
              edit-2
              19 days 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.

    • miss phant
      link
      fedilink
      820 days 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
        14 days 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
          24 days 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.

    • @[email protected]
      link
      fedilink
      720 days ago

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

    • @[email protected]
      link
      fedilink
      319 days 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

    • Ephera
      link
      fedilink
      120 days ago

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

    • @[email protected]
      link
      fedilink
      119 days 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.

    • @[email protected]
      link
      fedilink
      119 days 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.

  • Draconic NEO
    link
    fedilink
    36
    edit-2
    19 days 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
      6
      edit-2
      19 days 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
        419 days 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
        link
        fedilink
        115 days 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.

      • Draconic NEO
        link
        fedilink
        319 days 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.

    • @[email protected]
      link
      fedilink
      219 days 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
        link
        fedilink
        5
        edit-2
        18 days 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.

      • @[email protected]
        link
        fedilink
        319 days ago

        I think Firefox only sees 8 GB and limits itself ideally. So if it goes over it just unloads unused tabs and such.

        • Draconic NEO
          link
          fedilink
          219 days 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.

  • Blaster M
    link
    fedilink
    English
    2220 days ago

    Microsoft Flight Simulator: A whole airplane on the couch

      • @[email protected]M
        link
        fedilink
        English
        1020 days 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.

  • @[email protected]
    link
    fedilink
    16
    edit-2
    19 days ago

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

  • @[email protected]
    link
    fedilink
    1420 days ago

    I use a shit load of RAM on Linux. You guys clearly have amateur numbers when it comes to how many applications you have open at once.

    • Pasta Dental
      link
      fedilink
      420 days ago

      And hitting high memory pressure is really not fun on Linux (on Fedora at least), it simply locks up and slows down to a crawl and does nothing for minutes until the oom killer finally kills the bad program. I’ve kind of solvd this by installing a better oom killer on my laptop, but my desktop was easy: buy 32GB of additional ram for like 90$: problem solved

      • @[email protected]
        link
        fedilink
        320 days ago

        I like to have a 50GB+ swap file. Though Fedora is a bit weird with swap files as by default it’s stored in RAM (Yes, extra space for RAM is stored in RAM. I… admit I don’t understand the detail).

      • Ephera
        link
        fedilink
        220 days ago

        Hmm, it’s been a few years since I’ve run Fedora, but that’s an experience also still stuck in my head from that time.

        I always figured, Linux had just gotten better at that, because I switched to a more up-to-date distro afterwards, but in retrospect, it’s not like Fedora is terribly out of date, so maybe that is just a weird configuration on Fedora…

    • Pennomi
      link
      fedilink
      English
      320 days ago

      It’s not hard to max out when doing simulations in Blender, but I know I have a niche use case.

    • @[email protected]
      link
      fedilink
      220 days ago

      Multiple Firefox windows, at least one JetBrains IDE, and some other apps and I fill 20-30GBs easily. Sometimes on the lower end, sometimes on the higher end.