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)
Thu, Sep 25, 1:08 PM
Unknown Object (File)
Sep 16 2025, 9:20 PM
Unknown Object (File)
Sep 7 2025, 4:36 PM
Unknown Object (File)
Aug 31 2025, 2:53 AM
Unknown Object (File)
Aug 28 2025, 9:15 PM
Unknown Object (File)
Aug 2 2025, 4:13 AM
Unknown Object (File)
Jul 17 2025, 7:06 AM
Unknown Object (File)
Jul 14 2025, 3:32 AM
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