From owner-freebsd-stable@FreeBSD.ORG Thu Sep 16 13:32:31 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D4041065670 for ; Thu, 16 Sep 2010 13:32:31 +0000 (UTC) (envelope-from sperber@deinprogramm.de) Received: from h615406.serverkompetenz.net (h615406.serverkompetenz.net [81.169.143.132]) by mx1.freebsd.org (Postfix) with ESMTP id 0AB858FC16 for ; Thu, 16 Sep 2010 13:32:30 +0000 (UTC) Received: from h615406.serverkompetenz.net (localhost [127.0.0.1]) by h615406.serverkompetenz.net (Postfix) with ESMTP id 3FF131706C; Thu, 16 Sep 2010 13:32:29 +0000 (UTC) Received: from eta.local (p5B204993.dip.t-dialin.net [91.32.73.147]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by h615406.serverkompetenz.net (Postfix) with ESMTPSA id D15811706B; Thu, 16 Sep 2010 13:32:28 +0000 (UTC) Received: by eta.local (Postfix, from userid 2246) id 08855851CE8; Thu, 16 Sep 2010 15:32:27 +0200 (CEST) From: Michael Sperber To: Ed Schouten References: <20100916091559.GA16270@icarus.home.lan> <20100916110944.GY56986@hoeg.nl> Date: Thu, 16 Sep 2010 15:32:27 +0200 In-Reply-To: <20100916110944.GY56986@hoeg.nl> (Ed Schouten's message of "Thu, 16 Sep 2010 13:09:44 +0200") Message-ID: User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.5-b29 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-stable@freebsd.org, Jeremy Chadwick Subject: Re: After 7.3->8.1, moused on serial mouse draws 100% CPU X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2010 13:32:31 -0000 Ed Schouten writes: > I should really get myself subscribed to stable@... > > Anyway, Michael, can you attach truss to the process to see what it's > actually doing (truss -p $pid)? I'm interested in a single `iteration' > of what it's doing. Thanks! The relevant bit is this, I think: open("/dev/cuau0",O_RDWR|O_NONBLOCK,01001172450) = 2 (0x2) ioctl(2,MOUSE_SETLEVEL,0x805004c) ERR#25 'Inappropriate ioctl for device' ioctl(2,MOUSE_GETLEVEL,0xbfbfe4cc) ERR#25 'Inappropriate ioctl for device' ioctl(2,MOUSE_GETHWINFO,0x8050088) ERR#25 'Inappropriate ioctl for device' ioctl(2,MOUSE_GETMODE,0x805009c) ERR#25 'Inappropriate ioctl for device' write(2,"moused: ",8) = 8 (0x8) write(2,"PnP COM device rev 1.0 probe...",31) = 31 (0x1f) write(2,"\n",1) = 1 (0x1) ioctl(2,TIOCMGET,0xbfbfe4c4) = 0 (0x0) ioctl(2,TIOCMSET,0xbfbfe4c4) = 0 (0x0) nanosleep({0.240000000 }) = 0 (0x0) ioctl(2,TIOCMGET,0xbfbfe4c4) = 0 (0x0) write(2,"moused: ",8) ERR#5 'Input/output error' write(2,"\n",1) ERR#5 'Input/output error' write(2,"\n",1) ERR#5 'Input/output error' ioctl(2,TIOCMGET,0xbfbfe4c4) = 0 (0x0) ioctl(2,TIOCMSET,0xbfbfe4c4) = 0 (0x0) nanosleep({0.240000000 }) = 0 (0x0) ioctl(2,TIOCGETA,0xbfbfe2fc) = 0 (0x0) ioctl(2,TIOCSETAW,0xbfbfe2fc) = 0 (0x0) nanosleep({0.100000000 }) = 0 (0x0) ioctl(2,TIOCSETAW,0xbfbfe2fc) = 0 (0x0) ioctl(2,TIOCFLUSH,0xbfbfe4c4) = 0 (0x0) ioctl(2,TIOCMBIS,0xbfbfe4c4) = 0 (0x0) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) write(2,"\n",1) ERR#5 'Input/output error' nanosleep({0.240000000 }) = 0 (0x0) read(2,"3",1) = 1 (0x1) write(2,"\n",1) ERR#5 'Input/output error' read(2,"\b",1) = 1 (0x1) write(2,"\n",1) ERR#5 'Input/output error' select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"\^A",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"\^Z",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"+",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"-",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,",",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"\^P",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"\^P",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"\^P",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"\^Q",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"<",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"<",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"-",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"/",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"5",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"3",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"%",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"<",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"0",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,".",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"0",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"\^P",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,"&",1) = 1 (0x1) select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,0xbfbfe4ec,1) ERR#35 'Resource temporarily unavailable' select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,0xbfbfe4ed,1) ERR#35 'Resource temporarily unavailable' select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) read(2,0xbfbfe4ee,1) ERR#35 'Resource temporarily unavailable' select(1024,{2},0x0,0x0,{0.240000 }) = 1 (0x1) The last two lines then repeat endlessly. -- Regards, Mike