Github user Geek-He commented on a diff in the pull request:
https://github.com/apache/spark/pull/19025#discussion_r134664599
--- Diff: core/src/main/java/org/apache/spark/memory/TaskMemoryManager.java
---
@@ -74,7 +74,7 @@
* Maximum supported data page size (in bytes). In principle, the
maximum addressable page size is
* (1L << OFFSET_BITS) bytes, which is 2+ petabytes. However, the
on-heap allocator's
* maximum page size is limited by the maximum amount of data that can
be stored in a long[]
- * array, which is (2^32 - 1) * 8 bytes (or 16 gigabytes). Therefore, we
cap this at 16 gigabytes.
+ * array, which is (2^31 - 1) * 8 bytes (or 16 gigabytes). Therefore, we
cap this at 16 gigabytes.
--- End diff --
(2^31-1)*8 = 17179869176 Bytes = 17179869176/1024/1024/1024 â 16GB, "or
about 16GB" should not wrong.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]