[Paper Review] Performance analysis of a 240 thread tournament level MCTS Go program on the Intel Xeon Phi
This paper presents the first empirical performance analysis of a tournament-level Monte Carlo Tree Search (MCTS) Go program, Fuego, on the Intel Xeon Phi co-processor, scaling up to 240 threads. It reveals strong scaling up to 32 threads—confirming prior simulation results—but observes significant performance degradation beyond 32 threads due to architectural complexities, scheduling sensitivity, and memory access patterns, highlighting that high performance on Xeon Phi requires deep algorithmic and architectural understanding beyond simple porting.
In 2013 Intel introduced the Xeon Phi, a new parallel co-processor board. The Xeon Phi is a cache-coherent many-core shared memory architecture claiming CPU-like versatility, programmability, high performance, and power efficiency. The first published micro-benchmark studies indicate that many of Intel's claims appear to be true. The current paper is the first study on the Phi of a complex artificial intelligence application. It contains an open source MCTS application for playing tournament quality Go (an oriental board game). We report the first speedup figures for up to 240 parallel threads on a real machine, allowing a direct comparison to previous simulation studies. After a substantial amount of work, we observed that performance scales well up to 32 threads, largely confirming previous simulation results of this Go program, although the performance surprisingly deteriorates between 32 and 240 threads. Furthermore, we report (1) unexpected performance anomalies between the Xeon Phi and Xeon CPU for small problem sizes and small numbers of threads, and (2) that performance is sensitive to scheduling choices. Achieving good performance on the Xeon Phi for complex programs is not straightforward; it requires a deep understanding of (1) search patterns, (2) of scheduling, and (3) of the architecture and its many cores and caches. In practice, the Xeon Phi is less straightforward to program for than originally envisioned by Intel.
Motivation & Objective
- To evaluate the real-world performance of a complex AI application—tournament-level MCTS Go—on the Intel Xeon Phi co-processor.
- To investigate how scaling from 1 to 240 threads affects performance in a real shared-memory many-core environment.
- To identify performance bottlenecks such as scheduling choices, memory access patterns, and cache behavior in a production-grade MCTS implementation.
- To compare real hardware results with prior simulation studies and assess the fidelity of simulation-based performance predictions.
Proposed method
- The study uses Fuego, an open-source MCTS Go program, as the test application for performance evaluation on a physical Xeon Phi 7120P co-processor.
- Experiments were conducted using self-play on a 9×9 Go board with controlled time limits (1s and 10s per move) to isolate performance effects from problem size.
- Thread affinity was manipulated via the KMP_AFFINITY environment variable to evaluate the impact of core binding on performance.
- Performance was measured in games per second and win-rate across different thread counts (1–240) and scheduling policies (balanced, compact, etc.).
- The authors compared results on Xeon Phi with those on a conventional Xeon CPU to isolate architectural differences.
- A detailed analysis of search tree size and simulation throughput was performed to correlate performance with computational workload.
Experimental results
Research questions
- RQ1How does the performance of a real MCTS Go program scale on the Xeon Phi when using up to 240 threads, and how does it compare to simulation results?
- RQ2Why does performance on the Xeon Phi exhibit a non-monotonic, hump-shaped trend at low thread counts (1–32), contrary to the expected smooth decline seen on the Xeon CPU?
- RQ3To what extent do scheduling policies and thread affinity affect performance on the Xeon Phi for complex, memory-intensive AI workloads?
- RQ4What role do memory access patterns, cache hierarchy, and interconnect latency play in limiting scalability beyond 32 threads on the Xeon Phi?
- RQ5Can the performance degradation observed at high thread counts (32–240) be mitigated through problem size tuning or architectural awareness?
Key findings
- Performance scales well up to 32 threads on the Xeon Phi, closely matching the results of a prior simulation study, confirming the validity of simulation-based performance modeling for MCTS at moderate thread counts.
- Beyond 32 threads, performance deteriorates significantly, with a 240-thread configuration achieving only 30–40% of the win-rate of the 8-thread configuration, indicating strong scalability limitations.
- The Xeon Phi exhibits unexpected performance anomalies at low thread counts (1–8), where performance is worse than on the Xeon CPU despite lower clock speed, attributed to poor cache utilization and low integer performance.
- Performance is highly sensitive to scheduling policies: using compact thread affinity improves performance over balanced affinity, especially at low thread counts.
- Increasing the time limit per move from 1 to 10 seconds on the Xeon Phi resolves the initial performance hump, aligning results more closely with the Xeon CPU and revealing that insufficient simulation work per move causes underutilization.
- The study concludes that achieving good performance on the Xeon Phi requires deep architectural awareness—especially of cache behavior, memory access patterns, and scheduling—beyond what Intel’s design goals suggest.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.