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

BulkLoader becomes very slow after updating Badger to V2.0.0 #1163

Closed
xiangzhao632 opened this issue Dec 18, 2019 · 3 comments
Closed

BulkLoader becomes very slow after updating Badger to V2.0.0 #1163

xiangzhao632 opened this issue Dec 18, 2019 · 3 comments
Labels
kind/question Something requiring a response

Comments

@xiangzhao632
Copy link

What version of Go are you using (go version)?

go1.13.5

What version of Badger are you using?

v2.0.0

Does this issue reproduce with the latest master?

yes

What are the hardware specifications of the machine (RAM, OS, Disk)?

linux/amd64

What did you do?

I run bulk loader

What did you expect to see?

bulk loader runs fast as usual

What did you see instead?

Before BadgerV2.0.0,reduce stage of bulk loader were about 60w rdf/s at our machine,now is about 4w/s。I used go tool pprof,and found that Cgo call cost 85% of cpu time。I guess its caused by the new compress algo。

@ashish-goswami
Copy link
Contributor

@xiangzhao632 Badger V2.0.0, has compression enabled and it uses ZSTD compression by default. Badger also exposes one option called ZSTDCompressionLevel, which is 15 by default(This option is not exposed at bulk loader). Having higher compression level means more compressed data at the expense of more computation. This is the reason for slowness. You can try to reduce compression level and check the speed.

@xiangzhao632
Copy link
Author

@ashish-goswami thank you ! Have you planned to expose compression option at bulk loader ?

@jarifibrahim
Copy link
Contributor

Hey @xiangzhao632 I've created an issue on dgraph to track this hypermodeinc/dgraph#4439 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Something requiring a response
Development

No branches or pull requests

3 participants