spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andrewor14 <>
Subject [GitHub] spark pull request: [SPARK-13992] Add support for off-heap caching
Date Thu, 31 Mar 2016 21:39:27 GMT
Github user andrewor14 commented on a diff in the pull request:
    --- Diff: common/unsafe/src/main/java/org/apache/spark/unsafe/ ---
    @@ -144,6 +147,34 @@ public static long reallocateMemory(long address, long oldSize, long
newSize) {
         return newMemory;
    +  /**
    +   * Uses internal JDK APIs to allocate a DirectByteBuffer while ignoring the JVM's
    +   * MaxDirectMemorySize limit.
    --- End diff --
    can you expand on this briefly to explain why we do this ourselves instead of calling
`DirectByteBuffer` directly? It's cause the limit is too low (512m) by default right?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message