Understanding, Creating, Extending, Calculating the Swap Space in Linux
1. Concept of swap space in Linux? Ans:- Linux allows a hard disk to be used as memory (virtual memory) apart from the RAM( physical memory) so that the kernel is able to write off the unused content from the RAM to this virtual memory and whenever the content is required again it writes back. Since the unused content no longer holds the space in physical memory it can be used by some other process. All this is done internally and a user is never aware of the backend process. 2. Creating a Swap Space in Linux? Ans:- $ dd if=/dev/zero of=/extra-swap bs=1024 count=1024 1024+0 records in 1024+0 records out $ dd if is used to create a file of is used to create the file name that is extra-swap here bs is for the size in ...