VMware Cloud Community
SAS18
Contributor
Contributor
Jump to solution

Swap file query.

Hi,

Is the /dev/shm swap file the same as the RAM x 1 = swap file or are they different things?

I have a /dev/shm partition of 131MB, but if I view the configuration of the partitons within VI client, I have a swap file of 533MB, and then if I look in vCharter (ESX monitoring tool), it reports 800MB free in Swap

Can anybody shed any light on the different figures and what they mean.

Also, is there a command to view these from the cli? (I know that df -l will let me view the /dev/shm swap file)

Any help appreciated.

Sam.

Reply
0 Kudos
1 Solution

Accepted Solutions
Sangokan
Enthusiast
Enthusiast
Jump to solution

/dev/shm is created by redhat, it is a temporary file and it is not the swap http://free-electrons.com/kerneldoc/latest/filesystems/tmpfs.txt

You can issue the free command to see the size of your swap and you should get the same value as the one displayed by the VI client.

You can issue the following command too: cat /proc/meminfo

You have also the esxtop command type m and you will get statistics about memory and swap.

View solution in original post

Reply
0 Kudos
1 Reply
Sangokan
Enthusiast
Enthusiast
Jump to solution

/dev/shm is created by redhat, it is a temporary file and it is not the swap http://free-electrons.com/kerneldoc/latest/filesystems/tmpfs.txt

You can issue the free command to see the size of your swap and you should get the same value as the one displayed by the VI client.

You can issue the following command too: cat /proc/meminfo

You have also the esxtop command type m and you will get statistics about memory and swap.

Reply
0 Kudos