Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
long len = info.getLen(); long offset = info.getOffset(); ByteBuffer data = ByteBuffer.allocate((int) len); ChunkUtils.readData(chunkFile, data, offset, len, volumeIOStats);
Instead of allocating buffer in every readChunk, it may be possible to reuse via threadLocal ByteBuffer. Sizes/Limits could be adjusted on need basis.
This is to reduce memory pressure on DN.
Attachments
Attachments
Issue Links
- is related to
-
HDDS-7117 Consider reading chunk files using MappedByteBuffer
- Resolved