Hi, all:

I find that periodical collection of resource usage is implemented by reading 
'/proc/pid/stat' file once per second, instead of running htop command in shell 
and parsing output of it, and currently it seems that mesos can only monitor 
usage of per-process, necessary extention must be made to achieve fine-grained 
monitoring of each task if wanted, however, we can get usage from htop output 
directly no matter for a process or task.

Could anybody explain why reading '/proc/pid/stat' file scheme is selected, is 
there some reasons?

Thank you and best regards.

Reply via email to