On 9/10/12 5:21 PM, Mark Rivers wrote:
> Here is the output of "time" when running it in a mode where "top" showed the application using about 95% of a single CPU (on a 16 core system). This is with my calculations enabled.
>
> 23.547u 16.516s 0:52.39 76.4% 0+0k 0+24io 0pf+0w
>
> This is the output of time when the calculations are disabled and top shows about 80% CPU in my application.
>
> Disabling my calculations:
> 11.401u 8.008s 0:27.60 70.2% 0+0k 0+8io 0pf+0w
>
> So it spends a substantial amount of CPU time in both User Mode and Kernel Mode.
Hi, Mark.
OK, then I don't know what's going on. Maybe gprof has problems
with threaded programs (??).
I'm really not answering your question now, but another idea: Is
your Linux system new enough that you have the perf subsystem
available? You could try that instead:
$ perf record ../../bin/linux-x86/quadEMTestApp
$ perf report
Lewis
- Replies:
- Re: How to profile an EPICS application on Linux Andrew Johnson
- RE: How to profile an EPICS application on Linux Mark Rivers
- References:
- How to profile an EPICS application on Linux Mark Rivers
- Re: How to profile an EPICS application on Linux J. Lewis Muir
- RE: How to profile an EPICS application on Linux Mark Rivers
- Re: How to profile an EPICS application on Linux J. Lewis Muir
- RE: How to profile an EPICS application on Linux Mark Rivers
- Navigate by Date:
- Prev:
Re: camonitor bug for string as array of chars Andrew Johnson
- Next:
RE: camonitor bug for string as array of chars Mark Rivers
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: How to profile an EPICS application on Linux Mark Rivers
- Next:
Re: How to profile an EPICS application on Linux Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|