<div dir="auto">HiĀ Alan.<div dir="auto">Thank you for your comprehensive response.</div><div dir="auto">I meant usage of io_uring in file read/write operations.</div><div dir="auto">I can of course implement it myself using foreign function API but would be cool it see once in JDK.</div><div dir="auto"><br></div><div dir="auto">Thank you for your work on synchronized locks.</div><div dir="auto">Once you wrote that support of synchronized split in two phases:</div><div dir="auto">1. Simpler to implement but more expensive will be done first.</div><div dir="auto">2. Then more complex but lightweight solution will provided.</div><div dir="auto"><br></div><div dir="auto">Is it still the case ?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 15 Feb 2024, 10:11 Alan Bateman, <<a href="mailto:Alan.Bateman@oracle.com">Alan.Bateman@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/02/2024 12:24, Andrii Lomakin wrote:<br>
><br>
> Hi Alan.<br>
> That is cool!<br>
><br>
> Does this build support file async io aka io_uring features?<br>
><br>
<br>
The purpose of these EA builds to have builds available with the changes <br>
to the object monitor implementation so we might get some feedback and <br>
help testing the changes.<br>
<br>
On file I/O, I'm not sure if you are asking about <br>
AsynchronousFileChannel implemented on io_uring or if you are asking <br>
about virtual threads doing file I/O using io_uring. There is a branch <br>
in the sandbox with prototype infrastructure but it will be some time <br>
before all the pieces can come together and properly evaluate for both <br>
of these cases. Right now, in these EA builds, doing file I/O in virtual <br>
thread when the file is opened with the options for synchronized I/O <br>
file/data integrity will increase the target parallelism for the <br>
duration of write operations. The latency of writes for these cases is <br>
significant. For direct I/O it is both read + write operations as these <br>
bypass the file caches.<br>
<br>
-Alan<br>
<br>
<br>
</blockquote></div>