Share via

Can OS setup task scheduling P core first

Anonymous
2024-08-06T08:38:44+00:00

HI

I'm testing a vae-decoder with 100 iterations. the task is less than 8 (num of Pcore is 8)

Following is speed difference

Affinity CPU[0-7] (P core only) => 0.58s

Affinity CPU[8-23] => 0.73s

Default Affinity Setting [0-23] => Floating , Most time is 0.68s

There are about 17% difference to use default setting. To setup CPU affinity is not good for the process if it have many threads.

Does windows can setup scheduling policy to P core first or any suggestion about this ?

Windows for home | Windows 11 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-08-07T01:17:58+00:00

    Thanks for response. Just paste my testing result here for reference, the loop do the same thing only affinity is difference.

    after finish it, print out affinity list and average time to process the job.

    Most system finish the job as soon as it can. It will get more power saving benefit.
    Maybe it can be improve in the future.

    Image

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-08-06T12:46:59+00:00

    Hi, How are you? I am Alan. I will be happy to assist you today. I appreciate your contact!

    I understand that you are trying to optimize the performance of your VAE-decoder by configuring the CPU affinity to use P cores first. Windows does not offer a direct way to configure a scheduling policy to prioritize P cores, but you can try a few approaches to improve performance.

    You can continue to manually configure the CPU affinity for your critical processes, as you have already done, to ensure that they utilize the P cores (high performance cores).

    This can be done using the Task Manager or through scripts.

    I hope this information helps. If you have any questions, please let me know and I'll be glad to assist you further.

    Alan

    Was this answer helpful?

    0 comments No comments