Using a script with shell + awk allows us to have the sum of all processes. Root 1 0.0 0.0 10348 700 ? Ss Feb24 0:01 init Per-process memory usage Vss: called VSZ in the ps command and VIRT in top, is the total amount of memory mapped by a process. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND Same if you want to retrieve memory usage for one process, using " ps aux" gives, in the RSS column, the reserved memory for each process : ps aux If you take only "real used" memory, excluding buffers and caches, then we see that we use only 2160 Mb (second line, second column). We can see that we are using 3516 Mb over the 5963 Mb availables. It is quite easy to retrieve total memory usage on a Linux or Unix server, with free command.
0 Comments
Leave a Reply. |