Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am looking for a daemon that logs, the amount of resource, utilized by every user. For every user, I would like to record the cpu-time and memory used over the lifetime of his/her processes. If possible the amount of time the process spent in different states [R, D, S].

This is something in the line of the sadc family of tools, but I do not think it logs per user data. Could someone point me to a tool which does what I want ? This seems to be too common a task not to have a standard tool around for. So wanted to check before writing something quick and dirty that surely will not be as well thought out as an existing tool.

A similar question was asked here Finding user's resource utilization in ubuntu linux What I am looking for is a tool rather how to do it programatically.

share|improve this question

migrated from stackoverflow.com Jul 15 '11 at 3:03

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

up vote 2 down vote accepted

Sounds like you might want process accounting. Does accton look like what you need?

share|improve this answer
    
Perfect. Thanks. –  san Jul 14 '11 at 17:55
    
I don't know what HN is, so maybe or maybe not? :) –  Rich Jul 14 '11 at 21:07
add comment

You would need to turn on auditing; See the auditd manpage

share|improve this answer
    
I skimmed the documentation. Unless I have missed it, it seems it essentially logs the syscalls, the command-line, and metadata about file-IO. So it seems too low level to obtain % CPU and memory usage per user easily. I was looking more in the lines of something that logs at regular intervals the fields of top or ps. –  san Jul 14 '11 at 16:56
add comment

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.