News for hackers. Stuff that matters.
Re:In C, how do you know if the dynamic allocation succeeded? by Hendrikto on Saturday November 06, 2021 @05:51AM (#29128865)
> You as swap not because you need to actually use it […] In normal circumstances, swap should never really be utilised.

Swap is actually there so anonymous pages can be evicted, and is often used long before there is memory contention, during normal operation.

Not having swap means that only file-backed pages can be evicted. During memory contention, this can cause thrashing. During "normal" operation, it degrades performance.

Swap only being used when memory runs out, as kind of "emergency RAM", is a very widespread misunderstanding.

There are no comments on this comment yet.