I'm not sure how accurate it will be at keeping track of the time spent in very short-lived processes, but it'll at least list all the processes ever executed. On Linux, install the GNU accounting utilities, typically provided by a package called acct. The traditional way to log and track user CPU time is process accounting. What's the fairest way to monitor total CPU time - per user? (+500 Bounty) on Ask Ubuntu.If I am completely on the wrong track, there's another question: And it reports values that, while I don't understand them, correlate very well with measurements from time. At the moment I'm using the sum of utime, stime, cutime and cstime. I get "sensible looking" values for all kinds of things. For instance (in minutes): system cpu_time: 96.13 If I calculate the system's total cpu time using /proc/uptime, this value is fairly close to my sum for all users, but the difference is significant. Do I need to worry about those? I'm assuming that utime is the total number of cpu seconds for a PID, not counting the parent.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |