Skip to content

sio_cache_0 kernel slab high memory usage during scrub #8662

Closed
@mailinglists35

Description

@mailinglists35

System information

Type Version/Name
Distribution Name ubuntu
Distribution Version 18.04lts
Linux Kernel 4.18
Architecture amd64
ZFS Version 0.8.0-rc4
SPL Version 0.8.0-rc4

Describe the problem you're observing

detailed attachments on https://zfsonlinux.topicbox.com/groups/zfs-discuss/T225c012532a7c86c (arc_summary, /proc/spl/kmem/slab, dmesg)

when I scrub the pool (10TB 3-way mirror with ssd cache and ssd log), I observe that kernel slab memory occupied by sio_cache_0 fills up to the point where kernel starts oom killer on innocent apps
these slabs show as unreclaimable in oom killer dmesg

if I setup spl_kmem_cache_expire to 0x01 (illumos style, 15 seconds aging return of objects), the memory consumption stabilizes around 3GB - down from 10GB with default 0x02 -, but I find that still enormously.

Does sio_cache_0 really need all that ram during scrub?

Describe how to reproduce the problem

zpool scrub poolname

Include any warning/errors/backtraces from the system logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions