Comments (4)
As the comment in the relevant code suggests, 8 is the best guess we made at the time. This works for neard
as it can only have as many contracts running in parallel as there are shards being tracked by a node.
near-vm-runner
is not written with any other use-cases in mind and I'm not sure what it would take before we consistently consider other users.
It wouldn’t be too hard to make the pool arguments configurable here. Add some fields to the Config
struct & use those parameters to construct the pool. For neard the default values of these parameters should stay the same, but in your tests you would be able to specify whatever value you wish at the time you construct the runtime.
from nearcore.
near-vm-runner is not written with any other use-cases in mind and I'm not sure what it would take before we consistently consider other users.
But version 0.17.0 works fine. Unfortunately, this version doesn't support contracts compiled with recent Rust versions.
from nearcore.
That's unsurprising. The pool of memories has been added reasonably recently and having it be fixed size is actually desirable for neard as there have been concerns about statically establishing an memory requirement ceiling for the runtime.
The fact that a prior version worked for an external use-case doesn’t change the essence of my statement either. near-vm-runner
is developed and maintained for its primary use as a runtime within the reference NEAR validator. Suitability for any other use-case is incidental.
That said, there's no reason it cannot be used elsewhere, but an implicit expectation is that the interested parties would contribute to the effort (of making it suitable for those other use-cases and helping to keep it in that shape by e.g. contributing to reviews.)
from nearcore.
Looks like the issue has been fixed in the near-vm-runner 0.20.0
.
from nearcore.
Related Issues (20)
- State sync makes GCS snapshotting more risky
- [stateless_validation] Proper error handling for `on_chunk_completed`
- [State Sync] Fix external state sync files monitoring
- StateTransitionData disk usage on mainnet
- [ProjectTracking] [State Sync] Improvements
- [Forknet] Support split storage nodes in mirror mocknet test HOT 1
- [stateless_validation] Solve 2x Latency Problem
- [stateless_validation] test_chunk_forwarding_optimization fails with --features statelessnet_protocol HOT 2
- Neard 1.37.0-rc.2 Process Crash - Stack overflow HOT 1
- Recent node; Lots of errors gc stop height.
- estimator: I/O estimation does not count syscall failures
- Consider adding validator rewards to RPC /validators
- Remove MockEpochManager HOT 1
- Improve split archival node migration
- Remove `is_chunk_producer_for_epoch` from EpochManagerAdapter
- Lychee lints CI check failing HOT 1
- [Forknet] Pre-release testing of resharding
- Remove pieces of code which index slices by shard id
- Remove witnesses which are no longer needed from OrphanStateWitnessPool
- Make size limit of orphan witnesses configurable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nearcore.