From owner-freebsd-multimedia@FreeBSD.ORG Sat Mar 24 13:56:05 2007 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D22B516A400 for ; Sat, 24 Mar 2007 13:56:05 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 9011C13C44C for ; Sat, 24 Mar 2007 13:56:05 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5D33F.dip.t-dialin.net [84.165.211.63]) by redbull.bpaserver.net (Postfix) with ESMTP id 05D382E165; Sat, 24 Mar 2007 14:56:02 +0100 (CET) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by outgoing.leidinger.net (Postfix) with ESMTP id 423165B4817; Sat, 24 Mar 2007 14:55:59 +0100 (CET) Date: Sat, 24 Mar 2007 14:55:58 +0100 From: Alexander Leidinger To: Geoff Buckingham Message-ID: <20070324145558.2e0f462b@Magellan.Leidinger.net> In-Reply-To: <20070323181558.GA46175@chuggalug.clues.com> References: <20070323181558.GA46175@chuggalug.clues.com> X-Mailer: Claws Mail 2.8.1 (GTK+ 2.10.9; i686-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.787, required 8, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14, TW_OC 0.08) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: multimedia@freebsd.org Subject: Re: Updated mythtv-fixes port X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Mar 2007 13:56:05 -0000 Quoting Geoff Buckingham (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