ChainSafe / ChainSafe/lodestar

Huge network thread latency to/from main thread when subscribing to all subnets

Open
#7,188 2 comments 0 reactions 0 assignees View on GitHub
meta-bug scope-networking scope-performance
Dominant language
TypeScript
Stars
1.4k
Forks
483
Avg merge
1d 16h
Merged PRs (30d)
150

Description

### Describe the bug

When subscribing to all subnets, network thread to/from main thread latency increase significantly

Screenshot 2024-10-22 at 15 49 01

I don't see any latency from libp2p, or at least it's a tiny difference, we still receive gossip block on time at network thread

Screenshot 2024-10-22 at 15 50 01

the above latency leads to significantly increase of below topics:
- Avg block recv to gossip validation delay

Screenshot 2024-10-22 at 15 51 52

- Avg block recv to state transition delay

Screenshot 2024-10-22 at 15 52 24

### Expected behavior

for beacon_block topic, we don't want to have this latency, as it causes block to becomes head very late and validator votes for wrong head, see #7186

### Steps to reproduce

_No response_

### Additional context

_No response_

### Operating system

Linux

### Lodestar version or commit hash

v1.22.0, unstable

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.