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)
Wed, Jan 29, 4:10 AM
Unknown Object (File)
Wed, Jan 29, 4:06 AM
Unknown Object (File)
Tue, Jan 14, 5:25 AM
Unknown Object (File)
Sun, Jan 12, 7:08 PM
Unknown Object (File)
Mon, Jan 6, 11:33 AM
Unknown Object (File)
Mon, Jan 6, 1:12 AM
Unknown Object (File)
Sun, Jan 5, 8:42 AM
Unknown Object (File)
Sun, Jan 5, 8:12 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