ref-fvm
ref-fvm copied to clipboard
Execution Timing & Fuel Information
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 is this intended as the "create new gas model" issue? I don't think one already exists.
This one is just a step along the way.
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)
Branch is here: https://github.com/filecoin-project/ref-fvm/pull/365
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),.
@raulk did the initial modeling (share more details later_ and now passed over to @Kubuxu
can this be closed?