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/65c84faa-0f04-47b4-a6a0-1d2eb12557d5%40googlegroups.com.

Reply via email to