ChainSafe / ChainSafe/lodestar

Investigate resident set vs heap total memory difference

Open
#3,510 1 comment 0 reactions 0 assignees View on GitHub
meta-investigate prio-medium scope-memory
Dominant language
TypeScript
Stars
1.4k
Forks
483
Avg merge
1d 16h
Merged PRs (30d)
150

Description

Lodestar nodes show a significant difference between the process resident set or total process memory and the total heap size. As far as I'm concerned, there's no other large memory item that could justify a 500MB difference

![Screenshot from 2021-12-10 18-34-46](https://user-images.githubusercontent.com/35266934/145617082-64ce3a69-9b20-4d1a-80b1-7903e3998d54.png)

This issue is to track research into what could cause this difference:
- [x] Worker threads: I've disabled all workers (second part of the chart above) and while the total process size is slightly lower the difference is roughly the same
- [ ] ??

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.