xpra icon
Bug tracker and wiki

Opened 13 months ago

Last modified 4 months ago

#1851 new task

tune vpx threading

Reported by: Antoine Martin Owned by: Jonathan Anthony
Priority: major Milestone: 2.4
Component: encodings Version: 2.3.x
Keywords: Cc:

Description (last modified by Antoine Martin)

Same as #1840 but for libvpx.

Some links:

It looks like part of the reason why vp8 and vp9 are now faster, and why I chose to use vpx more (see ticket:832#comment:22) is that the threading improvements make it faster.
This does mean that reducing the threading might reduce the performance too much.

Change History (4)

comment:1 Changed 13 months ago by Antoine Martin

You can choose the maximum number of threads with:

XPRA_VPX_THREADS=2 xpra start ...

We want to see how this affects frame latency, bandwidth, CPU load, etc.
Unlike x264, it looks like we don't have a lot of room for manoeuver here.
(the current value is "number-of-cpus" minus 1)
Maybe this should be capped at 2 threads.

comment:2 Changed 13 months ago by J. Max Mena

I've set up a quick script that should run a series of three tests runs with XPRA_VPX_THREADS set to 1, 2, and 4. For reference the test box is an 8-core system. I'm more curious to see how much of an impact it has on more low-end machines so I'm going to update one of my low-end test boxes and run the tests again on there.

Last edited 13 months ago by J. Max Mena (previous) (diff)

comment:3 Changed 9 months ago by Antoine Martin

Description: modified (diff)

comment:4 Changed 4 months ago by Antoine Martin

Owner: changed from J. Max Mena to Jonathan Anthony
Status: assignednew
Note: See TracTickets for help on using tickets.