Skip to content

Commit

Permalink
[SPARK-21225][CORE] decrease the Mem using for variable 'tasks' in fu…
Browse files Browse the repository at this point in the history
…nction resourceOffers
  • Loading branch information
杨治国10192065 committed Jun 28, 2017
1 parent 3cb3ccc commit b745dab
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -345,7 +345,7 @@ private[spark] class TaskSchedulerImpl(

val shuffledOffers = shuffleOffers(filteredOffers)
// Build a list of tasks to assign to each worker.
val tasks = shuffledOffers.map(o => new ArrayBuffer[TaskDescription](o.cores))
val tasks = shuffledOffers.map(o => new ArrayBuffer[TaskDescription](o.cores / CPUS_PER_TASK))
val availableCpus = shuffledOffers.map(o => o.cores).toArray
val sortedTaskSets = rootPool.getSortedTaskSetQueue
for (taskSet <- sortedTaskSets) {
Expand Down

0 comments on commit b745dab

Please sign in to comment.