Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | # |
2 | # Copyright 2005 Sun Microsystems, Inc. All rights reserved. | |
3 | # Use is subject to license terms. | |
4 | # | |
5 | # ident "@(#)README.performance_check 1.1 05/10/05 SMI" | |
6 | # | |
7 | # | |
8 | # PERFORMANCE_CHECK | |
9 | # | |
10 | # This explains how to enable and use the PERFORMANCE_CHECK feature | |
11 | # | |
12 | ||
13 | [-] Enabling this Features: | |
14 | ||
15 | 1) Recompile legion | |
16 | You will need to compile legion with PERFORMANCE_CHECK=1. | |
17 | Edit your GNUMakefile in your legion build directory and | |
18 | re-compile legion. | |
19 | ||
20 | 2) Edit your config file (Optional Step) | |
21 | Modify your legion config file and add the 'perf_cycle_gap' value | |
22 | to your processor directive. You can use this variable to override | |
23 | the default value for perf_cycle_gap which is 10000000 instns. | |
24 | This determines the gap between performance checks in number of | |
25 | instructions executed. Decreasing this below the default can | |
26 | impact the performance of your legion. | |
27 | ||
28 | Example: | |
29 | processor "niagara" { | |
30 | clkfreq 5000000 ; | |
31 | cores 1; | |
32 | vthreads 1; | |
33 | nglobals 4; | |
34 | nwins 8; | |
35 | rstv 0xfff0000020; | |
36 | maxtl 7; | |
37 | perf_cycle_gap 0x10000000; | |
38 | } | |
39 | ||
40 | [-] Output | |
41 | ||
42 | When running legion in this mode, the simulation will print | |
43 | performance statistics since every 10000000 instns. | |
44 | ||
45 | Example: | |
46 | ||
47 | [0] Simulator mips=12.26, average mips=12.26, total_time=0 seconds, delta_time=815 milliseconds | |
48 | [0] Instn cnts: R=19 (0.00%), H=151008 (1.51%), P=9848973 (98.49%), U=0 (0.00%), Total=10000000 | |
49 | [0] xdcache: hits=2629150 (96.18%), misses=104374 (3.82%), avg_hits=(96.18%) | |
50 | [0] xicache: hits=9997121 (99.97%), misses=2879 (0.03%), avg hits=(99.97%) | |
51 | Instn count delta : 10000000 | |
52 | [0] Simulator mips=21.82, average mips=15.70, total_time=1 seconds, delta_time=458 milliseconds | |
53 | [0] Instn cnts: R=19 (0.00%), H=188652 (0.94%), P=19811329 (99.06%), U=0 (0.00%), Total=20000000 | |
54 | [0] xdcache: hits=3139833 (98.27%), misses=55321 (1.73%), avg_hits=(97.31%) | |
55 | [0] xicache: hits=9990666 (99.91%), misses=9334 (0.09%), avg hits=(99.94%) | |
56 | Instn count delta : 10000000 | |
57 | [0] Simulator mips=20.66, average mips=17.07, total_time=1 seconds, delta_time=484 milliseconds | |
58 | [0] Instn cnts: R=19 (0.00%), H=189247 (0.63%), P=29810734 (99.37%), U=0 (0.00%), Total=30000000 | |
59 | [0] xdcache: hits=3724278 (99.46%), misses=20038 (0.54%), avg_hits=(98.14%) | |
60 | [0] xicache: hits=9999780 (100.00%), misses=220 (0.00%), avg hits=(99.96%) | |
61 | Instn count delta : 10000000 | |
62 | [0] Simulator mips=19.93, average mips=17.70, total_time=2 seconds, delta_time=501 milliseconds | |
63 | [0] Instn cnts: R=19 (0.00%), H=204476 (0.51%), P=39795505 (99.49%), U=0 (0.00%), Total=40000000 | |
64 | [0] xdcache: hits=3606325 (99.54%), misses=16692 (0.46%), avg_hits=(98.52%) | |
65 | [0] xicache: hits=9998143 (99.98%), misses=1857 (0.02%), avg hits=(99.96%) | |
66 | Instn count delta : 10000000 | |
67 |