|
|
Did a 24 hour stability test to explore Linux Mem usage: The most convenient command to look at memory is free -m, as in: [root@host ~]# free -m total used free shared buffers cached Mem: 1024 1005 19 0 9 782 -/+ buffers/cache: 212 811 Swap: 996 0 995 [root@host ~]# From the above, we can see that this Linux system has a total of 1024M of memory, but how much memory is currently occupied by the Linux system? The answer for most users is 1005M, which is not true. The current memory occupied by the VPS should be 212M, that is, the number under 1005: 212, representing the memory already occupied. The one after that, 811, represents the current Linux system's available memory. The line starting with "-/+ buffers/cache:" is the actual occupied and available memory. So, to see the memory usage, you should look at the line starting with "-/+ buffers/cache:". If the number at the end of this line is close to 0, then it means that the Linux system is running out of memory, and the Linux system will react slower at this time. If the number is still large, then the Linux system still has more memory available, and the system should not be slow.
|
Previous article: Linux kill -9 and not with -9 difference in detailNext article: Let your QQ big hidden in the city, reject spam, quiet from now on!
|