0c8918b5e6ff63857f89c76468a5ec2d2aa005ae,distributed/deploy/adaptive.py,Adaptive,needs_cpu,#Adaptive#,131
Before Change
than ``startup_cost``.
total_occupancy = self.scheduler.total_occupancy
total_cores = sum([ws.ncores for ws in self.scheduler.workers.values()])
if total_occupancy / (total_cores + 1e-9) > self.startup_cost * 2:
logger.info(
"CPU limit exceeded [%d occupancy / %d cores]",
After Change
total_cores,
)
tasks_processing = 0
for w in self.scheduler.workers.values():
tasks_processing += len(w.processing)
if tasks_processing > total_cores:
logger.info(
"pending tasks exceed number of cores " "[%d tasks / %d cores]",
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: dask/distributed
Commit Name: 0c8918b5e6ff63857f89c76468a5ec2d2aa005ae
Time: 2019-04-24
Author: delgadom@users.noreply.github.com
File Name: distributed/deploy/adaptive.py
Class Name: Adaptive
Method Name: needs_cpu
Project Name: RaRe-Technologies/gensim
Commit Name: 8e70d6ea0e250736a6cb298eaec6a1dc572fd467
Time: 2010-02-21
Author: piskvorky@92d0401f-a546-4972-9173-107b360ed7e5
File Name: matutils.py
Class Name: MmWriter
Method Name: writeTfidf
Project Name: RaRe-Technologies/gensim
Commit Name: 67fb64104da2ac16850d6a0d3cc2098086b47bbb
Time: 2010-02-21
Author: radimrehurek@seznam.cz
File Name: matutils.py
Class Name: MmWriter
Method Name: writeTfidf