Good morning, i need your help please
Ina production System, linux server was Reported performance issues, our system admin refers as memory
Here the command:
free -m
This is the output, but id like to know if those values are given in GB, for instance Mem
16047= 16 GB? and 15566=15 GB used? and cahche 8 GB ?
total used free shared buffers cached
Mem: 16047 15566 481 0 621 7970
-/+ buffers/cache: 6974 9073
Swap: 16002 0 16001
If so i dont see any any performance related to memory right?
but after a while they appiled this command, so i would like to know what i does:
sudo sync && sudo sysctl -w vm.drop_caches=3
afterward memory was released and they report the application is normal, so
total used free shared buffers cached
Mem: 16047 6600 9447 0 11 218
-/+ buffers/cache: 6369 9678
Swap: 16002 0 16001
So i came up with these questions:
1 Cache was Released to memory, so if cache had 8 GB is not good for Performance? bcz when aplying drop cache the number was reduced to 218 and they report the application was OK
2 I need a short explanation for the command
sudo sync && sudo sysctl -w vm.drop_caches=3
3 when to decide and why should apply this command? and when no to ?
I appreciate your help in advanced