<div dir="ltr">Thanks Franz, Alan,<br><br>I spun up a quick experiment with a custom scheduler here:<br><br><a href="https://github.com/DanielThomas/virtual-threads-cluster-aware">https://github.com/DanielThomas/virtual-threads-cluster-aware</a><br><br>Have a good weekend,<div>Danny</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 6, 2024 at 2:16 AM Francesco Nigro <<a href="mailto:nigro.fra@gmail.com">nigro.fra@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi <a class="gmail_plusreply" id="m_1233646699880095899plusReplyChip-0" href="mailto:dannyt@netflix.com" target="_blank">@Danny Thomas</a> <div><br></div><div>We're working (nudge nudge Andrew Haley) on a custom scheduler API - as mentioned by Alan, which enables (expert) users/framework devs to implement something like this - and more :)</div><div><br></div><div>Cheers,</div><div>Franz</div></div><div dir="ltr"><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 2 set 2024 alle ore 10:41 Alan Bateman <<a href="mailto:alan.bateman@oracle.com" target="_blank">alan.bateman@oracle.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 02/09/2024 07:23, Danny Thomas wrote:<br>
> Hi folks,<br>
><br>
> I was giving some thought to our adoption of Xen 4 coinciding with <br>
> virtual threads being available, and it occurred to me with an <br>
> increasing number of architectures clustering L3 and L2 caches between <br>
> groups of cores on a die, that virtual threads scheduling in user <br>
> space could make them particularly well suited to these architectures, <br>
> if the scheduler were topology aware.<br>
><br>
> Have you given any thought to worker CPU affinity and/or locality to <br>
> an existing worker when a virtual thread is started by another? Would <br>
> you consider this something to be proved out by custom schedulers, or <br>
> is this enough of a trend to justify future investment in the default <br>
> scheduler?<br>
<br>
To date, we've put CPU and node affinity into the "custom scheduler" <br>
topic, which is still TBD on whether to expose. If you have data from <br>
any experiments with the current EA builds then it would be useful to <br>
see. The current EA builds allow the the default FJP based scheduler to <br>
be replaced for experimentation purposes.<br>
<br>
In a system with a mix of schedulers then starting a virtual thread will <br>
"inherit" the scheduler when not configured. That seems a sensible default.<br>
<br>
-Alan<br>
</blockquote></div>
</blockquote></div>