logoalt Hacker News

Apple XNU: Clutch Scheduler

145 pointsby toshyesterday at 8:38 PM26 commentsview on HN

Comments

truenoyesterday at 10:05 PM

interesting. id love an eclecticlight breakdown of this. they're one of the few if only that write anything worth reading on apple hardware, i once found a QOS/scheduler insight through those guys when I couldn't get my c/cpp project pinned to the cores I wanted on m-series. https://eclecticlight.co/m1-macs/

show 1 reply
poigetoday at 5:50 AM

Darwin had bunch of schedulers except this one: dualq, multiq, etc

In fact here's the one used in Sonoma: sysctl kern.sched -> edge

which seems to be an extension over "clutch":

https://github.com/apple-oss-distributions/xnu/blob/main/osf...

"… Single-cluster, symmetric (SMP) systems can run with just the Clutch policy, but multi-cluster, asymmetric (AMP) systems must further enable the Edge policy extension to Clutch in order to manage scheduling across the multiple CPU clusters. …"

cadamsdotcomyesterday at 10:20 PM

> The XNU kernel runs on a variety of platforms

This is fascinating, would love to know where it’s used! (Besides macOS)

show 4 replies
almoniyesterday at 10:46 PM

Does this contribute to macOS's suitability for DAW applications or is that more the baked in low-latency audio drivers?

show 2 replies
MarginalGainztoday at 11:18 AM

[dead]