Skip to content
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

Instruction metering #3927

Open
AlixANNERAUD opened this issue Nov 23, 2024 · 1 comment
Open

Instruction metering #3927

AlixANNERAUD opened this issue Nov 23, 2024 · 1 comment

Comments

@AlixANNERAUD
Copy link

AlixANNERAUD commented Nov 23, 2024

Feature

Similar to the Wasmer runtime, it would be beneficial to implement instruction metering, allowing control to be handed back to the caller after executing a specified number of instructions.

Benefit

This would enable on platform with a cooperative scheduler to manage how WASM code is executed, preventing system overload.

Implementation

Introduce a function like wasm_func_call_with_metering that returns an after a given number of executed instruction, a boolean indicating whether the function reached its end.

Alternatives

None identified.

@lum1n0us
Copy link
Collaborator

Link similar things together. #2163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants