Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gnosis. Only one Block Processor thread running, slow syncing. #6933

Open
terrancewong opened this issue Apr 18, 2024 · 0 comments
Open

Gnosis. Only one Block Processor thread running, slow syncing. #6933

terrancewong opened this issue Apr 18, 2024 · 0 comments

Comments

@terrancewong
Copy link

Description

There's only one block processor thread running, slow syncing.

Steps to Reproduce

gnosis.cfg

{
  "Init": {
    "ChainSpecPath": "chainspec/gnosis.json",
    "GenesisHash": "0x4f1dd23188aab3a76b463e4af801b52b1248ef073c648cbdc4c9333d3da79756",
    "BaseDbPath": "nethermind_db/gnosis",
    "LogFileName": "gnosis.logs.txt",
    "LogRules": "logs:INFO",
    "MemoryHint": 8589934592
  },
  "JsonRpc": {
    "Enabled": true,
    "EnginePort": 8551,
    "EnabledModules": ["admin", "eth", "net", "txpool", "web3"],
    "JwtSecretFile": "../jwt.hex"
  },
  "Sync": {
    "MaxProcessingThreads": 16,
    "FastSync": false,
    "FastBlocks": false,
    "TuneDbMode": "DisableCompaction"
  },
  "Pruning": {
    "Mode": "None"
  },
  "Blocks": {
    "SecondsPerSlot": 5,
    "TargetBlockGasLimit": 17000000
  },
  "Mining": {
    "MinGasPrice": "1000000000"
  },
  "EthStats": {
    "Name": "Nethermind Gnosis"
  },
  "Receipt": {
    "TxLookupLimit": 0
  },
  "Metrics": {
    "NodeName": "Gnosis"
  },
  "Bloom": {
    "IndexLevelBucketSizes": [
      16,
      16,
      16
    ]
  },
  "Network": {
    "MaxActivePeers": 64,
    "ProcessingThreadCount": 8,
    "P2PPort": 30303,
    "DiscoveryPort": 30303,
    "EnableUPnP": false,
    "MaxOutgoingConnectsPerSec": 32
  },
  "Db" :{
    "StateDbBlockSize": 16384,
    "CompactionReadAhead": 262144
  }
}

Block downloaded more than 26M, and processing blocks at ~14M

Actual behavior

in atop, press 'y' to show all threads, there is only one Block Processor. only ~100% CPU used by nethermind

Expected behavior

Using more threads to speed up block processing.

@terrancewong terrancewong changed the title Only one block processor thread running, slow syncing. Gnosis. Only one Block Processor thread running, slow syncing. Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant