{"title":"Trace-driven and program-driven simulation: a comparison","authors":"B. Malloy","doi":"10.1109/MASCOT.1994.284392","DOIUrl":null,"url":null,"abstract":"We compare the program-driven and trace-driven approach to simulating the parallel execution of a program on a multiprocessor. To obtain the traces, we used a program-driven simulator that actually executes the instructions in an input program. Our simulator is coded in the process-oriented simulation language SimCal and is guided by a parameterized computational model that describes the target multiprocessor. We have used the program-driven multiprocessor simulator to execute parallel threads produced by our parallelizing compiler and we have validated the simulator by comparing the simulation results to results obtained through execution of the threads on an actual multiprocesser, the AT&T 3B2. To compare the trace-driven and program-driven approaches, we used the program-driven simulator to obtain traces of the execution of the threads. We conclude that the trace-driven approach is faster than the program-driven approach since it doesn't actually execute the threads. However, the trace-driven approach must store the traces and therefore requires more space than the program-driven approach.<<ETX>>","PeriodicalId":288344,"journal":{"name":"Proceedings of International Workshop on Modeling, Analysis and Simulation of Computer and Telecommunication Systems","volume":"32 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1994-01-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of International Workshop on Modeling, Analysis and Simulation of Computer and Telecommunication Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/MASCOT.1994.284392","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2
Abstract
We compare the program-driven and trace-driven approach to simulating the parallel execution of a program on a multiprocessor. To obtain the traces, we used a program-driven simulator that actually executes the instructions in an input program. Our simulator is coded in the process-oriented simulation language SimCal and is guided by a parameterized computational model that describes the target multiprocessor. We have used the program-driven multiprocessor simulator to execute parallel threads produced by our parallelizing compiler and we have validated the simulator by comparing the simulation results to results obtained through execution of the threads on an actual multiprocesser, the AT&T 3B2. To compare the trace-driven and program-driven approaches, we used the program-driven simulator to obtain traces of the execution of the threads. We conclude that the trace-driven approach is faster than the program-driven approach since it doesn't actually execute the threads. However, the trace-driven approach must store the traces and therefore requires more space than the program-driven approach.<>