You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Duong (Jira)" <ji...@apache.org> on 2024/02/02 19:35:00 UTC

[jira] [Created] (HDDS-10283) Apply Zero-Copy when Ozone client reads chunks

Duong created HDDS-10283:
----------------------------

             Summary: Apply Zero-Copy when Ozone client reads chunks
                 Key: HDDS-10283
                 URL: https://issues.apache.org/jira/browse/HDDS-10283
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: Duong


Ozone client, or ChunkInputStream, reads chunks via grpc call. The chunk data is included in the `ReadChunkResponseProto` serialized by GRPC. By default, GRPC serializes bytes data by copying the data it receives from network (in the native memory zone) to heap buffers (LiteralByteString). The ChunkInputStream uses these buffers to back the read.

We can apply zero-copy marshaller (ZeroCopyMessageMarshaller) to client reads to instruct GRPC to serialize chunks by wrapping the direct buffers of data received from the network. This will eliminate the need to allocate extra heap buffers when reading data.

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org