News for hackers. Stuff that matters.
Re:Why E cores make Apple silicon fast by ninkendo on Sunday February 08, 2026 @03:24PM (#46938156)
One thing that distinguishes macOS here is that the mach kernel has the concept of “vouchers” which helps the scheduler understand logical calls across IPC boundaries. So if you have a high-priority (UserInitiated) process, and it makes an IPC call out to a daemon that is usually a low-priority background daemon, the high-priority process passes a voucher to the low-priority one, which allows the daemon’s ipc handling thread to run high-priority (and thus access P-cores) so long as it’s holding the voucher.

This lets Apple architect things as small, single-responsibility processes, but make their priority dynamic, such that they’re usually low-priority unless a foreground user process is blocked on their work. I’m not sure the Linux kernel has this.

Re:Why E cores make Apple silicon fast by spockz on Sunday February 08, 2026 @05:40PM (#46939315)
That it actually quite simple and nifty. It reminds me of the 4 priorities RPC requests can have within the Google stack. 0 being if this fails it will result in a big fat error for the user to 3, we don’t care if this fails because we will run the analysis job again in a month or so.

IIRC in macOS you do need to pass the voucher, it isn’t inherited automatically. Linux has no knowledge of it, so first it has to be introduced as a concept and then apps have to start using it.

Re:Why E cores make Apple silicon fast by saagarjha on Monday February 09, 2026 @05:43AM (#46943790)
There is automatic priority donation across a handful of APIs
Re:Why E cores make Apple silicon fast by surajrmal on Monday February 09, 2026 @07:18AM (#46944437)
Being explicit is a good thing. Especially for async threads they may handle work for many different clients with different priorities and may delegate work to other processes.
Re:Why E cores make Apple silicon fast by mgerdts on Sunday February 08, 2026 @09:58PM (#46941084)
This sounds like Solaris doors. The remainder of the time slice of the door client is given to the door server.
Re:Why E cores make Apple silicon fast by surajrmal on Monday February 09, 2026 @07:14AM (#46944415)
This is also how binder works in android.
Re:Why E cores make Apple silicon fast by astrange on Monday February 09, 2026 @05:19PM (#46952340)
Vouchers are related to turnstiles, which are from Solaris.