You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Uma Maheswara Rao G (Jira)" <ji...@apache.org> on 2023/11/18 02:16:00 UTC

[jira] [Commented] (HDDS-9668) Zero-Copy in EC GRPC (write)

    [ https://issues.apache.org/jira/browse/HDDS-9668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17787441#comment-17787441 ] 

Uma Maheswara Rao G commented on HDDS-9668:
-------------------------------------------

[~duong] Could you please post if you have rough number with this change?

> Zero-Copy in EC GRPC (write)
> ----------------------------
>
>                 Key: HDDS-9668
>                 URL: https://issues.apache.org/jira/browse/HDDS-9668
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Duong
>            Assignee: Duong
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: datanode-on-write-ec-ncopies.html, ec-ncopies.png
>
>
> Today EC with GRPC copies input data buffer several times:
>  * when parsing protobuf objects from the input network stream, data is copied from the original netty direct buffer to heap.
>  * when writing data to files, the heap buffer needs to be copied to direct buffers by NIO.
> The cost of buffer copies themself is inefficient, it comes with GC consequences of cleaning up the intermediate buffers. Those together slow EC I/O down.
> !ec-ncopies.png|width=807,height=292!
> We can use the ZeroCopyMarshaller from RATIS-1932 to avoid all those issues.



--
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