Skip to content

Proposal: Make the block-pool concurrency memory-aware #2594

@evan-forbes

Description

@evan-forbes

this idea stems from the investigation that is being done in #6067 in app by @mcrakhman celestiaorg/celestia-app#6067

The idea here is to prevent OOMs while block syncing large blocks via tracking the cumulative estimated size of pending blocks and stop makeNextRequester once a configurable byte ceiling is reached. This is assuming that the cause is due to requesting up to 2.5GB of data per peer (20 requests of 128MB blocks per peer). We're not yet sure that is the case, however even w/o that this seems like a reasonable change.

We might be able to make some optimizations and keep large numbers of requests for smaller blocks but not sure yet.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions