liupc commented on issue #23672: [SPARK-26750]Estimate memory overhead with multi-cores URL: https://github.com/apache/spark/pull/23672#issuecomment-458848603 ``` java -XX:NativeMemoryTracking=summary -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMTStatistics -version ``` When we change the `Xmx` and `Xms` in the above command, we can see the GC mmap size increasing with the heap size. ``` Native Memory Tracking: Total: reserved=2443999KB, committed=1144647KB - Java Heap (reserved=1048576KB, committed=1048576KB) (mmap: reserved=1048576KB, committed=1048576KB) - Class (reserved=1066073KB, committed=13785KB) (classes #352) (malloc=9305KB #125) (mmap: reserved=1056768KB, committed=4480KB) - Thread (reserved=19614KB, committed=19614KB) (thread #19) (stack: reserved=19532KB, committed=19532KB) (malloc=59KB #105) (arena=22KB #38) - Code (reserved=249630KB, committed=2566KB) (malloc=30KB #283) (mmap: reserved=249600KB, committed=2536KB) - GC (reserved=48699KB, committed=48699KB) (malloc=10383KB #129) (mmap: reserved=38316KB, committed=38316KB) - Compiler (reserved=132KB, committed=132KB) (malloc=1KB #21) (arena=131KB #3) - Internal (reserved=9439KB, committed=9439KB) (malloc=9407KB #1312) (mmap: reserved=32KB, committed=32KB) - Symbol (reserved=1300KB, committed=1300KB) (malloc=876KB #58) (arena=424KB #1) - Native Memory Tracking (reserved=37KB, committed=37KB) (malloc=3KB #41) (tracking overhead=34KB) - Arena Chunk (reserved=498KB, committed=498KB) (malloc=498KB) ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
