yes i know. but in ApplicationInfo.scala the coresLeft value is same to the value of  desc.maxCores. in schedule leftCoreToAssign actually is equto to maxCorePerExecutor. so i think there are not right because leftCoreToAssign  is total cores of all executors and maxCorePerExecutor is cores of one executor. i donot know whether you understand it.