Page MenuHomeFreeBSD

dtrace: Avoid excessive pcpu allocations
ClosedPublic

Authored by markj on Nov 18 2024, 11:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 16, 8:50 AM
Unknown Object (File)
Fri, Mar 14, 10:17 PM
Unknown Object (File)
Mar 1 2025, 1:48 PM
Unknown Object (File)
Feb 22 2025, 8:22 PM
Unknown Object (File)
Feb 22 2025, 2:35 PM
Unknown Object (File)
Feb 22 2025, 2:06 PM
Unknown Object (File)
Feb 22 2025, 2:02 PM
Unknown Object (File)
Feb 22 2025, 1:57 PM
Subscribers

Details

Summary

We were previously allocating MAXCPU structures for several purposes,
but this is generally unnecessary and is quite excessive. We already
are careful to allocate only as many per-CPU tracing buffers as needed;
extend this to other allocations.

For example, in a 2-vCPU VM, the size of a consumer state structure
drops from 64KB to 128B. The size of the per-consumer dts_buffer and
dts_aggbuffer arrays shrink similarly.

No functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable