| Performance How To | UserPreferences |
| MoinMoin Wiki | LividWiki | RecentChanges | TitleIndex | WordIndex | Help |
Buy faster hardware!
Yes, throwing money at the problem will help.
Memory is important. So go get phosphore. I just upgraded my machine from 64Meg to 96 Meg, and the (Mpeg2Dec) framerate jumped from 17 to 25 fps. Sure, my machine is slow (P2/233), and I'm really waiting for an accelerated mpeg driver for my Rage128 (see GatosProject), but if you have only 64 Meg, add some more memory... JeremyErwin
Use XVideo if possible. This is supported in XFree86 4.0.x or greater for some video cards. See HardwareCompatibility.
Run xdpyinfo and look for XVideo extension.
Run xvinfo to see supported modes.
For details on how to do this, check the LAMP FAQ located at http://pauillac.inria.fr/lamp/faq.html
This could dramatically boost your mpeg decoding performance:
Configure the MTRR registers (/proc/mtrr) so that your frame buffer is accessible in write-combining mode. If you have XFree 4.x, this is done automatically, but with XFree 3.x you have to do it yourself. Once your MTRR registers are properly configured you should see something like this :
If you use IDE disks, make sure they are accessed in DMA mode, not PIO. PIO is still the default, but it is a very large performance hit, because it does not let your system work on mpeg decoding and read from the disk in parallel. Make sure you run a command similar to hdparm -d1 /dev/hda. You will probably need additional arguments, and please read the man page first because you can break your filesystem if you abuse this command.
If you have certain audio cards (I have a ESS 1938 PCI card) using
the ALSA drivers seems to help quite a bit. The kernel module for audio
made listening to the soundtrack painfully full of pops and clicks.
Loading the ALSA driver for reduced my audio noise to ZERO.
ISA sound cards also can have impact on the performance, because ISA
DMA seems to need some processing power. Upgrading to a cheap PCI sound
card can give you a few fps and is cheaper than a new video card.
See
One way to determine if your processor is fast enough to decode video is to run Mpeg2Dec (or maybe OpenMediaSystem) with no video output. If the frame rate is much higher than with video enabled then your problem is the video driver or video hardware.
Something like this: mpeg2dec -o null foo.mpg. Compare framerate with mpeg2dec -o xvshm foo.mpg (or whatever driver you want).
Also see PerformanceResults.
MoinMoin 1.108, Copyright © 2000-2001 by Jürgen Hermann Hardware
Faster Hardware
![]()
XVideo
MTRR Setup
# cat /proc/mtrr
reg00: base=0x00000000 ( 0MB), size= 256MB: write-back, count=1
reg01: base=0xe2000000 (3616MB), size= 32MB: write-combining, count=2
reg07: base=0xe4000000 (3648MB), size= 64MB: write-combining, count=1
DMA Disk Access
AUDIO Performance
http://www.alsa-project.org/~goemon/ for a list of ALSA-supported
cards. Software
Find the Problem
Compiling
EditText
of this page
(last modified 2001-06-01 15:24:01)
FindPage
by browsing, searching, or an index
Or try one of these actions:
LikePages,
SpellCheck
config = 0.000
total = 0.810
imports = 0.610
send_page = 0.180