Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I list out all processes that are currently running on my system, and print the virtual pages allocated to it and number of page faults associated with each process?

share|improve this question
    
I'd say Rajesh' answer below is pretty much what you are looking for. Have a look at it please. If you feel that your question is answered, please to mark it as such. This will make clear that the question is closed and help others with a similar issue. Otherwise a comment on what is missing would be appreciated. –  jaume Nov 29 '12 at 14:22

2 Answers 2

up vote 0 down vote accepted

I think this is what you are looking for: print virtual pages associated with processes

I don't know about associating page faults to pages or to processes. But the virtual pages of each process are available from

/proc/pid/smaps

where you replace pid with the pid of each task you want info on.

share|improve this answer
    
Whilst a link may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  slhck Dec 5 '12 at 6:40

I think this is what you are looking for:

ps -eo pid,sz,maj_flt,min_flt

See ps manual for more information.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.