https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235556

--- Comment #7 from [email protected] ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=c72188d85a793c7610208beafb83af544de6e3b7

commit c72188d85a793c7610208beafb83af544de6e3b7
Author:     Cyril Zhang <[email protected]>
AuthorDate: 2025-08-05 23:20:56 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2025-08-05 23:33:55 +0000

    racct: Improve handling of the pcpu resource

    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

 sys/kern/kern_racct.c | 307 +++++++++++++++++++++++++-------------------------
 sys/sys/proc.h        |   1 -
 sys/sys/racct.h       |   6 +-
 3 files changed, 156 insertions(+), 158 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to