Grokking Operating Systems and Networking for Backend Engineers
0% completed
Swap and Why Servers Slow Down Instead of Failing
A small program walks through 200 MB of its own memory, one byte per page, three times. Each pass takes less than 0.01 seconds. The same program with 400 MB, under the same memory limit of 256 MB, takes about 4 seconds per pass.
The second program never crashes and never reports an error. It simply runs hundreds of times more slowly, while the CPU spends much of its time waiting for the disk.
This page explains what the kernel does when memory runs short, what swap is, and why a server with swap tends to slow down instead of failing.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%