Home

Graphite – Ge9ng Started

image

Contents

1. e Build and Run Parsec app blackscholes CRA DEE OMEN make blackscholes parsec Nir Eh Parsec Benchmarks e Parsec apps that work in full and lite mode blackscholes canneal fluidanimate streamcluster swaptions facesim e Parsec apps that work in lite mode only dedup ferret and bodytrack IM lili CSAIL Regression Suite e If you modify Graphite remember to check that Graphite still works S make regress quick Wir CSAIL Outline e System Requirements amp Dependencies e Getting amp Building Graphite Simulating Your First Application e Adding Your Own Application e Benchmarks Debugging with GDB Nir Shi Debugging with GDB i e Two different debugging scenarios Debugging Graphite itself e g new models Debugging your application while running under Graphite You cannot do both at the same time e PIN provides two switches pause_tool for debugging the pintool Graphite is a pintool appdebug for debugging the application Documentation and examples in User Manual on Pin website e Basic instructions Start gdb in one window Invoke Graphite in separate window with the appropriate debug switch Tell GDB to connect to the appropriate process CSAIL Debugging Graphite GDB Window Graphite Window Edit tests Makefile tests Change PIN RUN variable to version with pause tool gdb path to pin intel64 bin pi
2. 09 stop time 2096455 E shutdown time 3705857 Wallclock Times us i MCP Core Summary nm e 0 Completion Time in ns A 0 ma deja Frequency in GHz 0 simulator start time o Total Synchronization Stal z o Total Network Recv stalls start start of main loop 0 m Memory Stall Time UL 0 Total Execution Unit sta I 0 Tuni Or za stop end of main loop 0 Total Network Recv sta T E z 0 Branch mene str shutdown simulator end time num correct o num incorrect E o type one bit 1024 one bit 1024 one bit 1024 Shared Memory Model summary Total Memory Accesses 2418 68 o Average Memory Access Latency in ns 9 55004 4 nan Total Instruction Memory Accesses 1543 o o Instruction Buffer Hits 1397 o o Average Instruction Memory Access Latency in ns 10 6189 nan nan Total Data Memory Accesses 875 68 Average Data Memory Access Latency in ns 7 66514 4 nan cache Summary Cache L1 I Cache Accesses 201 o o Cache Misses 115 o 0 Miss Rate 57 2139 Evictions o o 0 Event Counters Tag Array Reads 546 o o Tag Array writes 115 o o Data Array Reads 201 o o Data Array writes 115 o o Cache L1 D Cache Accesses 875 68 o Cache Misses 62 17 0 Miss Rate 7 08571 25 Read Accesses 323 26 0 Read Misses 21 7 o Read Miss Rate 6 50155 26 9231 write Accesses 552
3. 42 o write Misses 41 10 o write Miss Rate 7 42754 23 8095 Evictions 62 o Event Counters Tag Array Reads 1050 119 o Tag Array writes 69 18 o Data Array Reads 385 26 o Data Array writes 614 59 0 Graphite 2 2 20 simulation timers start time 1940209 stop time 2096455 shutdown time 3705857 Core Summary Total Instructions Completion Time in ns Average Frequency in GHz Total Synchronization stalls Total Network Recv Stalls 10 Total Memory Stall Time in ns Total Execution unit stall Time in ns Total Synchronization stall Time in ns Total Network Recv Stall Time in ns Branch predictor stats num correct au DO00000 Simulated Times num incorrect U inim e mory Accesses CU emo Total Me R Average Memory Access Latency in ns Time in ns the core runs 1543 0 Total Instruction Memory Accesses Instruction Buffer Hits 1397 0 o Average Instruction Memory Access Latency in ns 10 6189 nan nan Total Data Memory Accesses 875 68 o Average Data Memory Access Latenc 4 nan a u A Y Cache L1 I Cache Accesses 201 o o Cache Misses ea bs o o Miss Rate 57 2139 Evictions l 0 0 o Event Counters Tag Array Rea
4. Graphite Getting Started Getting up and running with Graphite ll CSAIL Wir CSAIL Outline e System Requirements amp Dependencies e Getting amp Building Graphite Simulating Your First Application e Adding Your Own Application e Benchmarks Debugging with GDB Nir sion System Requirements sd Operating System Ubuntu 12 04 Preferred Debian 6 Squeeze e Graphite has not been tested on other OSes Issues usually arise from different syscalls that result from oa compiler toolchains Lite mode may be easier to port If you pon Graphite to a new OS let us know and send us a patch e Lightweight Solution Try installing the Squeeze business card CD image on a VM Mir sa CSAIL Dependencies Intel PIN version 58423 Check Graphite Wiki for future updates Libraries g make boost Sr alele ger Update gt De Ger ns tol Oude ee e uite ale aul Sjeen umora Ru Erpkocsriu Ade ILG filesysteml 48 dev libboost systeml 48 dev NOTE For squeeze use boost 1 42 e Git Optional apt get install git core Wir CSAIL Outline e System Requirements amp Dependencies e Getting amp Building Graphite Simulating Your First Application e Adding Your Own Application e Benchmarks Debugging with GDB Nir Giba Getting Graphite i e Tarball method o Weer asi enem com mit eis im Graphite tarball master O graphite tar gz Git method Sane ones MO
5. TE_HOME contrib dsent Icarbon_sim Idsent_contrib Iboost_filesystem mt lboost_system mt pthread Istdc Im mir Running Outside the Build System CSAIL e Set process index Each instance of Graphite needs a process index Scripts in tools spawn instances ordered by index For single machine set environment variable por CARBON PROCESS np e Done 5 S PIN_HOME intel64 bin pinbin tool exit timeout 1 mt t S GRAPHITE_HOME lib pin_ sim c S GRAPHITE_HOME carbon_sim cfg PATH TO YOUR APPLICATION Wir CSAIL Outline e System Requirements amp Dependencies e Getting amp Building Graphite Simulating Your First Application e Adding Your Own Application e Benchmarks Debugging with GDB Nir sion SPLASH Benchmarks e SPLASH 2 under tests benchmarks Integrated into Graphite build system Easy make bornes cemeh SBE Mir CSAIL Parsec Benchmarks e Parsec 3 0 Download Parsec 3 0 and point SPARSEC_HOME to the parsec install directory Set SGRAPHITE_HOME to the Graphite install directory e Copy and Run Parsec setup script cd PARSEC HOME Cp r S GRAPHITE_HOME tools parsec setup_parsec_3 0 PARSEC HOME S setup_parsec_3 0 run sh i m lili CSAIL Parsec Benchmarks Edit tests Makefile parsec See S GRAPHITE HOME S vi tests Makefile parsec sec CORSO HOUT Co pearsee nmsreli direc tory make Sete parsec
6. ds 546 0 o Tag Array writes 2115 0 o Data Array Reads 201 o o Data Array writes peas o o Cache L1 D cache Accesses 875 68 o cache Misses 62 17 o Miss Rate 7 08574 25 Read Accesses 323 26 O Read Misses Pal 7 o Read Miss Rate 6 50155 26 9231 write Accesses 3552 42 o Write Misses 41 10 o Write Miss Rate 7 42754 23 8095 Evictions 62 o Event Counters Tag Array Reads 1050 119 o Tag Array writes 69 18 0 Data Array Reads 385 26 o Data Array writes 614 59 0 Cache L2 Cache Accesses Cache Misses Miss Rate Read Accesses Read Misses Read Miss Rate write Accesses write Misses write Miss Rate Evictions Dirty Evictions Event Counters Tag Array Reads Tag Array writes Data Array Reads Data av V Total Dram Accesses Average Dram Access Latency in ns Average Dram Contention Delay in ns Queue Model Queue Utilization am Directorv Cache ima Total Entries auto generated size in KB auto generated Access Time in clock cycles auto generated Total Accesses Total Evictions Total Back Invalidations Network Summary Network user Total Packets sent Total Flits Sent Total Bits Sent Total Packets Broadcasted Total Flits Broadcasted Total Bits Broadcasted Total Packets Received Total Flits Received Total Bits Received Average Packet Latency in clock cycles A
7. hm mir caroon Graphite gre Nir dobi Building Graphite m Makefile config Done gt meke Wir CSAIL Outline e System Requirements amp Dependencies e Getting amp Building Graphite e Simulating Your First Application e Adding Your Own Application e Benchmarks Debugging with GDB Wir Simulating Your First Application CSAIL Toy applications available under tests apps eg tests apps hello_world e Graphite s build system makes building apps a breeze gt maks nello world app Lest elau cagnode9 graphite test carbon sim make hello world app test tests unit Makefile 17 warning overriding commands for target clean tests apps Makefile 16 warning ignoring old com tests benchmarks Makefile 9 warning overriding make hello world app test tests unit Makefile 17 warning ignoring old con Makefile 23 warning overriding commands for target clean tests benchmarks Makefile 9 warning ignoring old commands for target clean make C afs csail mit edu u e elau graphite test carbon sim tests apps hello world make 1 Entering directory afs csail mit edu u e elau graphite test carbon sim tests apps hello world make C afs csail mit edu u e elau graphite test carbon sim tests apps hello world common make 2 Entering directory afs csail mit edu u e elau graphite test carbon_sim common make 2 Nothing to be done for all make 2 Leaving director
8. in red program output in black comments in blue Happy Simulating ET E lit ae
9. ived Average Packet Latency in clock cycles Average Packet Latency in ns Average Contention Delay in clock cycles Average Contention Delay in ns poooo 0000000000000 00000 0000000000000 9000000000000 29000000000000 29000000000000 9000000000000 9000000000000 9000000000000 9000000000000 li Distribution e Graphite simulations can be distributed Shared file system SSH permissions e Define process map in carbon sim cfg general process map a 1 77 process0 serverl csail mit edu processl server2 csail mit edu CSAIL Wir CSAIL Outline e System Requirements amp Dependencies e Getting amp Building Graphite Simulating Your First Application e Adding Your Own Application e Benchmarks Debugging with GDB OE Mii CSAIL Adding Applications e Create app in tests apps app_name include source code and header files e Create makefile TARGE app name SOURCE men S Tae Mae Alei ae io cosas e Done gt make age mams ado ces mir Running Outside the Build System CSAIL e Set environment variables ee Oe GRAIS BOMB scully ine Caco maniac 5 export PIN HOME path to pin 5 export LD LIBRARY PATH 5 PIN HOME intel64 runtime e If application uses carbon API functions compile e Use the following linker flags static u CarbonStartSim u CarbonStopSim u pthread_create u pthread_join LS GRAPHITE_HOME lib LS GRAPHI
10. mem true afs csail mit edu u e elau graphite test carbon sim tests apps hello world hello wo spawn py WARNING GRAPHITE HOME undefined Setting GRAPHITE HOME to afs csail mit edu u e elau gr spawn py Starting process 0 export CARBON PROCESS INDEX 0 export LD LIBRARY PATH afs csail group up carbon t n pinbin mt t afs csail mit edu u e elau graphite test carbon s p Hello world af antik fs csail mi carbon_sim tests apps hello_world carbon_sim cfg gener d_mem true afs csail mit edu u e elau graphite test carbon sim tests apps hello world he spawn py xited with return code 0 make 1 Leaving directory afs csail mit edu u e elau graphite test carbon sim tests apps hello world elaufcagnode9 graphite test carbon sim I Mir ee Simulation Results e Collects results for Core Models Cache Models Memory Models Network Models Simulation Results cont d lt Results results SDIR sim out Results directory SDIR automatically named using timestamp when simulation was started Format YYYY MM DD_HH MM SS Example results 2013 07 22 14 56 56 Can also use custom name for results directory make barnes bench test OUTPUT DIR barnes Results Dir results barnes Sym Link results latest points to the results directory of the most recently started simulation Graphite 2 2 20 Simulation timers start time 19402
11. nbin make hello world app test Pausing to attach to pid 20009 il To load the tool s debug info to gdb use add symbol file u Copy PID and add symbo We command graphite gtest tests apps hello_world lib pin_sim so from Graphite window to GDB window Ox2af6ddOabc60 s data 0x2af6dd876400 s bss 0x2af6dd881880 gdb attach 20009 gdb add symbol file u graphite gtest tests apps hello world lib pin_sim so 0x2af6dd0abc60 s data Ox2af6dd876400 s bss 0x2af6dd881880 gdb b handleFutexSyscall Set a breakpoint on Breakpoint 1 at Ox7fe24fe001d0 a Graphite symbol db Salons Application continues to breakpoint Continuing Commands you type in red program output in black comments in blue E mu i CSAIL Debugging an Application GDB Window Graphite Window Edit tests Makefile tests Change PIN_RUN variable to version with appdebug Change 02 to g in CXXFLAGS make hello world app test Application stopped until continued from debugger Start GDB then issue this command at the gdb prompt target remote 43760 cd GRAPHITE HOME gdb tests apps hello world hello world Copy target command from Graphite window gdb target remote 43760 Remote debugging using 43760 0x0000000000400300 in _start gdb b main Set a breakpoint on Breakpoint 1 at 0x7fe24fe001d0 an application symbol gdb c ENE Continuing Application continues to breakpoint Commands you type
12. verage Packet Latency in ns Average Contention Delay in clock cycles Average Contention Delay in ns Event Counters Buffer writes Buffer Reads Switch Allocator Traversals Crossbar Traversals Link Traversals Network Memory Total Packets Sent Total Flits Sent Total Bits Sent Total Packets Broadcasted Total Flits Broadcasted 318 113 0 16 3794 00000 00000 0000000000000 29000000000000 20000 2000 oo OO OO OO oooococecoosco 00000 Packets Sent Flits sent Bits Sent Packets Broadcasted Flits Broadcasted Bits Broadcasted Packets Received Flits Received Bits Received Average Packet Latency in clock cycles Average Packet ele in ns Average Contention Delay in clock cycles Average Contention Delay in ns Event Counters Buffer writes Buffer Reads Switch Allocator Traversals Crossbar Traversals Network Memory Total Packets Sent Total Flits Sent Total Bits Sent Total Packets Broadcasted Total Flits Broadcasted Total Bits Broadcasted Total Packets Received Total Flits Received Total Bits Received Average Packet Latency in clock cycles Average Packet Latency in ns Average Contention Delay in clock cycles Average Contention Delay in ns Event Counters Buffer writes Buffer Reads Switch Allocator Traversals crossbar Traversals Packets Sent Flits Sent Bits Sent Packets Broadcasted Flits Broadcasted Bits Broadcasted Packets Received Flits Received Bits Rece
13. y afs csail mit edu u e elau graphite test carbon sim common make C afs csail mit edu u e elau graphite test carbon sim tests apps hello world pin make 2 Entering directory afs csail mit edu u e elau graphite test carbon sim pin make 2 Nothing to be done for all make 2 Leaving directory afs csail mit edu u e elau graphite test carbon sim pin if e hello world hello world o nt hello world afs csail mit edu u e elau graphite te bcarbon sim a nt hello world afs csail mit edu u e elau graphite test carbon sim tests apps hell then g hello world o o hello world static u CarbonStartSim u CarbonStopSim upthread create upt st carbon sim tests apps hello world lib los services L afs csail mit edu u e elau graphite t rvices 25032 gcc 4 0 0 linux ia32 intel64 intel64 L afs csail mit edu u e elau graphite test carbon sim csail mit edu u e elau graphite test carbon sim tests apps hello world lib pthread lcarbon si mt pthread lorion fi cd afs csail mit edu u e elau graphite test carbon sim tests apps hello world afs csail mit lo world tools spawn py 1 afs csail mit edu u e elau graphite test carbon sim tests apps hello on tools pin current intel64 bin pinbin mt t afs csail mit edu u e elau graphite test carbon sim test 1l mit edu u e elau graphite test carbon sim tests apps hello world carbon sim cfg general tota Shared

Download Pdf Manuals

image

Related Search

Related Contents

User Manual  Bedienungsanleitung User Manual  SGT-0910 - Faca - MN  

Copyright © All rights reserved.
Failed to retrieve file