It makes some sense, thank you very much.
在 2020年1月27日星期一 UTC+8下午12:50:32,changkun写道:
>
> 256 run queue size is designed for the work-steal scheduler to prevent 
> false sharing.
>
> 128 run queue size exactly fits one cache line. Since the run queue can be 
> stolen half of the run queue from the tail by other Ps, 256 run queue size 
> prevents false sharing when the work-steal happens on different cores.
>
> On Sunday, January 26, 2020 at 6:31:27 PM UTC+8, jin wang wrote:
>>
>> why p's local run queue size is 256, not 128 or 512?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/971bf111-54d8-45a4-893f-0094cf249d59%40googlegroups.com.

Reply via email to