opnsense-src/sys/cddl
Andriy Gapon eacdf85d44 dtrace: add a knob to control maximum size of principal buffers
We had a hardcoded limit of 1/128-th of physical memory that was further
subdivided between all CPUs as principal buffers are allocated on the
per-CPU basis.  Actually, the buffers could use up 1/64-th of the
memmory because with the default switch policy there are two buffers per
CPU.

This commit allows to change that limit.

Note that the discussed limit is per dtrace command invocation.
The idea is to limit the size of a single malloc(9) call, not the total
memory size used by DTrace buffers.

(cherry picked from commit 7fdf0e8835)
2022-02-01 10:12:03 +02:00
..
boot/zfs Turn off zstd on aarch64 2020-10-13 02:36:16 +00:00
compat/opensolaris Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
contrib/opensolaris dtrace: add a knob to control maximum size of principal buffers 2022-02-01 10:12:03 +02:00
dev dtrace: add a knob to control maximum size of principal buffers 2022-02-01 10:12:03 +02:00