spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wenchen Fan (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-21225) decrease the Mem using for variable 'tasks' in function resourceOffers
Date Thu, 29 Jun 2017 12:57:01 GMT

     [ https://issues.apache.org/jira/browse/SPARK-21225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wenchen Fan reassigned SPARK-21225:
-----------------------------------

    Assignee: yangZhiguo

> decrease the Mem using for variable 'tasks' in function resourceOffers
> ----------------------------------------------------------------------
>
>                 Key: SPARK-21225
>                 URL: https://issues.apache.org/jira/browse/SPARK-21225
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.1.0, 2.1.1
>            Reporter: yangZhiguo
>            Assignee: yangZhiguo
>            Priority: Minor
>             Fix For: 2.3.0
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
>     In the function 'resourceOffers', It declare a variable 'tasks' for storage the tasks
which have  allocated a executor. It declared like this:
> *{color:#d04437}val tasks = shuffledOffers.map(o => new ArrayBuffer[TaskDescription](o.cores)){color}*
> But, I think this code only conside a situation for that one task per core. If the user
config the "spark.task.cpus" as 2 or 3, It really don't need so much space. I think It can
motify as follow:
> {color:#14892c}*val tasks = shuffledOffers.map(o => new ArrayBuffer[TaskDescription](Math.ceil(o.cores*1.0/CPUS_PER_TASK).toInt))*{color}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message