Labels

Thursday, August 8, 2019

how to check RAM used by each process


============ RAM used by each process ============
ps axo rss,comm,pid \
| awk '{ proc_list[$2]++; proc_list[$2 "," 1] += $1; } \
END { for (proc in proc_list) { printf("%d\t%s\n", \
proc_list[proc "," 1],proc); }}' | sort -n | tail -n 10 | sort -rn \
| awk '{$1/=1024;printf "%.0fMB\t",$1}{print $2}'

13 comments:

  1. Great post thanks for sharing the blog ,i will save it for future reference .
    Software testing in chennai

    ReplyDelete
  2. It's very useful article with informative and insightful content and i had good experience with this information.Enroll today to get free access to our live demo session which is a great opportunity to interact with the trainer directly which is a placement based Salesforce training India with job placement and certification . I strongly recommend my friends to join this Salesforce training institutes in hyderabad practical course, great curriculum Salesforce training institutes in Bangalore with real time experienced faculty Salesforce training institutes in Chennai. Never delay to enroll for a free demo at Salesforce training institutes in Mumbai who are popular for Salesforce training institutes in Pune.

    ReplyDelete
  3. ketika bermain dalam link http://188.114.232.104 dipastikan anda harus bermain dalam bandarq dimana anda bisa menjadi bandar dan mendapatkan kemenangan dengan mudah.

    ReplyDelete
  4. ketika anda bermain dalam link http://188.114.230.41 dipastikan anda akan bergabung dalam server pkv games dimana ini akan menjadi awal yang luar biasa bagi anda ketika bermain.

    ReplyDelete
  5. Thanks for creating such a wonderful blog post for reader. Will definitely come back. Also visit my blog to see Ankara Styles Pictures 2020

    ReplyDelete
  6. I’m impressed, I have to say. Hardly ever do I encounter a blog that’s both educative and entertaining. Your idea is outstanding; the problem is that not sufficient people speak intelligently about...dc jobs entry level

    ReplyDelete