You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "runzhiwang (Jira)" <ji...@apache.org> on 2020/04/01 09:31:00 UTC

[jira] [Updated] (HDDS-3283) Improve write efficiency by decreasing the number of force sync to disk

     [ https://issues.apache.org/jira/browse/HDDS-3283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

runzhiwang updated HDDS-3283:
-----------------------------
    Summary: Improve write efficiency by decreasing the number of force sync to disk  (was: Improve write efficiency by decreasing the number of sync to disk)

> Improve write efficiency by decreasing the number of force sync to disk
> -----------------------------------------------------------------------
>
>                 Key: HDDS-3283
>                 URL: https://issues.apache.org/jira/browse/HDDS-3283
>             Project: Hadoop Distributed Data Store
>          Issue Type: Improvement
>            Reporter: runzhiwang
>            Assignee: runzhiwang
>            Priority: Major
>         Attachments: screenshot-1.png
>
>
> The whole write cost about 140ms, about 110ms was cost by force sync to disk. The force sync operations are as follows. I will try to avoid force sync the response of CreateKey. 
> *RocksDB*
> 1.  When create key, the response was put into [omDoubleBufferHelper|https://github.com/apache/hadoop-ozone/blob/master/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyCreateRequest.java#L264], and sync to disk by [writeOptions.setSync(true)|https://github.com/apache/hadoop-ozone/blob/master/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/db/DBStoreBuilder.java#L171]
> 2.  When commit key, the response was put into [omDoubleBufferHelper|https://github.com/apache/hadoop-ozone/blob/master/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyCommitRequest.java#L222], and sync to disk by [writeOptions.setSync(true)|https://github.com/apache/hadoop-ozone/blob/master/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/db/DBStoreBuilder.java#L171]
> *Ratis*
> 1. leader and follower [sync |https://github.com/apache/incubator-ratis/blob/master/ratis-server/src/main/java/org/apache/ratis/server/raftlog/segmented/BufferedWriteChannel.java#L86] raftlog to disk



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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