[
https://issues.apache.org/jira/browse/HDDS-9380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17772146#comment-17772146
]
ChenXi commented on HDDS-9380:
------------------------------
flame-graph after applying the HDDS-9380
!https://user-images.githubusercontent.com/32928346/272847018-232ec4d5-8a37-44c5-a858-b1ebd6f7210b.png|width=1758,height=917!
[^cpu_dn_create_key_afer_hdds_9380.html]
> Reduce the number of system calls when DN writes a key
> ------------------------------------------------------
>
> Key: HDDS-9380
> URL: https://issues.apache.org/jira/browse/HDDS-9380
> Project: Apache Ozone
> Issue Type: Improvement
> Reporter: ChenXi
> Assignee: ChenXi
> Priority: Major
> Labels: pull-request-available
> Attachments: cpu_dn_create_key2_long.html,
> cpu_dn_create_key_afer_hdds_9380.html, image-2023-10-03-21-54-25-419.png
>
>
> To execute `HddsDispatcher.sendCloseContainerActionIfNeeded` once, need to
> call `getCapacity()` 3 times and `getAvailable()` 2 times.
> The `getCapacity()` and `getAvailable()` are System call, we need reduce the
> System calls.
> Here reduces the number of `getCapacity()` and `getAvailable()` calls to one
> each.
> !image-2023-10-03-21-54-25-419.png|width=1413,height=949!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]