@H_502_2@Taskstats is a netlink-based interface for sending per-task and@H_502_2@此界面允许您根据您选择的进程监视cpu,内存和I / O使用情况.您只需在单个套接字上设置和接收消息. @H_502_2@这不区分(例如)磁盘I / O与网络I / O.如果这对您很重要,您可能会使用跟踪套接字 *** 作的LD_PRELOAD拦截库.当然,假设你可以控制你想要观察的程序的启动,并且它们不会在背后诡计. @H_502_2@如果那些仍然失败,我想不出任何轻量级解决方案,但linux-audit可以全局跟踪系统调用,这似乎比重新捕获和分析您自己的网络流量更直接. 总结
per-process statistics from the kernel to userspace. @H_502_2@Taskstats was designed for the following benefits: efficIEntly provIDe statistics during lifetime of a task and on its exit unifIEd interface for multiple accounting subsystems extensibility for use by future accounting patches
以上是内存溢出为你收集整理的Linux中每个进程的程序化资源监视全部内容,希望文章能够帮你解决Linux中每个进程的程序化资源监视所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)