Samrat002 commented on PR #28136: URL: https://github.com/apache/flink/pull/28136#issuecomment-4573500073
Thank you, @gaborgsomogyi, for checking it. As we have discussed and deep dived into the issue 262144 means 256 KB This is a JVM property that caps the maximum direct-ByteBuffer size that [sun.nio.ch](http://sun.nio.ch/).Util.BufferCache will cache per thread. With maxCachedBufferSize=262144 (256 KB), any buffer request larger than 256 KB is fulfilled but not cached. It becomes GC-eligible immediately after the write. We have 2 approaches: 1. To enable CRT, set the minimum of maxCachedBufferSize to 256 KB 2. The client adjusts based on the configured maxCachedBufferSize. To support approach 2, I would need to make changes in CRT support. IMO, the 2nd is better for user experience. WDUT? -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
