diff options
author | Cyril Zhang <cyril@freebsdfoundation.org> | 2025-08-05 23:20:56 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2025-08-05 23:33:55 +0000 |
commit | c72188d85a793c7610208beafb83af544de6e3b7 (patch) | |
tree | ac8f47afb7b23c0b8f845cfb9d32d9216c72fa54 /contrib/awk/posix | |
parent | b4894eca1ade4e9cec9afbe76021305d23bf914a (diff) |
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 'contrib/awk/posix')
0 files changed, 0 insertions, 0 deletions