• 0 Posts
  • 3.84K Comments
Joined 3 years ago
cake
Cake day: November 14th, 2023

help-circle




  • 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?
















  • I find it slightly counterproductive that this is a countermeasure against swapping to disk/“device”:

    You want to avoid swapping, which happens when RAM is full (right?), so you create a really fast operating swap thing in RAM, reducing the amount of operational RAM, thus inducing more swapping because there’s “less” “RAM”.

    Not to mention that the data is just moving from place to place inside RAM, just as it would’ve been sitting there before anyway. The only difference is the compression, I assume? Which is the main benefit? Otherwise it just feels like unnecessary shuffling of data back and forth.