Grokking Operating Systems and Networking for Backend Engineers
Vote

0% completed

​

Virtual Memory, Pages and Page Faults

A Checkout worker asks the kernel for 256 MB of memory to hold a cache of product prices. The call returns at once, and the process's resident memory grows by exactly 0 kB. The memory exists only as a promise, and nothing has been placed in RAM yet.

The worker then writes one byte into each 4 KB block of that region. This time the kernel stops the process 65,536 times, once for each block, and the loop takes 116 ms instead of about 3 ms.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content