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/syscalls), but I don't 
know ATM any other way to avoid the long TTSP issues: a "simple" (but costy in 
term of dev/test time) way to improve the situation would be to expose a JNA 
`mlock` call to prevent *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, but it would be great to have 
both obviously, so any idea is wellcome :+1: 

----------------------------------------------------------------
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

Reply via email to