From owner-freebsd-questions Thu Oct 17 12:53:35 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 1BBA337B401 for ; Thu, 17 Oct 2002 12:53:33 -0700 (PDT) Received: from speedy.insekure.com (gotroot.insekure.com [207.254.222.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60A0743E6A for ; Thu, 17 Oct 2002 12:53:32 -0700 (PDT) (envelope-from james@JamesSchmidt.Com) Received: from localhost (james@localhost.insekure.com [127.0.0.1]) by speedy.insekure.com (8.12.5/8.12.3) with ESMTP id g9HJi78M054701; Thu, 17 Oct 2002 14:44:07 -0500 (CDT) (envelope-from james@JamesSchmidt.Com) Date: Thu, 17 Oct 2002 14:44:07 -0500 (CDT) From: James Schmidt X-X-Sender: james@speedy.insekure.com To: Dan Nelson Cc: questions@FreeBSD.ORG Subject: Re: 'screen' causing 100% cpu utilization on 4.6.2-Release-p2 In-Reply-To: <20021017193114.GC71982@dan.emsphone.com> Message-ID: <20021017143206.X54604-100000@speedy.insekure.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Screen version 3.09.11 (FAU) 14-Feb-02 From the Truss output, this looks suspicious: seteuid(0x3e8) = 0 (0x0) setegid(0x0) = 0 (0x0) open("/tmp/uscreens/S-james/54657.ttyp2.speedy",0x4,00) = 4 (0x4) seteuid(0x3e8) = 0 (0x0) setegid(0x0) = 0 (0x0) select(0x400,0xbfbff428,0xbfbff3a8,0x0,0x0) = 1 (0x1) fcntl(0x4,0x4,0x0) = 0 (0x0) read(0x4,0x8088480,0xc30) = 0 (0x0) close(4) = 0 (0x0) seteuid(0x3e8) = 0 (0x0) setegid(0x0) = 0 (0x0) open("/tmp/uscreens/S-james/54657.ttyp2.speedy",0x4,00) = 4 (0x4) seteuid(0x3e8) = 0 (0x0) setegid(0x0) = 0 (0x0) select(0x400,0xbfbff428,0xbfbff3a8,0x0,0x0) = 1 (0x1) fcntl(0x4,0x4,0x0) = 0 (0x0) read(0x4,0x8088480,0xc30) = 0 (0x0) close(4) = 0 (0x0) . . . ad infinitum... That help ? I'm not a coder or developer by any means, so I am not sure what this could indicate. Thanks for the help- James On Thu, 17 Oct 2002, Dan Nelson wrote: > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message