franz1981 commented on pull request #485:
URL: https://github.com/apache/logging-log4j2/pull/485#issuecomment-817327726


   > This reminds me, I had meant to research the feasibility of something like 
libaio for logging file i/o, I recall that you may have some experience with 
the java bindings? ;-) I imagine eventually io_uring may allow us to batch 
appends to multiple files into a single syscall, this could be huge as it's 
common to have some subset of events recorded to multiple files, but I 
admittedly haven't read as much about how this works in practice as I should.
   
   libaio need some JNI, as io_uring, but IMO io_uring is to be preferred 
because more modern. If it worths I've already implemented a version of libaio 
that minimize the usage of JNI (in favour of Unsafe now and VarHandle/Foreign 
Access in the future) ie 
https://github.com/apache/activemq-artemis-native/pull/10 
   and that can be used (with the right changes) as POC to see if it worths. 
Given the nature of being write-only, probably a logger library is a good fit, 
hence being able to NOT trigger the OS page cache can bring some benefit.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to