AlphaNT: Windows NT on Alpha (1995-2000)
 help / color / mirror / Atom feed
* CPUtime benchmarking
@ 1996-06-20 19:16 JimColwell
  0 siblings, 0 replies; 2+ messages in thread
From: JimColwell @ 1996-06-20 19:16 UTC (permalink / raw)


Thanks for all of the replies with suggestions on how to time program
execution, but it seems that an equivalent to the (ugh!) unix time or timex
does not exist on winNT.  I don't have the reskit timethis, but it
apparently measures elapsed time (i.e. wall clock time), which I don't want.
I've found a way of using PerformanceMonitor to get an accurate measurement
of a specific process's CPU time, but it's very awkward.  Essentially, I
want to time the CPU seconds required to run a program called BM5. PerfMon
provides %processor time for a 

specific process (BM5), but the process has to be running for you to pick it
from the Edit/Add_to_chart/(object)Process (instance) menu.  Since this
program only takes about 6 seconds to execute on my alpha404/233 (was 300
seconds on a DEC20/60), it is difficult to pick it up.  The solution was to
do a dummy run of BM5 with the purpose of picking the process name BM5 (no
fumble fingers), and save the setup.  Later, you can run PerfMon with this
setup, and sure enough, it logs the BM5 process when it appears.  Looking at
%processor time for process BM5 shows some peaks and valleys, with an
(arithmetic) average value of 93%.  Applying this 93% to the wall clock time
measured when running BM5 (while PerfMon is also running) gives the cpu time
required for BM5 (sum of cpu times in user mode and system support).  If you
simply use the processor or system %processor time, it shows 100% for the
duration of the BM5 run (i.e. includes added system overhead not associated
with the BM5 process).  p.s. it would be nice to have a dialog box for
process object/instance selection to define a process which is not currently
running.  Thanks & bye.

Jim Colwell, Ship Dynamics Group, DREA .........alphaNT rules !

-
(The above mail message was from "JimColwell@gumby" <colwell@drea.dnd.ca>, to alphant)
To subscribe to this list: To: majordomo@garply.com, Text: SUBSCRIBE ALPHANT
To unsubscribe:            To: majordomo@garply.com, Text: UNSUBSCRIBE ALPHANT
Alpha NT FAQ: http://www.garply.com/tech/comp/sw/pc/nt/ant_faq.html

^ permalink raw reply	[flat|nested] 2+ messages in thread
* RE: CPUtime benchmarking
@ 1996-06-21 18:00 Sakovich, Aaron
  0 siblings, 0 replies; 2+ messages in thread
From: Sakovich, Aaron @ 1996-06-21 18:00 UTC (permalink / raw)


owner-alphant wrote:
>Thanks for all of the replies with suggestions on how to time program
>execution, but it seems that an equivalent to the (ugh!) unix time or   
timex
>does not exist on winNT.  I don't have the reskit timethis, but it
>apparently measures elapsed time (i.e. wall clock time), which I don't   
want.
>I've found a way of using PerformanceMonitor to get an accurate   
measurement
>of a specific process's CPU time, but it's very awkward.  Essentially, I
>want to time the CPU seconds required to run a program called BM5.   
PerfMon
>provides %processor time for a
>
>specific process (BM5), but the process has to be running for you to   
pick it
>from the Edit/Add_to_chart/(object)Process (instance) menu.  Since this
>program only takes about 6 seconds to execute on my alpha404/233 (was   
300
>seconds on a DEC20/60), it is difficult to pick it up.  The solution was   
to
>do a dummy run of BM5 with the purpose of picking the process name BM5   
(no
>fumble fingers), and save the setup.  Later, you can run PerfMon with   
this
>setup, and sure enough, it logs the BM5 process when it appears
:
:
>Jim Colwell, Ship Dynamics Group, DREA .........alphaNT rules !

Alternatively, you can set PerfMon up to log everything relating to   
process execution, then go back, set some bookmarks, and examine your   
actual run.  The report option should show you more detail about a   
specific execution.  From the looks of it, you'll need to have the   
process running when you start the logging -- I just tried it without the   
process running when I started the log, and it didn't show up, but when I   
already had it running, it stayed there.

Since you're only concerned about CPU, it won't matter that the process   
is probably in cache.  Be sure to specify that your "Options, Data From"   
is your log file.  When you go back to analyze the data, look at the   
chart and select "Edit, Time Window".  Move the handles to frame the data   
you're interested in looking at, then go to the Report.  Add the %   
Processor time to your report, get a number for the amount of time spent   
processing during that period and multiply it by the total duration of   
your period (your Time Window).  Voila, CPU time.

Not as easy as a SHOW PROCESS/ACCOUNTING, but hey, it works.

Aaron
 --
Aaron Sakovich ---------------------------------------- aaron@garply.com
Alpha NT mail list ------------------------------- Alpha NT file archive
alphant@garply.com   http://www.garply.com/tech/comp/sw/pc/nt/alpha.html  
-
(The above mail message was from "Sakovich, Aaron" <ASakovich@ncs.com>, to alphant)
To subscribe to this list: To: majordomo@garply.com, Text: SUBSCRIBE ALPHANT
To unsubscribe:            To: majordomo@garply.com, Text: UNSUBSCRIBE ALPHANT
Alpha NT FAQ: http://www.garply.com/tech/comp/sw/pc/nt/ant_faq.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-06-21 18:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-20 19:16 CPUtime benchmarking JimColwell
  -- strict thread matches above, loose matches on Subject: below --
1996-06-21 18:00 Sakovich, Aaron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox