Today we will examine what operations we can perform on ram with Linux Ram Monitoring Commands.
There may be times when an operating system administrator or a database administrator has a problem with ram or needs to gather information about ram.
You may want to learn how much RAM is currently used, how much buffer cache is, and take actions regarding them.
Therefore, you can collect the necessary information for ram with the help of the following commands.
First of all, you can get detailed information about ram with meminfo.
1 |
cat /proc/meminfo |
You can get information about ram usage with the free command, although it is less detailed than meminfo.
You can find out the values in megabytes with the -m parameter, and the values in g and gb.
1 |
free -m |
You can get information about ram usage with vmstat command, although it is less detailed than meminfo.
You can view other parameters by typing –help instead of -s for use with different parameters.
1 |
vmstat -s |
You can collect very detailed information about ram with the dmidecode command. Usage for ram is as follows.
1 |
dmidecode –type memory |