Skip to main content

Posts

Showing posts with the label Setting Swap space

SETTING SWAP SPACE

There are two methods to increase the swap memory after installation 1.FDISK UTILITY First check the system for swap information, use swapon -s option #swapon -s It will show you no swap space #free -m (This command will give you information about total swap memory available) We can see no swap memory available Now we have to create a partition.our attached harddisk is xvdf.so using fdisk utility #fdisk /dev/xdvf Now select primary or extended partition that we want.We go with primary. Then select partition number.we select 1 which is default.After that we set size as +500M. Then we want to select type,so type t and then L for listing.Out of it select 82 which is the swap partition Now save it by typing w #lsblk From this we can see that certain space is allocated as swap space Then refresh the system settings, using the partprobe command #partprobe /dev/xvdf1 Format the swap partition by using mkswap command #mkswap /dev/xdvf1...