freebsd-dev/sys/cddl/dev
Andriy Gapon 7fdf0e8835 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.

Reviewed by:	markj
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D33648
2022-01-11 15:47:50 +02:00
..
dtmalloc malloc: move malloc_type_internal into malloc_type 2020-11-06 21:33:59 +00:00
dtrace dtrace: add a knob to control maximum size of principal buffers 2022-01-11 15:47:50 +02:00
fbt Remove mips dtrace. 2022-01-07 09:00:56 -07:00
profile Tune DTrace 'aframes' for the FBT and profile providers on arm64. 2021-03-22 23:49:41 +00:00
sdt sdt: Create providers and probes in separate passes when loading sdt.ko 2020-12-03 17:10:00 +00:00
systrace kern: drop remaining references to removed makesyscalls.sh 2021-09-09 19:40:54 -05:00
prototype.c Use C99 initializers for DTrace provider methods. 2017-09-27 17:46:38 +00:00