Page MenuHomeFreeBSD

dtrace: Avoid excessive pcpu allocations
ClosedPublic

Authored by markj on Nov 18 2024, 11:17 PM.
Tags
None
Referenced Files
F167062447: D47667.id146660.diff
Tue, Aug 18, 8:24 PM
Unknown Object (File)
Mon, Aug 17, 5:55 AM
Unknown Object (File)
Fri, Aug 14, 9:27 AM
Unknown Object (File)
Fri, Aug 14, 4:47 AM
Unknown Object (File)
Wed, Aug 12, 8:44 PM
Unknown Object (File)
Wed, Aug 12, 1:31 PM
Unknown Object (File)
Wed, Aug 12, 1:30 PM
Unknown Object (File)
Wed, Aug 12, 1:18 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 60673
Build 57557: arc lint + arc unit