This ensures that the memory is always in RAM and never moves to the swap disk. This greatly speeds up access to these memory locations significantly , since disks are extremely slow compared to RAM.
On a real-time system (linux is not RTS btw!) You need extremely low latency, so memory access resulting in disk access is generally not acceptable in temporary critical code.
source share