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

[jira] [Updated] (HDDS-2301) Write path: Reduce read contention in rocksDB

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

Mukul Kumar Singh updated HDDS-2301:
------------------------------------
    Labels: performance  (was: performance pull-request-available)

> Write path: Reduce read contention in rocksDB
> ---------------------------------------------
>
>                 Key: HDDS-2301
>                 URL: https://issues.apache.org/jira/browse/HDDS-2301
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>    Affects Versions: 0.5.0
>            Reporter: Rajesh Balamohan
>            Assignee: Supratim Deka
>            Priority: Major
>              Labels: performance
>         Attachments: om_write_profile.png
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Benchmark: 
>  ------------
>  Simple benchmark which creates 100 and 1000s of keys (empty directory) in OM. This is done in a tight loop and multiple threads from client side to add enough load on CPU. Note that intention is to understand the bottlenecks in OM (intentionally avoiding interactions with SCM & DN).
> Observation:
>  -------------
>  During write path, Ozone checks {{OMFileRequest.verifyFilesInPath}}. This internally calls {{omMetadataManager.getKeyTable().get(dbKeyName)}} for every write operation. This turns out to be expensive and chokes the write path.
> [https://github.com/apache/hadoop/blob/trunk/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMDirectoryCreateRequest.java#L155]
> [https://github.com/apache/hadoop/blob/trunk/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileRequest.java#L63]
> In most of the cases, directory creation would be fresh entry. In such cases, it would be good to try with {{RocksDB::keyMayExist.}}
>  
>  



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