In this video, creating a swap partition, adding swap space and deleting swap in RHEL 6 was explained. creating swap using file was also explained. Usage of free -m, swapon, swapoff commands was explained.
The second part also loaded in continuation with it.
Swap space in Linux is used when the amount of physical memory (RAM) is full.If the system needs more memory resources and the RAM is full, inactive pages in memory are moved to the swap space.While swap space can help machines with a small amount of RAM, it should not be considered a replacement for more RAM. Swap space is located on hard drives, which have a slower access time than physical memory.
Swap space can be a dedicated swap partition (recommended), a swap file, or a combination of both.
Commands to be used in maintaining Swap spaces:
To see the memory size and the swap space size
#free –m or free –g
To see the swap usage use
#swapon -s
To format the partition with swap file system use
#mkswap partition name
To activate the swap space use
#swapon partition name
To deactivate the swap space use
#swapoff partition name
To activate the swap space use
#swapon partition name
To deactivate the swap space use
#swapoff partition name
Смотрите видео how to create and extend swap partition and swap file in linux ? part 2 | swap | swapon | swapoff онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Red hat Linux Training for beginners 03 Июль 2020. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 356 раз и оно понравилось 15 посетителям.