The graph is on a logarithmic scale btw

Configuration Before series (ms) With series (ms)
1 vCPU 22.3 (21.6-22.6) 0.97 (0.72-1.4)
8 vCPUs 314 (97-2542) 7.0 (5.0-98)
  • Victor@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    16 days ago

    I remember when I used to have swap enabled. It used to be very slow, back in the days when we used swap in mechanical drives. The computer would just freeze for a second while swapping, lol.

    So I’m having some trouble wrapping my head around why swapping would not be something you want to avoid—why it would be beneficial for performance. If you can prevent the need for swapping, that’s the best outcome, surely? The only solution to which would be to have enough pure RAM installed in the system.

    But I think I get you? You mean you “want” to swap when the memory runs out?

    • Die4Ever@retrolemmy.comOP
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      16 days ago

      If you can prevent the need for swapping, that’s the best outcome, surely?

      It’s more complicated than that. If stuff in your disk needs faster access than old unused stuff in memory, swap can make the swap so that the stuff in your disk is cached better in memory. If you were able to cache your entire filesystem into RAM then your computer would be faster, but people don’t have that much RAM.