franz1981 commented 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 the added unecessary copy), but I don't know ATM any other ways 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.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to