NebraLtd / hm-miner

Helium Miner Container
https://nebra.io/hnt
MIT License
16 stars 16 forks source link

Set `snapshot_memory_limit` based on memory available #74

Closed vpetersson closed 2 years ago

vpetersson commented 2 years ago

I order to support Raspberry Pis 4B in various configurations, we need to modify snapshot_memory_limit accordingly.

The easiest way to do this is probably to look for the total memory usage and set it to TOTAL_MEMORY - 256MB or something like that.

shawaj commented 2 years ago

@vpetersson any reason why we can't just use the default we are using in the raspi cm3 config?

shawaj commented 2 years ago

also - since we aren't taking snapshots on miners typically, this is probably irrelevant

vpetersson commented 2 years ago

Yeah this can be closed out. This was opened before they fixed the garbage collection issue. The default value should be fine.