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)
  • 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.