I have been setting up Zram, Swap, Swappiness and EasyOOM daemon on 16gb ram boxes, or lower. Someone asked me about 32gb of ram, or more, and I'm unsure. Wondering if others have experimented with this!

you are viewing a single comment's thread
view the rest of the comments
[–] 0 points 4 months ago (8 children)

Genuinely curious: what are you doing to be needing this?

I cannot think of any modern usecase for swap a part from hybernation

  • source
  • hideshow 8 child comments
  • [–] 6 points 4 months ago (3 children)

    Compiling Librewollf with a sufficient number of jobs is a great way to eat up 32GB of RAM, and the some.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 0 points 4 months ago (2 children)

    Swapping will make it slower not faster, reduce jobs?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 4 months ago (1 child)

    No. Most of the build jobs are fast and small. A couple take up gigabytes at a time. Swap is on SSD anyway. Its fast enough.

    I also use NixOS and GuixSD. There are cases where binary caches haven't caught up with the package definition. Situations like Librewolf, LibreOffice and kernel all compiling at the same time.

    Sure I could mess around with limiting jobs and build runners... Or I could just have swap, and never worry about it again.

    Just a BTRFS swapfile. I'm not worried too much about performance. I rarely hit it and most of the time i don't even need it. Until I do.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 6 points 4 months ago (2 children)

    Local AI can chew it up. Wasn't able to run certain jobs on 64Gb until I switched to zswap.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 4 months ago (1 child)

    What kind of token per second are you getting with your model partially on disk?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 3 months ago

    I think it was a video workflow, and it wasn't too bad as it kept the main model in vram and was efficiently passing out whatever it was passing out. But it took nearly all of my 64GB of ram. From memory it was about 20min for a 5 second clip. Not great but not horrible.

  • source
  • parent