分析网络软件/概要分析软件,大量的系统调用的等待 [英] Profiling network software / Profiling software with lot of system call waiting

查看:124
本文介绍了分析网络软件/概要分析软件,大量的系统调用的等待的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个复杂的网络软件和我有麻烦确定如何提高系统的性能。

I'm working on a complex network software and I have trouble determining how to improve the systems performance.

具体而言,其中使用阻断同步调用的软件的一部分。由于该系统的这一部分是做重计算它几乎是不可能,以确定是否该组件的缓慢通过这些计算或等待该系统的其它部分造成的。

Specifically in one part of the software which is using blocking synchronous calls. Since this part of the system is doing heavy computations it's nearly impossible to determine whether the slowness of this component is caused by these computations or the waiting for the other parts of the system.

是否有任何重量轻廓线仪,可以捕捉到这一信息?我无法使用重型轮廓像Valgrind的,因为这将完全扭曲的结果(虽然Valgrind的将是完美的,因为它抓住了所有必需的信息)。

Are there any light-weight profilers that can capture this information? I can't use heavy duty profile like valgrind since that would completely skew the results (although valgrind would be perfect, since it captures all the required information).

我试着用OProfile的,但我只是无法得到任何有意义的结果出来的(也许如果有一个简明教程某处...)。

I tried using oProfile but I just wasn't able to get any meaningful results out of it (perhaps if there is a concise tutorial somewhere...).

推荐答案

您需要的是什么,让你叠的样品,在挂钟时间(不只是CPU时间一样的 gprof的的),和由线(不只是通过功能)包含线路样品的百分数报告。

What you need is something that gives you stack samples, on wall-clock time (not just CPU time like gprof), and reports by line (not just by function) the percent of samples containing the line.

放大将做到这一点,
但我只是<一个href=\"http://stackoverflow.com/questions/375913/what-can-i-use-to-profile-c-$c$c-in-linux/378024#378024\">do随机暂停。这里的为什么它的工作原理
这里有一个窜吹<一个href=\"http://stackoverflow.com/questions/926266/performance-optimization-strategies-of-last-resort/927773#927773\">example.
这里的<一个href=\"http://stackoverflow.com/questions/4387895/if-profiler-is-not-the-answer-what-other-choices-do-we-have/4390868#4390868\">another解释。

Zoom will do it, but I just do random-pausing. Here's why it works. Here's a blow-by-blow example. Here's another explanation.

这篇关于分析网络软件/概要分析软件,大量的系统调用的等待的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆