-
Notifications
You must be signed in to change notification settings - Fork 1.1k
sc-executor-polkavm: Migrate into PolkaVM 0.18.0 #6533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
|
BTW, please help me to interpret the CI errors... |
substrate/client/executor/common/src/runtime_blob/runtime_blob.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: Koute <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
|
@koute no further answers needed despite some questions. I'll ping you at chat if anything. After taking yesterday off comments feel somewhat clear. |
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
…tats() Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
|
I'm sure I missed something but did my best ;-) |
Signed-off-by: Jarkko Sakkinen <[email protected]>
|
2x oldlinux tests failing |
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Yeah should be good enough for the moment. Otherwise this becomes two-crate problem and that weights worse for the time being... |
Signed-off-by: Jarkko Sakkinen <[email protected]>
|
OK great. After expanding to 32 kB stack does not overrun. I have now node running. |
|
Running and not doing much useful work, right? I bet if you put it under some load, it'll start overflowing again. I'd use some conservative stack limit like 2 Mb. Given that we currently use a 256 Mb stack limit for Wasm PVFs, that doesn't sound like too much. Curious to hear @koute's opinion on that. And definitely needs a burn-in before going any closer to production ;) |
Signed-off-by: Jarkko Sakkinen <[email protected]>
Increased to 2 MiB |
It's not the only thing that needs to be possibly tuned after this PR. Node starting is good enough DoD. |
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
…c.yml" This reverts commit 82ab893.
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
This reverts commit 14374d0.
bd2c35f
Bump `polkavm` to 0.18.0, and update `sc-polkavm-executor` to be compatible with the API changes. In addition, bump also `polkavm-derive` and `polkavm-linker` in order to make sure that the all parts of the Polkadot SDK use the exact same ABI for `.polkavm` binaries. Purely relying on RV32E/RV64E ABI is not possible, as PolkaVM uses a RISCV-V alike ISA, which is derived from RV32E/RV64E but it is still its own microarchitecture, i.e. not fully binary compatible. --------- Signed-off-by: Jarkko Sakkinen <[email protected]> Co-authored-by: Koute <[email protected]> Co-authored-by: Alexander Theißen <[email protected]>
Bump
polkavmto 0.18.0, and updatesc-polkavm-executorto be compatible with the API changes. In addition, bump alsopolkavm-deriveandpolkavm-linkerin order to make sure that the all parts of the Polkadot SDK use the exact same ABI for.polkavmbinaries.Purely relying on RV32E/RV64E ABI is not possible, as PolkaVM uses a RISCV-V alike ISA, which is derived from RV32E/RV64E but it is still its own microarchitecture, i.e. not fully binary compatible.