-
- Downloads
[SPARK-4516] Avoid allocating Netty PooledByteBufAllocators unnecessarily
Turns out we are allocating an allocator pool for every TransportClient (which means that the number increases with the number of nodes in the cluster), when really we should just reuse one for all clients. This patch, as expected, greatly decreases off-heap memory allocation, and appears to make allocation only proportional to the number of cores. Author: Aaron Davidson <aaron@databricks.com> Closes #3465 from aarondav/fewer-pools and squashes the following commits: 36c49da [Aaron Davidson] [SPARK-4516] Avoid allocating unnecessarily Netty PooledByteBufAllocators
Showing
- network/common/src/main/java/org/apache/spark/network/client/TransportClientFactory.java 5 additions, 7 deletions...g/apache/spark/network/client/TransportClientFactory.java
- network/common/src/main/java/org/apache/spark/network/util/NettyUtils.java 3 additions, 3 deletions...c/main/java/org/apache/spark/network/util/NettyUtils.java
Please register or sign in to comment