<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 9 Jan 2023, at 20:12, Arnaud Masson <<a href="mailto:arnaud.masson@fr.ibm.com" class="">arnaud.masson@fr.ibm.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span class=""><o:p class=""> </o:p></span></div>
<div class="">
<div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 1pt; color: white;" class="">On 9 Jan 2023, at 19: 02, Arnau</span><span lang="EN-US" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">> We have not seen situations where virtual threads are the obvious choice and yet you see a problem<o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">I suppose I see a problem where vthreads are not a so obvious choice<span class="Apple-converted-space"> </span></span><span lang="EN-US" style="font-family: "Apple Color Emoji";" class="">😊</span><span lang="EN-US" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">It’s the main issue for Loom in its current form: to know in advance for each request if it’s Loom friendly (most requests I guess) or not.<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">More work for app devs.</span></div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
No, I don’t think so. You’ve hypothesised that different resource consumption could lead to issues, but it’s not at all clear that it does in the real world. So if you find a case where this is a problem, report it. You’ve gone through an entire series of logical
steps, and, having spent years on this, I tried explaining to you why it’s not clear that each step follows from the previous: It is not clear that different resource consumption causes any issue whatsoever in real workloads, and it’s not clear that if it
does, time sharing is the solution. But since you have concerns, I suggest you wait and see what other report.</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div class="">
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
</div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">>Time-sharing doesn’t “scale gracefully”. It decreases the latency for some tasks at the cost of increasing it for others (and sometimes increasing the average), while having no impact on scalability (scheduling cannot affect scalability).<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">It is more graceful since it’s proportional to tasks own durations, instead of brutal pause at some threshold.</span></div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
It has no impact on throughput or on server scalability, and it actually increases the maximum latency. I think you might be speculating over the effects of time sharing on server workloads rather than actually observing them.</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Sorry, I don’t understand what you mean by reporting a problem, I thought that what I was doing here. You mean filling formal ticket?<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">(I can’t really run Loom on prod right now since it’s still JDK Preview.)<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
</div>
</div>
</div>
</blockquote>
<br class="">
</div>
<div>Production is, of course, more interesting, but it’s not at all a prerequisite for a report of an actual problem. What you’ve done so far is speculate that you may run into a problem (and the problem with your simulation, aside from it not simulating a
server with an infinite stream of requests, is that it does not explain how the server keeps the long tasks at just the right rate). If you build a server based on virtual threads that you use to evaluate virtual threads for your production workloads by mimicking
them as well as you can, and *then* run into a problem in testing, reporting that here would be useful, and have to potential of providing us with some new information.</div>
<div><br class="">
</div>
<div>— Ron</div>
</body>
</html>