From owner-freebsd-gnome@FreeBSD.ORG Mon Nov 17 19:02:16 2008 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 457B81065679 for ; Mon, 17 Nov 2008 19:02:16 +0000 (UTC) (envelope-from marcus@freebsd.org) Received: from av-tac-rtp.cisco.com (hen.cisco.com [64.102.19.198]) by mx1.freebsd.org (Postfix) with ESMTP id 07C7A8FC19 for ; Mon, 17 Nov 2008 19:02:15 +0000 (UTC) (envelope-from marcus@freebsd.org) X-TACSUNS: Virus Scanned Received: from rooster.cisco.com (localhost.cisco.com [127.0.0.1]) by av-tac-rtp.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id mAHInAl0004469; Mon, 17 Nov 2008 13:49:10 -0500 (EST) Received: from [64.102.220.132] (dhcp-64-102-220-132.cisco.com [64.102.220.132]) by rooster.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id mAHIn1tC001082; Mon, 17 Nov 2008 13:49:09 -0500 (EST) Message-ID: <4921BC9E.1000109@freebsd.org> Date: Mon, 17 Nov 2008 13:49:02 -0500 From: Joe Marcus Clarke Organization: FreeBSD, Inc. User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: John Hood References: <200811151752.mAFHqRJN050158@freefall.freebsd.org> <200811171320.12371.jh@sandstorm.net> In-Reply-To: <200811171320.12371.jh@sandstorm.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: gnome@freebsd.org Subject: Re: ports/128826: sysutils/hal: hald-addon-mouse-sysmouse runs fstat to poll mice every 2s, eats CPU X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2008 19:02:16 -0000 John Hood wrote: > On Saturday 15 November 2008 12:52:27 pm marcus@freebsd.org wrote: >> Synopsis: sysutils/hal: hald-addon-mouse-sysmouse runs fstat to poll mice >> every 2s, eats CPU >> >> State-Changed-From-To: open->analyzed >> State-Changed-By: marcus >> State-Changed-When: Sat Nov 15 17:50:57 UTC 2008 >> State-Changed-Why: >> This is true, and currently, there isn't a better way to do what needs >> to be done. Reimplementing the KVM code from fstat is too complicated for >> the simple task required. I am working on an enhancement to procstat >> which will allow this fork/exec problem to go away. Until then, the >> only workaround is to have hald ignore your mouse device. >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=128826 > > I'll allow that it's an ugly little problem. > > Might it make more sense to have moused make status available on a socket or > pipe, which addon-mouse can then query directly? The procstat change will be better for many things in the long run. Hopefully, this fix is not too far off. Joe -- Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome