From owner-freebsd-bugs Fri May 3 2:40:17 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4337537B419 for ; Fri, 3 May 2002 02:40:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g439e2C34277; Fri, 3 May 2002 02:40:02 -0700 (PDT) (envelope-from gnats) Received: from mail.silverwraith.com (apple.silverwraith.com [212.25.240.44]) by hub.freebsd.org (Postfix) with SMTP id 850F037B417 for ; Fri, 3 May 2002 02:32:59 -0700 (PDT) Received: (qmail 53893 invoked by uid 1000); 3 May 2002 09:33:13 -0000 Message-Id: <20020503093313.53892.qmail@mail.silverwraith.com> Date: 3 May 2002 09:33:13 -0000 From: Avleen Vig Reply-To: Avleen Vig To: FreeBSD-gnats-submit@FreeBSD.org Cc: Avleen Vig X-Send-Pr-Version: 3.113 Subject: bin/37702: /usr/bin/top uses 100% cpu in 'system' Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 37702 >Category: bin >Synopsis: /usr/bin/top uses 100% cpu in 'system' >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 03 02:40:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Avleen Vig >Release: FreeBSD 4.4-RELEASE i386 >Organization: Personal >Environment: System: FreeBSD apple.silverwraith.com 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Wed May 1 13:15:54 BST 2002 root@apple.silverwraith.com:/usr/src/sys/compile/APPLE.DEGUB i386 P166 MMX (intel), 128Mb RAM Low load: 'load averages: 0.01, 0.13, 0.14' >Description: Running 'top -s' gives the following error: top: option requires an argument -- s Top version 3.4 But running 'top -s -o size' starts top and causes it to update as fast as it can. This increases load (rate if increase depends on box specs and other running procs), while top takes up as much CPU time as it can. After 5 mins on a very load load box: load averages: 1.53, 0.85, 0.45 On a box where the initial load is: load averages: 3.16, 1.95, 1.00 After 5 minute of broken top, we get: load averages: 5.24, 3.91, 1.98 http_load also shows that requests don't always seem to complete (ok, it's not the best test) --- 60.0106 secs, 249 fetches started, 199 completed, 50 current >How-To-Repeat: Run: 'top -s -o size'. I don't recommend doing this on a heavily loaded box straight away. Try it on your desktop. You can still quit top easily with the 'q' key. >Fix: Unknown >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message