RexXiong commented on code in PR #3545:
URL: https://github.com/apache/celeborn/pull/3545#discussion_r2570505424
##########
worker/src/main/java/org/apache/celeborn/service/deploy/worker/memory/MemoryManager.java:
##########
@@ -506,6 +506,10 @@ public long availableReadBuffer() {
return Math.max(0, readBufferThreshold - readBufferCounter.get());
}
+ public double readBufferUsageRatio() {
+ return readBufferCounter.get() / (double) maxDirectMemory;
Review Comment:
should be `readBufferCounter.get()/totalReadBuffer?`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]