]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zfs: zstd: track allocator statistics
authormjg <mjg@FreeBSD.org>
Sat, 31 Oct 2020 19:07:32 +0000 (19:07 +0000)
committermjg <mjg@FreeBSD.org>
Sat, 31 Oct 2020 19:07:32 +0000 (19:07 +0000)
commit04a467f062eebd223ba1389cfcf5d0d61ce5163d
treee4f767c01d686e01c30cbf61af6e1c1b75c02362
parentebf6d80bc3dbd2a0870464ce281dc69d53fda229
zfs: zstd: track allocator statistics

This applies:
commit c4ede65bdfca11b532403620bbf0d6e33f0c1c1d
Author: Mateusz Guzik <mjguzik@gmail.com>
Date:   Fri Oct 30 23:26:10 2020 +0100

    zstd: track allocator statistics

    Note that this only tracks sizes as requested by the caller.
    Actual allocated space will almost always be bigger (e.g., rounded up to
    the next power of 2 or page size). Additionally the allocated buffer may
    be holding other areas hostage. Nonetheless, this is a starting point
    for tracking memory usage in zstd.

from openzfs
sys/contrib/openzfs/include/sys/zstd/zstd.h
sys/contrib/openzfs/module/zstd/zfs_zstd.c