spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yiskylee <>
Subject SparkPi running slower with more cores on each worker
Date Tue, 01 Dec 2015 04:01:45 GMT
Hi, I was running the SparkPi example code and studying their performance
difference using different number of cores per worker. I change the number
of cores by using -c CORES on the worker machine for
distributed computation. I also use spark-submit --master local[CORES] for
the same effect on local machine. The following table shows the preliminary
timings (in seconds) of the SparkPi running locally and on multiple nodes
(one worker per node). 


The result is really interesting as it shows that performance is better if
we have more workers, but it gets worse if we are using more cores. This
confuses me and the only answer I can think of right now is the lack of
multi-threading support for reudce() function used in the code.
Any input is appreciated.

View this message in context:
Sent from the Apache Spark User List mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message