]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
geli: add a read-only kern.geom.eli.use_uma_bytes sysctl
authorAlan Somers <asomers@FreeBSD.org>
Mon, 22 Apr 2024 18:03:40 +0000 (12:03 -0600)
committerAlan Somers <asomers@FreeBSD.org>
Mon, 22 Apr 2024 19:20:03 +0000 (13:20 -0600)
commit3acf3feaa8c5b15e820e86c1526c9a97fc5ad247
tree2c5740015c98c1210b27b445694290769a4056e8
parent5cafc38f11297cb302514f3cedb703a3ed199a22
geli: add a read-only kern.geom.eli.use_uma_bytes sysctl

It reports the value of the g_eli_alloc_sz variable.  Allocations of
this size or less will use UMA.  Larger allocations will use malloc.
Since malloc is slower, it is useful for users to know this variable so
they can avoid such allocations.  For example, ZFS users can set
vfs.zfs.vdev.aggregation_limit to this value.

MFC after: 1 week
Sponsored by: Axcient
Reviewed by: markj, imp
Differential Revision: https://reviews.freebsd.org/D44904
sys/geom/eli/g_eli.c