• Quetzalcutlass@lemmy.world
      link
      fedilink
      English
      arrow-up
      55
      ·
      2 days ago

      Rule 3: SD CARD CORRUPTION

      Rookie mistake. Next time store your swapfile on Google Drive so it’s their problem!

      • azimir@lemmy.ml
        link
        fedilink
        arrow-up
        11
        ·
        1 day ago

        You joke, but I did something like that. I NFS mounted a disk off my desktop to a RPi. I then made a swap file on the NFS file system.

        I could then build a C++ project directly on the RPi because the build normally hit RAM limits. This was a 1st gen RPi, so it had 256MB RAM.

        The build took forever (many days), but the program ran fine once built.

        • Quetzalcutlass@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          16 hours ago

          Tangential, but stuff like this makes me wish Intel’s Optane had taken off. It was supposed to have the persistence of an SSD with performance near that of RAM, but it was expensive and the OEMs who included it relegated it to little more than a glorified drive cache.

          Imagine being able to allocate some of your spare storage as extra RAM the same way the Pi lets you decide the RAM/VRAM split. Or more realistically, sticking your swapfile on it and your build not taking several days even though you’re only working with a quarter gig of RAM.

    • RamRabbit@lemmy.world
      link
      fedilink
      arrow-up
      24
      ·
      edit-2
      2 days ago

      Rule 3: SD CARD CORRUPTION

      The Pi 4 and later can use a USB drive instead of a SD card for the OS drive. It’s way faster and less prone to corruption.

      I say this, despite noticing which sub we are in. ;p

    • T156@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      Rule 2: What is a context window???

      Its the window through which you enviously stare at people running megatoken context windows.