* Bug? prof-pixstats vs. hiprof
@ 1999-02-02 5:00 vlasmari
1999-02-08 5:00 ` John P Williams
0 siblings, 1 reply; 2+ messages in thread
From: vlasmari @ 1999-02-02 5:00 UTC (permalink / raw)
Hello,
I'm running DU4.0(D or E), and I'm trying to profile
my code (I want to know which routines are consuming
the most CPU cycles). I used both 'hiprof' and
'prof-pixstats', and while expecting that the results will
be slightly different due to the different ways each
command does its profiling ('hiprof' uses the Program
Counter while 'prof-pixstats' uses the basic block counting),
I was surprised by how different the results are (see
bottom of this message for the results).
Can anyone please tell me why the results differ so much?
According to the man pages, using 'prof-pixstats' "prints
a flat profile of CPUT cycles used by procedures" while
'hiprof' produces a flat profile of "the cpu-time
spent in each procedure, measured as machine-cycles".
Is there a bug in the commands? Thanks a lot.
The commands I ran are:
A. Hiprof:
hiprof -pthread -L<libpath> -incobj <dynamic library> -all -display
<executable>
B. Prof-pixstats:
prof -pixstats -L/vobs/temip/mmlib/lib -all -incobj ioss_xti_tty.so
channel_sim
The results are:
A. Hiprof:
-----------
granularity: cycles; units: seconds*1e-6; total: 30515246e-6 seconds
% cumulative self self/call total/call total units units calls
seconds seconds name 58.5 17846086 17846086 25852 690317e-9 694121e-9
ioss_msgP_validate_msg [7] 11.0 21189677 3343591 10107 330819e-9
332737e-9 ioss_submsgP_validate_submsg [14] 2.3 21895651 705974 172708
4088e-9 6573e-9 ioss_workgroupP_get_specific [18] 1.4 22336377 440726
176704 2494e-9 2494e-9 tis_getspecific [34] 1.2 22695686 359309 31117
11547e-9 11547e-9 ioss_msgq__seize_lock [41] 1.0 22988757 293071 31107
9421e-9 9421e-9 ioss_msgq__release_lock [45] 0.9 23261805 273048 13222
20651e-9 49477e-9 ioss_msgq_get_stats [26]
B. Prof-pixstats: ------------------ cycles %cycles cum% instrs c/i
calls c/call name 22164174 23.2% 23.2% 8109176 2.7 13606 1629
ioss_msgq_get_stats 5057660 5.3% 28.5% 3117716 1.6 115940 44
ioss_exlistP_validate_list 4620408 4.8% 33.3% 3554160 1.3 177708 26
ioss_workgroupP_get_specific 3842160 4.0% 37.4% 3329872 1.2 32018 120
ioss_msgq__seize_lock 3840960 4.0% 41.4% 3360840 1.1 32008 120
ioss_msgq__release_lock 3818136 4.0% 45.4% 2363608 1.6 181816 21
tis_getspecific 3788326 4.0% 49.3% 3083420 1.2 26599 142
ioss_msg_is_valid_msg_handle
Thanks again.
--
Vincent Lasmarias | Voice : (604) 205-9941 ext. 5934
CrossKeys Systems Corp. (West) | Fax : (604) 205-9940
#502 - 4180 Lougheed Highway | E-Mail: vincent.lasmarias@crosskeys.com
Burnaby, B.C., Canada, V5C 6A7 | URL : http://www.crosskeys.com/
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug? prof-pixstats vs. hiprof
1999-02-02 5:00 Bug? prof-pixstats vs. hiprof vlasmari
@ 1999-02-08 5:00 ` John P Williams
0 siblings, 0 replies; 2+ messages in thread
From: John P Williams @ 1999-02-08 5:00 UTC (permalink / raw)
To: vlasmari
Hi,
The use of the "hiprof" command, instead of the "atom" command
suggests that the Atom ADK (ATMBASE400) was installed and used.
The problem looks like a bug in the ADK, so if you de-install
the ADK (with setld -d), the problem may be resolved.
However, note that even the official hiprof's -cputime option has
proven inaccurate with some threaded programs, because it uses the
Alpha RPCC instruction to access the cycle counter, and this counter
can not be reliably mapped to user-level pthreads. So, expect the
option to be unavailable for threaded programs in future releases
and patch kits. A new PC-sampling technique has been developed to
replace the -cputime option, and rollout plans are underway.
Thanks
John P Williams, Unix development environment group, Compaq
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-02-08 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-02 5:00 Bug? prof-pixstats vs. hiprof vlasmari
1999-02-08 5:00 ` John P Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox