Eagerly unmap during resize#7540
Eagerly unmap during resize#7540shikhar wants to merge 1 commit intoapache:trunkfrom shikhar:patch-1
Conversation
The mmap field gets re-initialized here, so the old object will become garbage-collectible. We should be eagerly unmapping here too, not just for Windows support.
|
cc @ijuma since you were involved in such PRs Motivation for this change is that we are seeing pauses on the brokers which seem a lot like https://issues.apache.org/jira/browse/KAFKA-4614. That has a fix version of 0.10.2.0 (PR was #2352). I also saw that you made an improvement here #5757 which has been in Kafka since 2.2. We are on Kafka 2.2. |
|
After further investigation today it doesn't look like the pauses are during GC, but also other safepoints - time-to-safepoint is high, which seems like can easily bite with memory-mapped IO and page faults to disks in cloud environments. Interesting threads UPDATE: For reference our safepoint issues, and high IO throttling to cloud disks, went away with tweaks to virtual memory sysctls |
|
We are running into a similar issue and see lots of references to already deleted index files held by the kafka process. Is there a reason why the |
|
The challenge is that we don't lock on operations like |
The mmap field gets re-initialized here, so the old object will become garbage-collectible. We should be eagerly unmapping here too, not just for Windows support.