Intel's One Line Of Linux Code For Speeding-Up Sapphire Rapids On Ubuntu

Written by Michael Larabel in Software on 4 May 2023 at 10:00 AM EDT. Page 3 of 4. 9 Comments.
Kvazaar benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Very Fast. v6.3 + performance was the fastest.

The video encoding benchmarks tend to be very sensitive to CPU frequency scaling governor changes and here with the stock Linux 6.3 kernel using the P-State powersave governor is now exhibiting performance much closer to the performance governor.

Kvazaar benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Super Fast. v6.3 + performance was the fastest.
Kvazaar benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Super Fast. v6.3 + performance was the fastest.
Kvazaar benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Super Fast. v6.3 + performance was the fastest.

While the CPU power use increased quicker with this change, on a performance-per-Watt basis it's an improvement over the prior (slower) performance.

Kvazaar benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Ultra Fast. v6.3 + performance was the fastest.
Kvazaar benchmark with settings of Video Input: Bosphorus 1080p, Video Preset: Very Fast. v6.3 + performance was the fastest.
Kvazaar benchmark with settings of Video Input: Bosphorus 1080p, Video Preset: Ultra Fast. v6.3 + performance was the fastest.

The video encoding benchmarks on Sapphire Rapids were in much better shape now on Ubuntu Linux with its powersave default.

SVT-AV1 benchmark with settings of Encoder Mode: Preset 4, Input: Bosphorus 4K. v6.3 + performance was the fastest.
SVT-AV1 benchmark with settings of Encoder Mode: Preset 8, Input: Bosphorus 4K. v6.3 + performance was the fastest.
SVT-AV1 benchmark with settings of Encoder Mode: Preset 12, Input: Bosphorus 4K. v6.3 + performance was the fastest.
SVT-AV1 benchmark with settings of Encoder Mode: Preset 13, Input: Bosphorus 4K. v6.3 + performance was the fastest.
SVT-AV1 benchmark with settings of Encoder Mode: Preset 13, Input: Bosphorus 4K. v6.3 + performance was the fastest.
SVT-AV1 benchmark with settings of Encoder Mode: Preset 13, Input: Bosphorus 4K. v6.3 + performance was the fastest.

The SVT-AV1 encoder benchmarks were also showing a significant improvement from this one line of code added to the kernel but still not to the levels seen with the performance governor.

uvg266 benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Medium. v6.3 + performance was the fastest.
uvg266 benchmark with settings of Video Input: Bosphorus 1080p, Video Preset: Medium. v6.3 + performance was the fastest.
uvg266 benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Very Fast. v6.3 + performance was the fastest.
uvg266 benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Ultra Fast. v6.3 + performance was the fastest.
VVenC benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Fast. v6.3 + performance was the fastest.
VVenC benchmark with settings of Video Input: Bosphorus 4K, Video Preset: Faster. v6.3 + performance was the fastest.

The uvg266 and VVenC H.266/VVC benchmarks also enjoyed some nice performance improvements with Linux 6.3 mainline thanks to this P-State change but using the performance governor was still delivering the strongest performance on these two Xeon Platinum 8490H processors.


Related Articles