RE: [PATCH] x86: set spincount 1 for x86 hybrid platform [PR109812]

2023-10-10 Thread Zhang, Jun
> -Original Message- > From: Jakub Jelinek > Sent: Tuesday, October 10, 2023 3:57 PM > To: Zhang, Jun > Cc: gcc-patches@gcc.gnu.org; ubiz...@gmail.com; Liu, Hongtao > > Subject: Re: [PATCH] x86: set spincount 1 for x86 hybrid platform [PR109812] > > On Tue,

[PATCH] Enable tpause Exponential backoff and thread delay

2023-08-02 Thread Zhang, Jun via Gcc-patches
There are two kinds of pause bottleneck, one is in user space, the other is in kernel. Tpause plus backoff could reduce loop count in user space. To kernel, Because tasks start at same time, they usually arrive critial area at same time, this decrease performance. tasks started one by one could avo