From nobody Tue Jul 13 18:53:14 2021 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 47C191243FBF for ; Tue, 13 Jul 2021 18:53:14 +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 4GPVBx6tTZz4n5F for ; Tue, 13 Jul 2021 18:53:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 D502227461 for ; Tue, 13 Jul 2021 18:53:13 +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 16DIrD5G012078 for ; Tue, 13 Jul 2021 18:53:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 16DIrDNJ012077 for bugs@FreeBSD.org; Tue, 13 Jul 2021 18:53:13 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 257160] SCHED_4BSD produces nonsense in top. Date: Tue, 13 Jul 2021 18:53:14 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dgilbert@eicat.ca 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=3D257160 Bug ID: 257160 Summary: SCHED_4BSD produces nonsense in top. Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dgilbert@eicat.ca While I'm testing this on riscv64, I strongly suspect that it's not architecture dependant. It may, however, depend on having a multi-cpu syst= em. Due to the nature of my quad-core risv64 (it's slow) and what I want to do = with it(it's fairly busy), I was annoyed that SCHED_ULE was mostly ignoring my n= ice levels giving more than 0 time to processes marked as nice -20 vs. processes not nice. Anyways, I installed a kernel with SCHED_4BSD. Keep in mind this is a quad core CPU: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMM= AND 604 dgilbert 1 45 0 109M 66M CPU3 3 0:02 1039.89% c++ 605 dgilbert 1 45 0 109M 66M CPU1 1 0:02 1031.29% c++ 606 dgilbert 1 45 0 109M 66M RUN 2 0:02 1020.32% c++ 603 dgilbert 1 44 0 109M 66M CPU0 0 0:02 1011.41% c++ 854 root 1 40 0 17M 4764K select 1 3:04 0.17% tmux 425 root 1 40 0 14M 4040K CPU2 2 0:03 0.15% top ... that is a sample top output --- and the >100% _single thread_ processes continue to be significantly more than 100% until they die. Obviously, top is not reporting reality here. --=20 You are receiving this mail because: You are the assignee for the bug.=