Skip to content

0.4.5: repo does not scale beyond ~ 8000 files #3621

@mguentner

Description

@mguentner

Version information:

go-ipfs version: 0.4.5-dev-
Repo version: 5
System version: amd64/linux
Golang version: go1.7.4

Type:

Bug

Priority:

P0

Description:

When adding a lot of files locally (or using the daemon without --enable-gc), the repo grows even faster in size after a certain limit.
It seems to be around 8000, my gut tells me it's 8192 💫
Unless you have a lot of space with good IO, this makes it very hard to import files without
garbage collecting in between (say every 1k).
This is probably a blocker for 0.4.5

Here is a fancy graph that displays the problem:
Adding 12000 files

After running ipfs repo gc the repo size shrinks from 16 GiB to 78 MiB

If you want to reproduce it, go and fetch QmcsrSRuBmxNxcEXjMZ1pmyRgnutCGwfAhhnRfaNn9P94F @ ipfs.io

Metadata

Metadata

Assignees

Labels

kind/bugA bug in existing code (including security flaws)topic/perfPerformancetopic/technical debtTopic technical debt

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions