Open kamilsa opened 3 weeks ago
Apple M1, 16GB | type | file size | exec time |
---|---|---|---|
Debug | 495MB | 200ms | |
RelWithDebInfo | 185MB | 20ms |
exec
on debug is slow (maybe due to executable size or global initializers).
fork
is fast (0.5ms).
node process may fork
+exec
initial worker process,
which will fork
itself to "work" and stop these processes on timeout.
kagome
└ initial worker (slow start, starts and stops child workers)
├ worker 1 (fast start, does "work", stopped by parent on timeout)
└ worker 2
release polkadot-*-worker
exe is 15MB
(release wasmtime+cranelift
is 5MB).
cpp wasmedge
(with static llvm
) is 120MB debug and 100MB release.
Bug Summary
Issue occurs when
--parachain-single-process
flag is not providedBug Description
It is observed that when
--parachain-single-process
flag is not provided PVF execution time is drastically slower.Steps to Reproduce
During the execution of
zombienet/polkadot/functional/0001-parachains-pvf.zndsl
test with--parachain-single-process
flag added there were the following execution times:When flag was added execution times were:
Effects of the Bug
Slow PVF execution times
Expected Behavior
No response
System Information
Tested on Apple M1 Pro, 16GB RAM
Additional Context
No response