You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ChenXi (Jira)" <ji...@apache.org> on 2023/10/03 14:02:00 UTC
[jira] [Created] (HDDS-9380) Reduce the number of system calls when DN writes a key
ChenXi created HDDS-9380:
----------------------------
Summary: 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
Attachments: cpu_dn_create_key2_long.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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org