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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to