Computer Science, asked by harshmeena2620, 11 months ago

swap space manegement in os hindi

Answers

Answered by amritanshu9649
3
Managing Swap Space in Linux

A swap space is an area of a disk which can be used with the Linux kernel memory management subsystem. Swap spaces are used to supplement the system RAM by holding inactive pages of memory. The combined system RAM plus swap space is called virtual memory. When the memory usage in a system exceeds a defined limit, the kernel will comb through RAM looking for idle memory pages assigned to processes. The kernel will write the idle page to the swap area, and will reassign the RAM page to be used by another process. If a program requires access to page that has been written to disk, the kernel will locate another idle page of memory, write it to disk, then recall the needed page from the swap area. Since swap areas reside on a disk, swap is incredibly slow compared to RAM. While it is used to augment system RAM, usage of swap spaces should be kept to a minimum whenever possible.

Similar questions