ref-fvm icon indicating copy to clipboard operation
ref-fvm copied to clipboard

Execution Timing & Fuel Information

Open Stebalien opened this issue 3 years ago • 7 comments

We need to get timing and wasmtime fuel information. Specifically, over the course of a message (aggregated at the block level):

  • How much time is spent inside wasm.
  • How much time is spent inside syscalls.
  • How much fuel is spent.
  • How much gas is spent.

This will help us:

  • Benchmark improvements.
  • Determine the fuel to gas ratio.
  • Determine the relative cost of syscalls.

Stebalien avatar Feb 16 '22 18:02 Stebalien

@Stebalien is this intended as the "create new gas model" issue? I don't think one already exists.

arajasek avatar Feb 16 '22 22:02 arajasek

This one is just a step along the way.

Stebalien avatar Feb 16 '22 23:02 Stebalien

we have the code for getting the gas values - would be nice if we can get some help from Kuba on this. (if not - lock steb in a room for 5 hours until he figures this out)

jennijuju avatar Mar 07 '22 15:03 jennijuju

Branch is here: https://github.com/filecoin-project/ref-fvm/pull/365

Stebalien avatar Mar 08 '22 17:03 Stebalien

Immediate task is to introduce add wasm gas.

@kubuxu flags that we should measure the gas based on the worst case scenario and multiply on top of that. current fuel was calculated based on the optimized wasm code in which we should take un-optimized code (taking in memory into consideration and so o),.

jennijuju avatar Mar 08 '22 17:03 jennijuju

@raulk did the initial modeling (share more details later_ and now passed over to @Kubuxu

jennijuju avatar Apr 05 '22 05:04 jennijuju

can this be closed?

jennijuju avatar Jun 24 '22 17:06 jennijuju