[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Suggestions for improving ffmpeg performance?



Doug,

On Tue, 4 Mar 2008, Douglas A. Tutty wrote:

What happens if you run top?  Look at things like %idle, %waiting (for
i.o), and %sys (kernel executing) and %user (your program, likely the
ffmpeg program, see the listing for that line).  This may tell you where
the bottle-neck is.

To my untrained eye this doesn't appear to give any clues. Here's an example of one moment in time with a transfer to my TiVo box running:

Cpu0  :  4.7%us,  1.7%sy,  0.0%ni, 93.0%id,  0.0%wa,  0.3%hi,  0.3%si,  0.0%st
Cpu1  : 61.1%us,  0.3%sy,  0.0%ni, 38.5%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st

I only have one CPU, but it's hyperthreaded and appears as two. ffmpeg's CPU usage seems to stay around the 50% to 90% range, mostly around 60% to 70%. I don't see any other processes that appear to be bogging it down.

For example, did the two systems uses the same mount options for the filesystem?

Yes. I have two hard drives in the box. There's a small boot partition on the first drive. The remaining space on the first drive and all the space on the second are combined as an LVM VG. The files I'm streaming to TiVo are are on the same LVs as they were when I was running Arch. The only difference in my partition scheme is that I'm running root on LVM under Debian. Under Arch I had a separate non-LVM root partition.

Are other daemons running that are interrupting the process?

Not that I see.



Kevin
http://www.RawFedDogs.net
http://www.WacoAgilityGroup.org
Bruceville, TX

Si hoc legere scis nimium eruditionis habes.
Longum iter est per praecepta, breve et efficax per exempla!!!


Reply to: