Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/1124#discussion_r13955220
--- Diff: core/src/main/scala/org/apache/spark/executor/Executor.scala ---
@@ -212,7 +208,12 @@ private[spark] class Executor(
val serializedDirectResult = ser.serialize(directResult)
logInfo("Serialized size of result for " + taskId + " is " +
serializedDirectResult.limit)
val serializedResult = {
- if (serializedDirectResult.limit >= akkaFrameSize - 1024) {
+ // TODO: [SPARK-1112] We use the min frame size to determine
whether to use Akka to send
+ // the task result or block manager. Since this is via the
backend, whose actor system is
+ // initialized before receiving the Spark conf, and hence it
does not know
+ // `spark.akka.frameSize`. A temporary solution is using the min
frame size.
+ // [SPARK-2156] We subtract 200K to leave some space for other
data in the Akka message.
+ if (serializedDirectResult.limit >= AkkaUtils.minFrameSizeBytes
- 200 * 1024) {
--- End diff --
We computed the difference between the size of the akka message and the
size of serialized task result (~10M). The difference is smaller than 60K. I
set 200K to be safe. Could you point me to the places where we use 1024?
---
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.
---