Print hugepage consumption of each process

grep -e AnonHugePages /proc/*/smaps | awk '{ if($2>4) print $0} ' | awk -F "/" '{system("cat /proc/" $3 "/cmdline");printf("\n");print $0; printf("\n");}'
The sample output is from an Android Device
Sample Output
/vendor/bin/hw/qcrild-c2 smaps:AnonHugePages:      2048 kB

/vendor/bin/imsdatadaemon smaps:AnonHugePages:      4096 kB

/vendor/bin/imsdatadaemon smaps:AnonHugePages:      2048 kB

What Others Think

If you are tired of doing your homework, this article is for you. Here you will find all the tips for students: how to do their homework faster. I checked the tips on myself and really started doing my homework faster.
ScarlettReid · 38 weeks and 1 day ago
What is this really, It is being very difficult with less information on this point that you have shared here? Make it more informative by expanding the words that you have given. Go for a detailed description of everything. http://thegouthelp.com/gout-diagnosis/gout-causes-diagnosis-and-treatment/">gout in hands
zaiyamariya · 37 weeks and 1 day ago
learned alot here but are there any other alternatives? lifecoachboiseid.com
looneyhans · 36 weeks ago
Totally efficient and so friendly. I'd highly recommend them to mold remediation
idasanka · 31 weeks and 3 days ago
kitchen remodeling dayton ohio Just found a site a could relate to
yeoyeo · 29 weeks and 5 days ago
love your ideas! stairs
sammm · 26 weeks and 4 days ago
Waow this is quite pleasant article, my sister love to read such type of post, I am going to tell her and bookmarking this webpage. Thanks Europa-Road nemzetközi fuvarozás
muneerahmed · 9 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: