From nobody Sun Jan 22 15:51:18 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P0HlV31Z9z30yVv for ; Sun, 22 Jan 2023 15:51:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P0HlV15Xzz4DCQ for ; Sun, 22 Jan 2023 15:51:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674402678; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LuqBin3Oj7fAfu0Ko19FIJBjH3q+dsbnnx7CE/B0aaU=; b=iRUgHTz4LoWRahiAPIdCM61WJLO3wsN4t/fVYZVneNHC3c6nDtjlD+fcpig+6xrdwU1vg8 +UXTdWlxxcs6QjP+PafNUVJ8Dyj0VTPUdMQsnsDZNUp9mdSrEEIX+0CWzfbJ0w7wnhBm8t N2/4xaeDzFXeTV1pSPmoQfZoxJtCkGsA00/oZIiSj9qEoPHxYJOPWXedx6Txj28vyoRLIK 3w0GYLs8xFx/ZCelt1QPCKkYxK56Opci+kXH0Zk5YG34X/O8Cfk7evzhM1tBdYumAQXx/2 peTd++c35zxMzWPLfz63CIzRmEV4db72sPBdrotEa+t8qqPFvoCpbokf2HGcPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674402678; a=rsa-sha256; cv=none; b=GhPOelpdaKD+iTqiM9JK5TLWNPVTGtAdgzKWC0jhryOp/bmJyvGhWzgK+vLYrX3TWjwYty 8wo1tamU1kZ+JjoD/wJND+jKcJhoIZOEkrbZ8Ezv5ALpxWYJbHLCHSHoRu9QU039bTMFK4 hkDgdbp3J4xXuLrZ9YPcMbQEb9UAPbqc7sfUTKWdbygA6hEwlvI2iTiZjVmV8X0BHr0OP7 +dxXUpA2aDfvV+bZ8F/rh3vCb4sp3Xgw6Bq15UebyD+2zvBHRqstUfLCMsWo3MARQbeDyr 14rLjk2Cih9GHbyZesVxWqRa0p6fhsMTeblXjGz4BU0hE634hO1LcK7JJTscZg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P0HlV09MSzvmX for ; Sun, 22 Jan 2023 15:51:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 30MFpHEZ001465 for ; Sun, 22 Jan 2023 15:51:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30MFpHxK001464 for bugs@FreeBSD.org; Sun, 22 Jan 2023 15:51:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269097] rctl(8) seems to include idle time in cputime Date: Sun, 22 Jan 2023 15:51:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dfr@rabson.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269097 Bug ID: 269097 Summary: rctl(8) seems to include idle time in cputime Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dfr@rabson.org I tried to use rctl_get_racct("jail:0", ...) to get metrics for the host but cputime seems to include time spent in the idle process. On an idle machine with 16 hardware threads, I ran this: $ while true; do sudo rctl -u jail:0 | grep cputime; sleep 1; done cputime=3D4145725 cputime=3D4145741 cputime=3D4145757 cputime=3D4145773 cputime=3D4145789 The cputime increases by 16 each time. I was expecting filter jail:0 to show summary cputime metrics for the host plus jails but instead, it always shows 100% cpu usage. If this is intentional, it should probably be mentioned in = the documentation. I can probably work around by getting metrics for the idle proc and subtracting. --=20 You are receiving this mail because: You are the assignee for the bug.=