Re:Sub-10 ms Latency in Java: Concurrent GC with Green Threads
by pkolaczk on Wednesday August 05, 2020 @01:28PM
(#24063287)
Pinning doesn't solve the problem of cache L3+ thrashing.
[ Parent
| on HN ]
Re:Sub-10 ms Latency in Java: Concurrent GC with Green Threads
by pron on Wednesday August 05, 2020 @02:40PM
(#24064076)
It could if the GCs used non-temporal instructions that bypass the L3. Of course, how much of a problem this is in practice in most applications is something that would need to be measured.
Re:Sub-10 ms Latency in Java: Concurrent GC with Green Threads
by pkolaczk on Wednesday August 05, 2020 @03:06PM
(#24064341)
Point taken. What about swap?
Re:Sub-10 ms Latency in Java: Concurrent GC with Green Threads
by pron on Wednesday August 05, 2020 @04:23PM
(#24065154)
Yeah, swapping could be really bad and should be avoided. So: don't swap :) Java's memory consumption can't go up indefinitely. The most important setting is the maximum heap size. Set it to a good level and don't swap.