Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2008 13:49:02 -0500
From:      Joe Marcus Clarke <marcus@freebsd.org>
To:        John Hood <jh@sandstorm.net>
Cc:        gnome@freebsd.org
Subject:   Re: ports/128826: sysutils/hal: hald-addon-mouse-sysmouse runs fstat to poll mice every 2s, eats CPU
Message-ID:  <4921BC9E.1000109@freebsd.org>
In-Reply-To: <200811171320.12371.jh@sandstorm.net>
References:  <200811151752.mAFHqRJN050158@freefall.freebsd.org> <200811171320.12371.jh@sandstorm.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4921BC9E.1000109>