Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
zhztheplayer committed Aug 23, 2024
1 parent 6de2d4b commit 821a514
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ abstract class VeloxTPCHTableSupport extends VeloxWholeStageTransformerSuite {
.set("spark.memory.offHeap.size", "2g")
.set("spark.unsafe.exceptionOnMemoryLeak", "true")
.set("spark.sql.autoBroadcastJoinThreshold", "-1")
.set("spark.gluten.sql.columnar.backend.velox.glogSeverityLevel", "0")
// TODO Should enable this after fix the issue of native plan detail occasional disappearance
// .set("spark.gluten.sql.injectNativePlanStringToExplain", "true")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private[gluten] class GlutenDriverPlugin extends DriverPlugin with Logging {
1024 * 1024 * 1024
}

val overheadSize : Long = SparkResourceUtil.getMemoryOverheadSize(conf)
val overheadSize: Long = SparkResourceUtil.getMemoryOverheadSize(conf)
conf.set(GlutenConfig.GLUTEN_OVERHEAD_SIZE_IN_BYTES_KEY, overheadSize.toString)

// If dynamic off-heap sizing is enabled, the off-heap size is calculated based on the on-heap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ object SparkResourceUtil extends Logging {
val overheadMib = conf.get(EXECUTOR_MEMORY_OVERHEAD).getOrElse {
val executorMemMib = conf.get(EXECUTOR_MEMORY)
val factor =
conf.getDouble("spark.executor.memoryOverheadFactor", 0.1D)
conf.getDouble("spark.executor.memoryOverheadFactor", 0.1d)
val minMib = conf.getLong("spark.executor.minMemoryOverhead", 384L)
(executorMemMib * factor).toLong max minMib
(executorMemMib * factor).toLong.max(minMib)
}
ByteUnit.MiB.toBytes(overheadMib)
}
Expand Down

0 comments on commit 821a514

Please sign in to comment.