Skip to content

Full sync with gcmode=archive extremely io heavy & slow compared to regular full sync, seems to not be using cache #18984

@c2h5oh

Description

@c2h5oh

System information

Geth version: 1.8.22-stable
OS & Version: Arch Linux, 4.20.6 kernel
Ryzen 7 2700, 16GB RAM , 2TB SATA SSD

Expected behaviour

gcmode=archive results in more storage being used and slightly to moderately slower than "regular" full sync.

Actual behaviour

with --gcmode=archive:

  • cache seems to be unused: logs are showing cache=0.00B. tested with multiple cache sizes ranging from 2 to 14 GB
  • A LOT slower. after 40 hours it imported 2.8M blocks. By comparison without archive it imported 2.8M blocks in about 85 minutes
  • those 2.8M blocks resulted in a chain that was just over 80GB, despite that about 200GB was read and written PER HOUR
  • importing speed dropped to <10 txn per second before reaching block 3M, by comparison without archive I was seeing 500-2000 txn/s. At <10 txn/s it's not going to ever catch up.

Steps to reproduce the behaviour

geth --syncmode=full --gcmode=archive --cache 2048

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions