Skip to content

lmdb read very slow when multi-processing #2

@bring728

Description

@bring728

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions