CPU Cluster Scheduler Continues To Be Worked On For Linux With Promising Results

Written by Michael Larabel in Hardware on 21 April 2021 at 05:55 AM EDT. 4 Comments
HARDWARE
HiSilicon engineers continue working on a cluster scheduler that could help the performance of certain x86 and ARM platforms on Linux.

HiSilicon has been pursuing this "cluster scheduler" for the Linux kernel in order to enhance the performance of the Kunpeng 920 ARM server chip that has six or eight clusters per NUMA node and each cluster being comprised of four CPU cores with shared L3 cache access among the clusters. But there is also the possibility of this scheduler helping some x86 hardware too, like Intel's Jacobsville is noted for its clusters of Atom cores.

The HiSilicon Linux kernel work now up to its sixth round of patches is for exposing this topology and having a CPU scheduler to properly/efficiently deal with the layout. The goal with the scheduler is for spreading unrelated tasks among the multiple clusters to reduce contention and then to also gather related tasks within a cluster for improving cache affinity.

With benchmarks shown by HiSilicon engineers, the scheduler patches tested on the Kunpeng 920 server SoC were able to see the Stream memory benchmark performance improve by more than 20% compared to the stock kernel. The patches under the "request for comments" flag at this stage would expose the cluster scheduler functionality with the SCHED_CLUSTER Kconfig build switch.

While HiSilicon's primary focus is obviously on the ARM support, there is a patch tacked onto the series from an Intel Linux engineer for handling this SCHED_CLUSTER functionality for x86 too. These cluster optimizations will likely have more importance moving forward with new hardware platforms.

Those wanting to dig into this current work from HiSilicon on the Linux cluster scheduler can find the patches on the kernel mailing list.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week