Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any utility out there for linux that will give me a PStree with memory use per process?

I guess it's possible in theory to grab a pstree with pids, then comb ps itself for the memory use for that pid and merge them together via code, but I would be amazed if someone hasn't done this already before I reinvent the wheel.

Google is failing me, unless I am searching poorly.

share|improve this question
Have you tried htop in tree mode? – Darth Android Nov 6 '12 at 2:14
htop does not have a "run once" batch mode unfortunately, interactive only – ck_ Nov 6 '12 at 6:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.