Skip to content

Slow / low CPU utilization on Alder Lake, due to lower-priority non-GUI threads being limited to E Cores #197

@DeeDeeG

Description

@DeeDeeG

Hi,

Thank you for making FFMetrics!

Issue:

I noticed the program spawns an ffmpeg process under the hood with lower than "Normal" priority.

On Alder Lake, since the ffmpeg process is non-GUI, and is less than "Normal" priority, it will always run only on E cores. (For me with four E cores, that shows FFMetrics as having ~20% CPU utilization in Task Manager.) I can manually increase the priority of ffpmpeg to "Normal" in Task Manager, and it will use both P and E cores, and increase FFMetrics to having about ~60% total CPU utilization in Task Manager, and run significantly faster.

But this requires manual intervention for every ffmpeg process that is spawned, which would be very tedious and not practical.

Since intel and Microsoft together have made these "interesting" scheduling decisions, may I politely/humbly request some workaround for those of us on Alder Lake CPUs?

Additional Notes:

(Possibly affects all intel CPUs with E cores? I only have Alder Lake to test with. And I'm on Windows 10, unsure about Windows 11)...

(If I recall correctly, any non-GUI process can't be a "foregrounded window." If its priority is both less than "Normal" and a "background task," the scheduler will strictly limit it to E cores. This is from my best recollection, pardon me if I misstate the details. This saves wattage but is painfully slow.)

("Below Normal" and "Low" priority for the ffmpeg process in Task Manager are about equivalent -- they behave very similarly. Maybe a ~1% utilization increase from "Low" to "Below Normal"? Both around ~20% utilization. "Normal" is significantly faster and significantly higher utilization than either "Low" or "Below Normal.")

Thanks again for making FFMetrics!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions