Thread: [Sablevm-developer] Re: SableVm question on SpecJvm98
Brought to you by:
egagnon
From: Etienne M. G. <eti...@uq...> - 2003-01-17 14:30:49
Attachments:
runbench-gc
|
Hi Dayong, I have attached the script I used to collect GC time measurements. It is easy to modify to collect other measurements (and adjust parameters). It assumes that you put each SPEC benchmark in a subdirectory called: SPEC_javac, SPEC_db, ... and that you put SableCC and Soot in subdirectories called: SableCC and SOOT In each of these directories, you should put a file called "entryPoint" which contains the name of the main class of the benchmark. You should put the classes of each benchmark in a sub-subdirectory called "classes", and put any input file in the appropriate directory. Here's the tree for the SPEC_compress benchmark (as shown by "find ."): . ./SPEC_compress ./SPEC_compress/classes ./SPEC_compress/classes/spec ./SPEC_compress/classes/spec/benchmarks ./SPEC_compress/classes/spec/benchmarks/_201_compress ./SPEC_compress/classes/spec/benchmarks/_201_compress/Compress.java.v18a ./SPEC_compress/classes/spec/benchmarks/_201_compress/Code_Table.class ./SPEC_compress/classes/spec/benchmarks/_201_compress/Comp_Base.class ./SPEC_compress/classes/spec/benchmarks/_201_compress/Compress.class ./SPEC_compress/classes/spec/benchmarks/_201_compress/Compress.java ./SPEC_compress/classes/spec/benchmarks/_201_compress/Decompressor$Suffix_Table.class ./SPEC_compress/classes/spec/benchmarks/_201_compress/Compressor$Hash_Table.class ./SPEC_compress/classes/spec/benchmarks/_201_compress/Compressor.class ./SPEC_compress/classes/spec/benchmarks/_201_compress/Decompressor$De_Stack.class ./SPEC_compress/classes/spec/benchmarks/_201_compress/Decompressor.class ./SPEC_compress/classes/spec/benchmarks/_201_compress/Harness.class ./SPEC_compress/classes/spec/benchmarks/_201_compress/Harness.java ./SPEC_compress/classes/spec/benchmarks/_201_compress/Input_Buffer.class ./SPEC_compress/classes/spec/benchmarks/_201_compress/Main.class ./SPEC_compress/classes/spec/benchmarks/_201_compress/Main.java ./SPEC_compress/classes/spec/benchmarks/_201_compress/Output_Buffer.class ./SPEC_compress/classes/spec/benchmarks/_201_compress/validity1.dat ./SPEC_compress/classes/spec/benchmarks/_201_compress/validity10.dat ./SPEC_compress/classes/spec/benchmarks/_201_compress/validity100.dat ./SPEC_compress/classes/spec/harness ./SPEC_compress/classes/spec/harness/BenchmarkDone.class ./SPEC_compress/classes/spec/harness/About.class ./SPEC_compress/classes/spec/harness/About.java ./SPEC_compress/classes/spec/harness/OrderedProperties.class ./SPEC_compress/classes/spec/harness/BenchmarkDone.java ./SPEC_compress/classes/spec/harness/BenchmarkTime.class ./SPEC_compress/classes/spec/harness/BenchmarkTime.java ./SPEC_compress/classes/spec/harness/Changes.v18 ./SPEC_compress/classes/spec/harness/ConsoleWindow.class ./SPEC_compress/classes/spec/harness/ConsoleWindow.java ./SPEC_compress/classes/spec/harness/Constraints.class ./SPEC_compress/classes/spec/harness/Constraints.java ./SPEC_compress/classes/spec/harness/Context.class ./SPEC_compress/classes/spec/harness/Context.java ./SPEC_compress/classes/spec/harness/Dialog2.class ./SPEC_compress/classes/spec/harness/Dialog2.java ./SPEC_compress/classes/spec/harness/Dialog2Card.class ./SPEC_compress/classes/spec/harness/Dialog2Card.java ./SPEC_compress/classes/spec/harness/Logo.class ./SPEC_compress/classes/spec/harness/Logo.java ./SPEC_compress/classes/spec/harness/StopBenchmarkException.class ./SPEC_compress/classes/spec/harness/OrderedProperties.java ./SPEC_compress/classes/spec/harness/ProgramRunner.class ./SPEC_compress/classes/spec/harness/ProgramRunner.java ./SPEC_compress/classes/spec/harness/QuickCalc.class ./SPEC_compress/classes/spec/harness/QuickCalc.java ./SPEC_compress/classes/spec/harness/QuickSort.class ./SPEC_compress/classes/spec/harness/QuickSort.java ./SPEC_compress/classes/spec/harness/ReportFrame.class ./SPEC_compress/classes/spec/harness/ReportFrame.java ./SPEC_compress/classes/spec/harness/RunProgram.class ./SPEC_compress/classes/spec/harness/RunProgram.java ./SPEC_compress/classes/spec/harness/SpecBenchmark.class ./SPEC_compress/classes/spec/harness/SpecBenchmark.java ./SPEC_compress/classes/spec/harness/SpecJava.class ./SPEC_compress/classes/spec/harness/SpecJava.java ./SPEC_compress/classes/spec/harness/SpecProps.class ./SPEC_compress/classes/spec/harness/SpecProps.java ./SPEC_compress/classes/spec/harness/StopBenchmarkException.java ./SPEC_compress/classes/spec/harness/TestProperties.class ./SPEC_compress/classes/spec/harness/TuningNotes.class ./SPEC_compress/classes/spec/harness/TuningNotes.java ./SPEC_compress/classes/spec/io ./SPEC_compress/classes/spec/io/ValidityCheckOutputStream.class ./SPEC_compress/classes/spec/io/ConsoleOutputStream.class ./SPEC_compress/classes/spec/io/ConsoleOutputStream.java ./SPEC_compress/classes/spec/io/File.class ./SPEC_compress/classes/spec/io/File.java ./SPEC_compress/classes/spec/io/FileCacheData.class ./SPEC_compress/classes/spec/io/FileCacheData.java ./SPEC_compress/classes/spec/io/FileInputStream.class ./SPEC_compress/classes/spec/io/FileInputStream.java ./SPEC_compress/classes/spec/io/FileOutputStream.class ./SPEC_compress/classes/spec/io/FileOutputStream.java ./SPEC_compress/classes/spec/io/PrintStream.class ./SPEC_compress/classes/spec/io/PrintStream.java ./SPEC_compress/classes/spec/io/TableOfExistingFiles.class ./SPEC_compress/classes/spec/io/TableOfExistingFiles.java ./SPEC_compress/classes/spec/io/ValidityCheckOutputStream.java ./SPEC_compress/input ./SPEC_compress/input/202.tar ./SPEC_compress/input/205.tar ./SPEC_compress/input/208.tar ./SPEC_compress/input/209.tar ./SPEC_compress/input/210.tar ./SPEC_compress/input/211.tar ./SPEC_compress/input/213x.tar ./SPEC_compress/input/228.tar ./SPEC_compress/input/239.tar ./SPEC_compress/input/misc.tar ./SPEC_compress/times ./SPEC_compress/times/times.sablevm ./SPEC_compress/output ./SPEC_compress/output/stdout.log.sablevm ./SPEC_compress/entryPoint The content of ./SPEC_compress/entryPoint is: spec.benchmarks._201_compress.Main I hope this helps Etienne PS: I have CCed the SableVM-devel list, as this message might be of interest to others. gu dayong on CS McGill wrote: > Hi, Prof. Gagnon: > I am a student in McGill, my superviser is prof. Driesen. > I am currently using SableVm. > > I have use build-many to create different versions. > The installation seems okay and the SableVm can execute > some small java program correct. > > But when I try to run the SpecJVM98 benchmarks, some problems > occur: > For example: > When I run: > sablevm SpecApplication _209_db > > I get: > > *** Couldn't bind native method Java_java_lang_Runtime_totalMemory *** > *** or Java_java_lang_Runtime_totalMemory__ *** > >>>>>spec.benchmarks._209_db.Main exited with exception: > > java.lang.UnsatisfiedLinkError <<<< > java.lang.UnsatisfiedLinkError > at java.lang.Runtime.totalMemory(Runtime.java) > at > spec.harness.ProgramRunner.runBenchmark2(ProgramRunner.java:299) > at spec.harness.ProgramRunner.runBenchmark(ProgramRunner.java:238) > at spec.harness.ProgramRunner.run(ProgramRunner.java:206) > at spec.harness.RunProgram.run(RunProgram.java:60) > at SpecApplication.runBenchmark(SpecApplication.java:255) > at SpecApplication.main(SpecApplication.java:171) > at java.lang.VirtualMachine.invokeMain(VirtualMachine.java) > at java.lang.VirtualMachine.main(VirtualMachine.java:88) > > java.lang.NullPointerException > at SpecApplicationRunner.benchmarkDone(SpecApplication.java:281) > > at > spec.harness.ProgramRunner.runBenchmark(ProgramRunner.java:244) > at spec.harness.ProgramRunner.run(ProgramRunner.java:206) > at spec.harness.RunProgram.run(RunProgram.java:60) > at SpecApplication.runBenchmark(SpecApplication.java:255) > at SpecApplication.main(SpecApplication.java:171) > at java.lang.VirtualMachine.invokeMain(VirtualMachine.java) > at java.lang.VirtualMachine.main(VirtualMachine.java:88) > > The same thing happen to other SpecJVM98 benchmarks. > > I can run the benchmarks by Jikes RVM and Sun Java. So it seems > my SableVm has some problems. > > Have you meet such a thing before? Could u give me some suggestion > on it? > > My System is Linux Mandrake 8.0 on Pentium III. > >>From you Ph.D thesis, I know you have tested sablevm on these > benchmarks. > And you said you " not follow the official run rules" and > "use "custom wrapper script". Is this script available now? > > Could u teach me how to test the benchmarks on SableVm correctly? > > > > Thank you! > > Cheers, > Dayong > -- Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |