From owner-freebsd-questions Thu Oct 17 12:31:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6A0D37B401 for ; Thu, 17 Oct 2002 12:31:15 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F8CC43E4A for ; Thu, 17 Oct 2002 12:31:15 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.5) id g9HJVEUg018736; Thu, 17 Oct 2002 14:31:14 -0500 (CDT) (envelope-from dan) Date: Thu, 17 Oct 2002 14:31:14 -0500 From: Dan Nelson To: James Schmidt Cc: questions@FreeBSD.ORG Subject: Re: 'screen' causing 100% cpu utilization on 4.6.2-Release-p2 Message-ID: <20021017193114.GC71982@dan.emsphone.com> References: <20021017114547.J428-100000@speedy.insekure.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021017114547.J428-100000@speedy.insekure.com> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Oct 17), James Schmidt said: > I recently cvsup'd to 4.6.2-Release-p2, and I noticed that the 'screen' > virtual screen utility is now causing 100% cpu utilization. > > FreeBSD speedy 4.6.2-RELEASE-p2 FreeBSD 4.6.2-RELEASE-p2 #7: Tue Oct 8 > 14:31:06 CDT 2002 root@speedy:/usr/src/sys/compile/UNIPROC i386 > > last pid: 427; load averages: 0.96, 0.51, 0.23 > up 0+00:21:25 11:45:17 41 processes: 2 running, 39 sleeping > CPU states: 19.4% user, 0.0% nice, 79.8% system, 0.6% interrupt, 0.2% idle > Mem: 22M Active, 130M Inact, 87M Wired, 36K Cache, 112M Buf, 764M Free Swap: 2048M Total, 2048M Free > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > 416 root 52 0 1648K 1356K RUN 2:03 96.60% 96.44% screen What version of screen? Try truss'ing the process and see if it's doing any syscalls. Another option is to gdb the live process and get a stack trace. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message