Below "ps" Command can be used to list cumulative used Memory in GB for all non root users on Linux Hosts.
Below is example output of above command which shows cumulative used memory for all non root users in GB.
ps -N -U root --no-headers -o rss | (tr '\n' +; echo 0) | bc | while read -r rss; do echo $((rss/1024/1024))"GB"; done
Below is example output of above command which shows cumulative used memory for all non root users in GB.
ps -N -U root --no-headers -o rss | (tr '\n' +; echo 0) | bc | while read -r rss; do echo $((rss/1024/1024))"GB"; done
21 GB
21 GB
Products to which Article Applies
All Linux Operating Systems
tarun boyella
No comments:
Post a Comment