GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Rich Felker (dalias@hachyderm.io)'s status on Sunday, 14-Dec-2025 22:45:15 JST Rich Felker Rich Felker

    RE: https://hachyderm.io/@kees/115717671911290728

    This. If not entirely disabled, swap size should be set to something roughly the size of "junk" processes that you expect never to get swapped back in, plus what your storage can reliably transfer in under 30 ms or so. Anything larger is just going to make bad things drag down your system rather than failing quick and reporting failure.

    In conversation about a month ago from hachyderm.io permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      Kees Cook (@kees@hachyderm.io)
      from Kees Cook
      @bkuhn@copyleft.org I'm out of practice on this particular debugging endeavor. Swap thrashing on a laptop is such a broken experience that to save myself from it I got rid of swap entirely (and so also hibernation). All that said, I would probably start doing userspace debugging from the initrd scripts to see if anything was running at the same time, adding sleeps, etc. But yeah, if that didn't quickly point me somewhere, I'd probably wipe the luks swap and use an unencrypted one to see if it was stable, like you mentioned.
    • Embed this notice
      Rich Felker (dalias@hachyderm.io)'s status on Tuesday, 16-Dec-2025 12:37:24 JST Rich Felker Rich Felker
      in reply to
      • Demi Marie Obenour

      @alwayscurious I'm not entirely sure what you're comparing. If you're saying that "too little" swap will favor discarding read-only mappings (code) instead of writing out dirty mappings to swap, that'd generally be a good thing: you drop the write cost and only have a read cost, for way less than half the total roundtrip cost (because write is costlier than read) and zero cost at page-out time.

      But that's also at a fixed amount of exeeding physical memory. What happens is the more swap you have, the more you'll exceed physical memory before allocations start erroring out, and if you have lots of swap, by that time the system is bogged down to the point of being virtually unrecoverable because it's so slow.

      In conversation about a month ago permalink
    • Embed this notice
      Demi Marie Obenour (alwayscurious@infosec.exchange)'s status on Tuesday, 16-Dec-2025 12:37:25 JST Demi Marie Obenour Demi Marie Obenour
      in reply to

      @dalias Doesn’t that cause Linux to have to page out stuff like executable code instead?

      In conversation about a month ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.