Skip to content

Comment on Introduction to Golang Preemption Mechanismsparent

Comments

> On servers with 100+ cores I have seen scheduling time take over 10% of the program runtime.
On Linux, go uses sched_getaffinity …

Since cgroups are a Linux-only feature, OP must be running Linux. I wonder if his experience pre-dates Go’s usage of sched_getaffinity.

edit: I realised that he references cgroups so must be on Linux.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.