-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Labels
performancePerformance issue or improvementPerformance issue or improvement
Description
Running silkworm commit b520fba with pre-downloaded snapshots on a 16 Gb (about 13.5 Gb free) Debian or Ubuntu VM with options:
--prune=htrc
--snapshots.no_downloader # snapshots are pre-downloaded
--sentry.remote.addr=127.0.0.1:9091 # to disable sentry
Results in a forced crash by OOM killer:
kernel: Out of memory: Killed process 45258 (silkworm) total-vm:3843295636kB, anon-rss:15170316kB, file-rss:3068kB, shmem-rss:0kB, UID:1000 pgtables:71252kB oom_score_adj:0
This happened 5 out of 5 tries after 33 min in execution stage at around 4.5M blocks (e.g. at blocks: 4479463, 4483121, 4477025)
Lowering the execution batch size helps sometimes using this option:
--batchsize=128MB
but it still crashes sometimes (4 out of 5 tries, at blocks: 2431423, 2433164, 2426881, 2433253).
Possible solutions (from easy to hard):
- update README to advice 32 Gb recommended, and 16 Gb minimal with
--batchsize=128MBprescription. - update the default value dynamically based on available RAM
- investigate what causes the crash and why (a leak? a spike?) and propose solutions
- replace
--batchsizewith something more meaningful to the user (e.g. total max RAM for execution) - preallocate the required memory for execution on startup
Metadata
Metadata
Assignees
Labels
performancePerformance issue or improvementPerformance issue or improvement