btcsuite / btcd

An alternative full node bitcoin implementation written in Go (golang)
https://github.com/btcsuite/btcd/blob/master/README.md
ISC License
6.2k stars 2.36k forks source link

Extremely high disk use #1943

Open c0mm4nd opened 1 year ago

c0mm4nd commented 1 year ago

Version: built docker container with commit e563459b72df634ca5731ac6c93e9ffbfd36dd93 Disk: HDD Docker:

version: "3"

services:
  btcd:
    container_name: btcd
    hostname: btcd
    image: btcd:latest
    restart: unless-stopped
    volumes:
      - /mnt/hdd14t/btcd:/root/.btcd
    ports:
      - 18333:8333
      - 8334:8334
    command:
      - --txindex
      - --addrindex
      - --blocksonly
      - --rpclisten=:8334
      - --rpccert=/root/.btcd/rpc.cert
      - --rpckey=/root/.btcd/rpc.key
      - -u=btcd
      - -P=pass

Problem: always high disk write (>30MB Realtime: image

Accumulated: image

This is abnormal, the writing rate and volumn is even more than an ethereum archive node.

ADD: The data was fully-synced in SSD before moving to HDD, so the writing thing wont be initial syncing. I didnt notice whether the problem had occured on SSD.