Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Mar 2007 14:55:58 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Geoff Buckingham <geoffb@chuggalug.clues.com>
Cc:        multimedia@freebsd.org
Subject:   Re: Updated mythtv-fixes port
Message-ID:  <20070324145558.2e0f462b@Magellan.Leidinger.net>
In-Reply-To: <20070323181558.GA46175@chuggalug.clues.com>
References:  <20070323181558.GA46175@chuggalug.clues.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Geoff Buckingham <geoffb@chuggalug.clues.com> (Fri, 23 Mar 2007 18:15:58 +0000):

> 
> I have updated my mythtv-fixes port to include cpu detection/tuning. On my test 
> machine the resultant binary used ~12% CPU instead of ~30% to play a recorded
> DVB-T mpeg stream from a remote backend.
> 
> Under linux this cpu detection uses /proc/cpuinfo, while my patch will use
> /compat/linux/proc/cpuinfo if available, the results are dependant on
> cpinfo providing a model name.(It doesn't allways do this)
> 
> If you don't have linprocfs mounted it will fall back on /var/run/dmesg.boot.
> (This probably works better ATM, but may cause trouble later depending on
> what new linux-centric logic is atted to configure upstream)
> 
> If you have linprocfs mounted do "make configure" check the results, if a
>  specific CPU wasn't detected, unmount linprocfs and "make configure" again.
> (You can then remount)

Why not add a configure option to allow to hardwire to a specific CPU?

There's also "sysctl hw.model", but it may not work everywhere. The
configure-option is a much better fallback.

Bye,
Alexander.

-- 
Hey, waiter!  I want a NEW SHIRT and a PONY TAIL with lemon sauce!
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137



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