4. Now enable the swap area on newly created file using swapon command.
[root@kalwa1 tmp]# swapon -v testswap swapon on testswap swapon: /tmp/testswap: found swap signature: version 1, page-size 4, same byte o rder
5. Now test if the swap space is increased by 10MB with following commands
[root@kalwa1 tmp]# cat /proc/swaps Filename Type Size Used Priority /dev/dm-1 partition 4128760 0 -1 /tmp/testswap file 10232 0 -2
[root@kalwa1 tmp]# free -m total used free shared buffers cached Mem: 2003 213 1789 0 13 77 -/+ buffers/cache: 122 1880 Swap: 4041 0 4041
Or you can use top command
Pages: 1 2
Rajesh says
swapon /tmp/testswap is missing