sysdig

2015-12-11 22:52 GMT+08:00 sujz.buaa <[email protected]>:

> 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.
>
>



-- 
Deshi Xiao
Twitter: xds2000
E-mail: xiaods(AT)gmail.com

Reply via email to