intel / intel/media-driver

[Bug]: 12th Gen Intel(R) Core(TM) i7-1255U encode cost too much cpu

Open
#1,776 3 comments 0 reactions 2 assignees Claimed by @bai-isaac View on GitHub
Encode HEVC
Dominant language
C
Stars
1.2k
Forks
383
Avg merge
8d 18h
Merged PRs (30d)
4

Description

### Which component impacted?

Encode

### Is it regression? Good in old configuration?

Yes, it's good in old version

### What happened?

when we use 12th Gen Intel(R) Core(TM) i7-1255U  oneVPL to encode,we meet one issue.   
1. when use  oneVPL GPU Runtime 2023Q2 Release - 23.2.4       https://github.com/oneapi-src/oneVPL-intel-gpu/releases/download/intel-onevpl-23.2.4/MediaStack.tar.gz    ./install_media.sh
    use this command:   "/opt/intel/media/share/vpl/samples/_bin/sample_encode  h265  -gpucopy::on -i /tmp/yuv/4208bit.yuv -o test1.h265 -nv12 -w 1920 -h 1080   -dstw 1920 -dsth 1080 -b 10000  -fps 60  -f 60   -hw -async 2 -lowpower:on -u speed    -timeout 600  -g 65535 -x 4 -r 8"

![image](https://github.com/intel/media-driver/assets/119641053/b5b6690b-3d45-4e98-9db9-34254fe222f0)

sample_encode cost about 43% cpu. why cost too much cpu?  

2023Q3 release and 2023Q4 release  also have this issue.

2. when we use  oneVPL GPU Runtime 2023Q1 Release - 23.1.5      https://github.com/oneapi-src/oneVPL-intel-gpu/releases/download/intel-onevpl-23.1.5/MediaStack.tar.gz  use less cpu.
use same command     "/opt/intel/media/share/vpl/samples/_bin/sample_encode  h265  -gpucopy::on -i /tmp/yuv/4208bit.yuv -o test1.h265 -nv12 -w 1920 -h 1080   -dstw 1920 -dsth 1080 -b 10000  -fps 60  -f 60   -hw -async 2 -lowpower:on -u speed    -timeout 600  -g 65535 -x 4 -r 8"
![image](https://github.com/intel/media-driver/assets/119641053/4d460974-1edd-49e7-9450-6c96fd6524e8)

sample_encode cost about 23% cpu

This is strange.should be 2023Q1 => 2023Q2  have some change cause this issue, Please help us look at this issue

OS version:  cat /proc/versionLinux version 5.15.0-56-generic (root@tpack) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1 SMP Thu Dec 8 13:31:18 UTC 2022

### What's the usage scenario when you are seeing the problem?

Others

### What impacted?

_No response_

### Debug Information

_No response_

### Do you want to contribute a patch to fix the issue?

None

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.