aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/(developers-only)
diff options
context:
space:
mode:
authorCyril Zhang <cyril@freebsdfoundation.org>2025-08-05 23:20:56 +0000
committerMark Johnston <markj@FreeBSD.org>2025-08-05 23:33:55 +0000
commitc72188d85a793c7610208beafb83af544de6e3b7 (patch)
treeac8f47afb7b23c0b8f845cfb9d32d9216c72fa54 /gnu/usr.bin/binutils/(developers-only)
parentb4894eca1ade4e9cec9afbe76021305d23bf914a (diff)
racct: Improve handling of the pcpu resourceHEADmain
The previous scheme would inflate the CPU consumption of short-lived processes. For containers (e.g., processes, jails), the total pcpu usage was computed as a sum of the pcpu usage of all constituent threads, which makes little sense for a decaying average. Instead, aggregate wallclock time of all on-CPU threads and compute the pcpu resource as a decaying average as the sum. This gives much more reasonable and accurate values in various simple tests. PR: 235556 Reviewed by: markj MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30878
Diffstat (limited to 'gnu/usr.bin/binutils/(developers-only)')
0 files changed, 0 insertions, 0 deletions