From owner-freebsd-bugs@freebsd.org Sat Jun 27 22:40:00 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1A66935E2D4 for ; Sat, 27 Jun 2020 22:40:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49vTGR72tdz4YRf for ; Sat, 27 Jun 2020 22:39:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id F012F35E353; Sat, 27 Jun 2020 22:39:59 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EFD3F35E4A8 for ; Sat, 27 Jun 2020 22:39:59 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49vTGR6868z4YPB for ; Sat, 27 Jun 2020 22:39:59 +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 CA309C646 for ; Sat, 27 Jun 2020 22:39:59 +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 05RMdxRI076940 for ; Sat, 27 Jun 2020 22:39:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 05RMdxj9076939 for bugs@FreeBSD.org; Sat, 27 Jun 2020 22:39:59 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 247602] top occasionally shows unrealistic WCPU values Date: Sat, 27 Jun 2020 22:39:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.4-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jdc@koitsu.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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jun 2020 22:40:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247602 Bug ID: 247602 Summary: top occasionally shows unrealistic WCPU values Product: Base System Version: 11.4-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: jdc@koitsu.org Preface: this is a different problem than what's in PR 135823 (threading is= not involved in this one, at least not as far as the processes themselves go), = and what's in PR 236096 (I use SCHED_ULE). (I've picked 11.4-RELEASE for the Version field in Bugzilla because that's the closest to stable/11 I can get= .) While building world (make -j2 buildworld) on a 2-core 11/stable (r358258) amd64 VM I have, while running top -s 1, I noticed on very rare occasion -- but recurring -- some procesesses would show completely ridiculous WCPU val= ues. The numbers of processes which would show this varied (sometimes an entire page worth, other times only partial numbers). Most of these processes do = not have threads, in case that's relevant. Example: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMA= ND 1211 halbot 1 20 0 56524K 50092K select 1 0:01 1830297421127995.00% perl /home/halbot/hal/halbot.pl /home/halbot/hal/halbot.json 764 jdc 1 20 0 13208K 5748K select 0 0:00 1830297421127995.00% sshd: jdc@pts/0 (sshd) 486 unbound 1 20 0 19320K 9672K kqread 1 0:00 1830297421127995.00% /usr/local/sbin/unbound -c /usr/local/etc/unbound/unbound.conf 905 root 1 20 0 5024K 1372K select 1 0:00 1830297421127995.00% make -m /usr/src/share/mk -f Makefile.inc1 TARGET=3Dam= d64 TARGET_ARCH=3Damd64 buildworld 881 root 1 20 0 5024K 984K select 1 0:00 1830297421127995.00% make -j2 buildworld 4091 root 1 52 0 5024K 1780K select 1 0:00 1830297421127995.00% make DIRPRFX=3Dusr.bin/clang/llvm-tblgen/ all 465 root 1 20 0 6428K 1996K select 1 0:00 1830297421127995.00% /usr/sbin/syslogd -4 -s -s -cc 4240 root 1 80 0 156M 135M CPU1 1 0:03 100.71% /usr/bin/c++ -cc1 -triple x86_64-unknown-freebsd11.3 -emit-obj -disable-free -disable-llvm-verifier -discard-value 4237 root 1 80 0 164M 142M RUN 0 0:04 99.76% /usr/bin/c++ -cc1 -triple x86_64-unknown-freebsd11.3 -emit-obj -disable-free -disable-llvm-verifier -discard-value 4216 jdc 1 20 0 7928K 2900K CPU0 0 0:00 0.09% top 568 root 1 20 0 105M 95940K select 1 0:02 0.03% /usr/local/bin/perl -T -w /usr/local/bin/spamd -4 -c -d -r /var/run/spamd/spamd.pid 1493 jdc 1 20 0 13208K 5776K select 1 0:00 0.02% sshd: jdc@pts/1 (sshd) 656 root 1 20 0 145M 6172K kqread 0 0:00 0.01% php-f= pm: master process (/usr/local/etc/php-fpm.conf) (php-fpm) ... This looks like an overflowed integer, but makes me wonder if the bug is in= the kernel or in top itself. (Not sure if this should be Component: bin or Component: kern) I might suggest pulling jhb@ in for this one since he has great familiarity with some of top's code, esp. relating to WCPU. --=20 You are receiving this mail because: You are the assignee for the bug.=