Re: [rvm-research] Profiling rvm using advice file
Michael Bond <[email protected]>
| Newsgroups | gmane.comp.java.jikes.rvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Nachson,
I suspect that the MMTk harness might be measuring the entire run?
Looking at my group's scripts, when running with advice, we're running
pjbb2005 with these command-line arguments:
-n 2 -c BulkCompilepjbb2005Callback
Here's the code for BulkCompilepjbb2005Callback:
public class BulkCompilepjbb2005Callback extends MMTkCallback {
private static int iter=0;
@Override
public void startWarmup() {
iter++;
super.startWarmup();
}
@Override
public void stopWarmup() {
super.stopWarmup();
if (iter==1) {
org.jikesrvm.adaptive.recompilation.BulkCompile.compileAllMethods();
System.err.println("compileAllMethods() finished");
}
}
}
Cheers,
Mike
On 02/20/2014 11:27 AM, nachshon cohen wrote:
> Hi Mike
>
> Thanks for the quick answer.
>
> I think that the SPECjbb2005 benchmark has a warp up iteration before
> it begin performance measurement.
> Anyway, I changed the SPECjbb code to call org.jikesrvm.adaptive.
> recompilation.BulkCompile.compileAllMethods()
> after measuring performance for 1 warehouse (and iterating for 30
> seconds over the benchmark code).
> Still, even after the code is recompiled, the performance is less than
> half of the adaptive compiler.
> For this measurement I used the following commend line options:
>
> ~/Documents/Programs/jikesrvm/dist/FastAdaptiveMarkSweep_sideMarkBit_x86_64-osx/rvm
> -X:aos:initial_compiler=base -X:aos:enable_bulk_compile=true
> -X:aos:enable_recompilation=false -X:aos:enable_precompile=false
> -X:aos:cafo=jbb_advice.ca <http://jbb_advice.ca>
> -X:vm:edgeCounterFile=jbb_ec.ec <http://jbb_ec.ec>
> -X:aos:dcfo=jbb_callgraph.dc -cp ./jbb.jar:./check.jar -Xms512m
> -Xmx512m -X:aos:bulk_compilation_verbosity=2 spec.jbb.JBBmain
> -propfile props14.props
>
>
> Thanks,
> Nachshon Cohen
> Technion Institute of Technology, Israel
>
>
> 2014-02-20 17:41 GMT+02:00 Michael Bond <[email protected]
> <mailto:[email protected]>>:
>
> Hi Nachshon,
>
> I think a run using advice now works as follows. Jikes executes
> two iterations of the benchmark. During the first iteration,
> everything is only baseline compiled, so the first iteration is
> slow. After the first iteration, Jikes compiles methods according
> to the advice files. Then Jikes executes the second iteration with
> the optimized methods.
>
> I think you need to specify that two iterations of the benchmark
> should execute. That's easy with DaCapo ("-n 2"); I forget how to
> do that with JBB. The overall execution will still be slow, but
> the harness should only measure and report the second iteration.
>
> Cheers,
> Mike
>
>
> On 02/20/2014 10:33 AM, nachshon cohen wrote:
>> Hi all,
>>
>> I'm measuring some modifications I did to the JikesRVM, and I
>> used the replay mechanism for more consistent results.
>>
>> However, when running with replay the performance drop by more
>> than half (actually, much slower than generating the advice file).
>> A'm I missing something? I used the following link as guild to
>> replay mechanism: http://jikesrvm.org/Experimental+Guidelines
>>
>> The specific command I used (running the SPECjbb2005 benchmark)
>> for running the benchmark and generate the results are:
>>
>> ~/Documents/Programs/jikesrvm/dist/FastAdaptiveMarkSweep_sideMarkBit_x86_64-osx/rvm
>> -X:aos:initial_compiler=base -X:aos:enable_bulk_compile=false
>> -X:aos:enable_recompilation=false -X:aos:enable_precompile=true
>> -X:aos:cafo=jbb_advice.ca
>> <http://jbb_advice.ca> -X:vm:edgeCounterFile=jbb_ec.ec
>> <http://jbb_ec.ec> -X:aos:dcfo=jbb_callgraph.dc -cp
>> ./jbb.jar:./check.jar -Xms512m -Xmx512m spec.jbb.JBBmain
>> -propfile SPECjbb.props
>>
>> ~/Documents/Programs/jikesrvm/dist/FastAdaptiveMarkSweep_sideMarkBit_x86_64-osx/rvm
>> -X:aos:enable_advice_generation=true -X:aos:cafo=jbb_advice.ca
>> <http://jbb_advice.ca> -X:base:profile_edge_counters=true
>> -X:base:profile_edge_counter_file=jbb_ec.ec <http://jbb_ec.ec>
>> -X:aos:dcfo=jbb_callgraph.dc -X:aos:final_report_level=2 -cp
>> ./jbb.jar:./check.jar -Xms512m -Xmx512m spec.jbb.JBBmain
>> -propfile SPECjbb.props | tee advice.res
>>
>> I also tried calling
>> org.jikesrvm.adaptive.recompilation.BulkCompile.compileAllMethods()
>> after the warm up period (and using the appropriate flags), but
>> it didn't help much.
>>
>> I'll be happy to get any advice on using the replay mechanism
>> correctly.
>>
>> Thanks,
>> Nachshon Cohen
>> Technion Institute of Technology, Israel
>>
>> P.S.
>> Running with -X:aos:bulk_compilation_verbosity=2 produced the
>> following lines:
>>
>> AOS: In non-adaptive mode; controller thread exiting.
>> Loading edge count file: jbb_ec.ec <http://jbb_ec.ec>
>> MBMBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBMBMBMBMBMBMBBBBBBBBBBMBBMBBBBBBBBBMBBBBBBBBBBBBBBBBBBBBBBBBBBBMBBBBBMBBMBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBMBBBBBBBBMBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBMBBBBBBBBMBMBMBMBBBBBBBBBBBBMBBBBBBBBBBBBMBMBBBMBMBMBBBBBBBBMBMBMBMBBBBBMBBMBBBBMBMBMBMBMBBBBBMBBBBBMBMBBBBBBBBBBBBBBBBBBBBBMBMBBBBMBBMBBBMBMBBBBMBBMBMBMBMBBBBBMBBMBMBBBBBBBBBMBBBBBBBMBBBBBBBMBMBBBBBBBBBBBBBBBMBBMBBBBBBBBBBBBBBBBMBBMBMBBMBMBBBMBBMBMSBBBBMBMBMBBBB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BBBBBBBBBBBMBMSBBBMBMBMBBBBBBBBBBBMBBBBBBBMBBBBBBBBBBBBBBBBMBBMBBBMBBBBMBMBBBBBMBBBBBBBBMBBMBBMBMBBMBMBBMBBBBBMBMBBMBBBBMBBMBBBBBBBBBBBBBBB
>> BBBBBBBBMBMBBMBBBMBMBBMBBBBMBBBBMBMBBBMBBBBMBMBBBMBBSBMBBMBMBMBMBMBBBMBMBBSBBBSBMBBBBMBBBBMBBBBBBBBBBBBBMBMBMBSBBBBBBBBBBBMBBBBBMBMBMBBBMBBMBBBBBBBBBMBMBBBBBMBBBBBMBBMBBBBMBMBBBBBBMBBBBBMBBBMBMBBBBBMBBBMBBBBBBBBBBBBMBBBBBBBBBBBBBBBBBBBBBBBMBBBBBBBBBBBBBBBBBBBBBBBBMBBBBBBBBBBBBBMBBBBBBBBBBMBBBBBMBBBBBBBBBBBBBBBBBBBBBBMBBBBMBBBBBBBBMBMBBMBBBBMBBBMBMBBBBBBBBBBBBBMBBBBBMBBBBBBMBBBMBMBMBMBMBMBBBMBBBBMBMBMBBBBBMBBMBBBBBMBMBBBMBBBBMBBBMBBBBBMBMBMBMBBBBBMBBBBBMBBBBMBBBMBBBBBMBBBBBBMBBBMBBBBBBBBBBBBBBBMBBBBMBBMBBBMBBMBBMBBBBBMBMBBBBMBBMBBBBBBBBBBBBBBBBBBMBBBBBBBMBBMBBMBBMBMBBBBBBBBBBBBMBBBBBBBBBBBMBBBBBBBBMBBBMBBBMBMBBMBBBBMBBSBBBBBBMBMBBMBMBBBBBBMBBBBBBBBBMSMBSMBMBBBBMBMBBBMBBMBBBBMBBBMSMBBMBMBBBMBMBMBMBBMBBMBBMSBBMBMBBBBBMBBBBBBBBBMBBMBBBBMBBBBMBMBMBMBBMBBMBBBBBBBMBBBBBBMBBBB
>> Start precompile
>>
>> Recompilation complete
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
>>
>>
>> _______________________________________________
>> Jikesrvm-researchers mailing list
>> [email protected] <mailto:[email protected]>
>> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
> _______________________________________________
> Jikesrvm-researchers mailing list
> [email protected]
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
>
>
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> Jikesrvm-researchers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Jikesrvm-researchers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers