Most of us know that if a process dynamically allocates memory, with malloc, say it does ptr = malloc(8192) ;, then, assuming success, the process is now allocated 8 KB of physical RAM. It might come as a surprise, but, on modern OSes such as Linux, this is actually not the case.
So, what is the case? (In this book, we do not delve into kernel-level details. Also, as you might be aware, the granularity of memory at the level of the OS allocator is a page, which is typically 4 KB.)