News: 0001601138

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Google Taps More Performance Out Of AMD Zen CPUs With BPF-CCX Scheduling

([Google] 114 Minutes Ago BPF CCX For AMD Chiplet CPUs)


For helping with thread placement on modern AMD Zen systems with multiple CPU core complexes, Google has been developing "BPF CCX" that leverages the Linux kernel's eBPF capabilities paired with a user-space agent for fine-grained thread control. Google has found very positive performance results out of their use of this alternative means of high performance scheduling for achieving even greater performance on AMD processors under Linux.

Google's BPF CCX scheduler relies on a per-CCX runqueue with an asynchronous bin-packing algorithm to dynamically assign and manage the soft-affinity of thread groups. Google's focus was on ensuring better virtual machine (VM) scheduling but this scheduling work can apply to other workloads too. For the purposes of Google's data center their focus was obviously on AMD EPYC server processors but this can apply to AMD Ryzen CPUs for better scheduling between core complexes.

Google engineers did evaluate the ongoing upstreaming work led by Intel around [1]Cache Aware Scheduling that also helps with AMD CPUs too but they felt that Cache Aware Scheduling needs additional "semi-expensive computation" in balancing and other design differences.

This work was presented earlier in the month in Tokyo at the Linux Plumbers Conference 2025. The benchmarks they shared of their BPF CCX work compared to the stock Linux [2]EEVDF scheduler was very positive:

It will be very interesting to see where this work leads. Those wishing to learn more about this ongoing effort can find the LPC 2025 presentation embedded below along with the [3]slide deck .



[1] https://www.phoronix.com/search/Cache%20Aware%20Scheduling

[2] https://www.phoronix.com/search/EEVDF

[3] https://lpc.events/event/19/contributions/2034/attachments/1883/4108/lpc_chiplet_aware_sched_policy.pdf



How beautiful, how entrancing you are, my loved one, daughter of delights!
You are stately as a palm-tree, and your breasts are the clusters of dates.
I said, "I will climb up into the palm to grasp its fronds." May I find your
breast like clusters of grapes on the vine, the scent of your breath like
apricots, and your whispers like spiced wine flowing smoothly to welcome my
caresses, gliding down through lips and teeth.
[Song of Solomon 7:6-9 (NEB)]