TGViewer
Время Валеры Время Валеры @cryptovalerii · 30.8K subscribers
Post #986 20.9K
Прочитал замечательную статью: The Linux Scheduler: a Decade of Wasted Cores

“And you have to realize that there are not very many things that have aged as well as the scheduler. Which is just another proof that scheduling is easy.”
Linus Torvalds, 2001

15 + лет спустя
As a central part of resource management, the OS thread scheduler must maintain the following, simple, invariant: make sure that ready threads are scheduled on available cores. As simple as it may seem, we found that this invariant is often broken in Linux. Cores may stay idle for seconds while ready threads are waiting in runqueues. In our experiments, these performance bugs caused many-fold performance degradation for synchronization-heavy scientific applications, 13% higher latency for kernel make, and a 14-23% decrease in TPC-H throughput for a widely used commercial database


и
The Group Imbalance bug
The bug. We encountered this bug on a multi-user machine which we used to perform kernel compilation and data analsis using the R machine learning package. We suspected that this system, a 64-core, eight-node NUMA server, did not use all available cores for highly-threaded computations, instead crowding all threads on a few nodes. We illustrate this bug with the output from our visual tool


Стоит заметить, что их фикс у меня вызывает много сомнений, замена среднего на минимум, для оценки загрузки - многое может пойти не так. Да и в целом, я бы даже не назвал это багами, оптимизировали под свою нагрузку - честь им и хвала, но это не значит что в среднем стало лучше, а не хуже.

Самый важный вывод, что понимая систему достаточно глубоко, можно ее взять и допилить очень значимо под себя
  • 👍 33
  • 💯 27
  • ❤ 12
  • 🔥 5
  • 🤓 5
  • 🎉 2
More from @cryptovalerii
  1. Sep 19, 2026На днях начал делать ревью А/Б-платформы от Три сигма, позавчера отправил им 9 уточняющих…
  2. Sep 8, 2026Мы давно про это знали: Design Docs Are All You Need: An AI-native Machine-Learning Perfor…
  3. Aug 26, 2026Прочитал отличную заметку Shopify про gisting — сжатие системного промпта в обучаемые токе…
  4. Aug 24, 2026На основе пятничного поста про промт: Сожми документ максимально, не потеряв никакой инфор…
  5. Aug 23, 2026☁☁☁☁☁☁☁ 24 сентября Yandex Cloud проведёт флагманскую технологическую конференцию — Yandex…
  6. Aug 21, 2026После ревью документов сегодня (один из дизайнов был на 51 страници!) даю совет всем, кто…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →