From owner-freebsd-hackers Wed Sep 12 18:44:25 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by hub.freebsd.org (Postfix) with ESMTP id C3CFF37B410; Wed, 12 Sep 2001 18:44:10 -0700 (PDT) Received: from cain.gsoft.com.au (root@spare0.gsoft.com.au [203.38.152.114]) by cain.gsoft.com.au (8.8.8/8.8.8) with ESMTP id LAA21526; Thu, 13 Sep 2001 11:14:00 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.5.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Thu, 13 Sep 2001 11:13:59 +0930 (CST) From: "Daniel O'Connor" To: bartscgr@studbox.uni-stuttgart.de Subject: Re: [xine-user] xine on freebsd? Cc: freebsd-hackers@freebsd.org, Robert Edmonds , multimedia@freebsd.org, Heiko Schaefer , xine-user Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 12-Sep-2001 Guenter Bartsch wrote: > even when using XvShm to display thevideo data xfree86 uses significantly > more cpu power on freebsd than on linux (~15% on freebsd compared to ~1-3% > on linux) which further indicates there's something wrong here. > > Comments, hints, ideas very welcome, My personal recommendation is to use mplayer. (ports/graphics/mplayer). It _rocks_ :) The SDL video renderer supports the Xv extension and can go fullscreen and the press of a key. I haven't had this program crash once yet even after feeding it some pretty nasty movie files. [xine-users@ ignore this paragraph please ;) ] As to your actual question.. How to you know the Linux and FreeBSD top's are measuring the same thing? top is a very poor way to measure CPU usage, a much better idea would be to play the movie and then exit, and measure the total CPU time used for that activity. This would be moderatly difficult for Xfree86, but maybe do something like.. 1) Edit .xinitrc to run xine with the movie as it's only activity. 2) Run /usr/bin/time startx Compare the numbers between the two systems :) Also, are you sure that you have enough shared memory on the freebsd box? By default the amount of shm you can use is fairly small, and if you use GNOME it will easily eat it all. --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message