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

lmdb read very slow when multi-processing #2

Open
bring728 opened this issue Jun 2, 2022 · 1 comment
Open

lmdb read very slow when multi-processing #2

bring728 opened this issue Jun 2, 2022 · 1 comment

Comments

@bring728
Copy link

bring728 commented Jun 2, 2022

First of all, thank you for sharing your wonderful code.

Using your code, I'm trying to use pytorch DDP. When num_workers >1 or using DDP, data load may take a very long time.
When the lmdb file is caching, the data load takes only about 1ms, but when it is not caching, it sometimes takes tens of seconds. Do you know why?

image

When reading lmdb in a single process, it reads in about 0.2 seconds even if caching is not enabled.

image

@C0NGTRI123
Copy link

Are you solve that. I run multiprocessing, they are slower than single process

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

2 participants