|
|
|
|
|
by dodobirdlord
1718 days ago
|
|
For background context, a reminder that control groups were originally developed in Google’s kernel fork, and later mainlined. As for the scheduler stuff, the main change is a SwitchTo set of syscalls that allow threads to bypass the kernel’s scheduler and just continue execution as a different thread.
https://lkml.org/lkml/2020/7/22/1202 |
|
https://www.youtube.com/watch?v=KXuZi9aeGTw They explain it around 15:01 - google added it's own syscall switchto_thread - that puts the current thread to sleep and is switching to the argument thread id. (and some other calls too). That one helps with cutting down latency in inter thread calls for m:n threading. The real effort is to make latency for individual application requests predictable, while keeping it low.