All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Understanding Swap Space: Correcting Common Misconceptions About Memory Management

By

jitl

8mo ago· 16 min readenInsight

Summary

This technical article defends the use of swap space in computer systems, arguing that swap is essential for proper memory management rather than being emergency memory. The author explains that disabling swap doesn't prevent disk I/O problems during memory contention but instead shifts thrashing from anonymous pages to file pages, which may be less efficient. The piece aims to correct common misconceptions about swap functionality and advocates for its proper implementation as part of a well-functioning system.

Key quotes

· 4 pulled
Having swap is a reasonably important part of a well functioning system. Without it, sane memory management becomes harder to achieve.
Swap is not generally about getting emergency memory, it's about making memory reclamation egalitarian and efficient.
Disabling swap does not prevent disk I/O from becoming a problem under memory contention. Instead, it simply shifts the disk I/O thrashing from anonymous pages to file pages.
Using swap as 'emergency memory' is generally actively harmful.
Snippet from the RSS feed
tl;dr: Having swap is a reasonably important part of a well functioning system. Without it, sane memory management becomes harder to achieve.

You might also wanna read