You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "FMX (via GitHub)" <gi...@apache.org> on 2023/06/29 09:39:20 UTC

[GitHub] [incubator-celeborn] FMX commented on a diff in pull request #1662: [CELEBORN-750] Simplify get Netty used direct memory logic

FMX commented on code in PR #1662:
URL: https://github.com/apache/incubator-celeborn/pull/1662#discussion_r1246389757


##########
worker/src/main/java/org/apache/celeborn/service/deploy/worker/memory/MemoryManager.java:
##########
@@ -207,7 +203,7 @@ private MemoryManager(CelebornConf conf) {
         () ->
             logger.info(
                 "Direct memory usage: {}/{}, disk buffer size: {}, sort memory size: {}, read buffer size: {}",
-                Utils.bytesToString(nettyMemoryCounter.get()),
+                Utils.bytesToString(PlatformDependent.usedDirectMemory()),

Review Comment:
   I think there needs a check to make sure that Celeborn Worker has been configured with off-heap memory. Or Celeborn will encounter undefined behavior.



-- 
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: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org