In today’s article, we will be learne the vmstat command, which is the system performance monitoring command in Linux.
1. if #vmstat is used without parameters, shows the virtual memory usage since the last time the system was running.
1 2 3 4 | # vmstat procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st 0 0 3353932 118248 334852 14081092 0 0 7 13 0 0 0 0 100 0 0 |
2. It is usually used with two parameters. The first parameter is the sampling time interval, the second parameter is the sampling number;
1 2 3 4 5 6 7 8 | # vmstat -S M 3 5 (-S M değerleri MB cinsinden gösterir) procs -----------memory-----------swap-- ----io----system-- -----cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st 0 0 3275 115 327 13751 0 0 7 13 0 0 0 0 100 0 0 0 0 3275 115 327 13751 0 0 0 60 1019 1037 0 0 100 0 0 0 0 3275 115 327 13751 0 0 0 35 1012 1039 0 0 100 0 0 0 0 3275 115 327 13751 0 0 0 20 1012 1035 0 0 100 0 0 0 0 3275 115 327 13751 0 0 0 16 1014 1027 0 0 100 0 0 |
3. Meanings of values;
r; number of processes waiting for runtime,
b; number of processes in uninterruptible sleep state.