franz1981 edited a comment on issue #2633: ARTEMIS-2317 Avoid long TTSP caused by Page::read using mmap read URL: https://github.com/apache/activemq-artemis/pull/2633#issuecomment-487509450 @clebertsuconic @wy96f @qihongxu I'm aware that this patch introduce a (small) perf regression in some cases (due to additional buffer copies and context switches), but I don't know ATM any other way to avoid the long TTSP issues: a "simple" (bust costy in term of dev/test time) way to improve the situation would be to expose a JNA `mlock` call to allow *at least* that while reading a OS page the OS will swap out randomly OS pages due to other threads interacting with the OS page cache eg the MAPPED journal, that tends to reuse the same files, if compaction is working as expected. It won't solve the TTSP issue, but it would improve the situation on busy servers, leaving just major/minor page faults to be the other causes for long TTSP. I have preferred stability over performance, it would be great to have both obviously, so any ideas is wellcome.
---------------------------------------------------------------- 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 With regards, Apache Git Services