Skip to content

mkfs.ext4 is slow in devmapper #6119

@yuqitao

Description

@yuqitao

What is the problem you're trying to solve

snapshotter is devmapper and base_image_size is 20G, pull one image, unpack the first layer, see

if err := mkfs(ctx, s.config.FileSystemType, dmsetup.GetFullDevicePath(deviceName)); err != nil {
mkfs.ext4 takes about 9s on cloud volume, while it takes 1s on local volume.

Describe the solution you'd like

I got this: kubernetes/kubernetes#30752 (comment)
remove lazy_itable_init=0,lazy_journal_init=0, mkfs.ext4 takes about 2s on cloud volume.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions