🌘 調度器 | 實習生內幕系列
➤ 解構 Go 運行時:從 GMP 模型理解任務調度機制
https://internals-for-interns.com/posts/go-runtime-scheduler/
本文深入探討 Go 語言運行時的核心——「調度器」。作者詳細解析了著名的 GMP 模型,解釋 Go 如何透過將輕量級的 Goroutine(G)映射到作業系統執行緒(M),並利用處理器上下文(P)作為中介,實現高效的並發處理。這種設計巧妙地解決了系統呼叫導致的阻塞問題,並透過全局與本地緩存機制,最小化了鎖的競爭,確保了程式在有限 CPU 資源下能流暢運行數百萬個 Goroutine。
+ 這是我讀過對 GMP 模型解釋最清晰的文章之一。以前總是不太理解為什麼需要 P,讀完才明白這是為了讓調度資源與系統執行緒解耦。
+ 對於剛開始接觸 Go 併發編程的人來說,這簡直是必讀指南。特別是關於 g0 棧的管理以及 P 的角色說明,非常有技術深度。
#Go #Runtime #Scheduler #Concurrency
The Scheduler | Internals for Interns

In the previous article we explored how Go’s memory allocator manages heap memory — grabbing large arenas from the OS, dividing them into spans and size classes, and using a three-level hierarchy (mcache, mcentral, mheap) to make most allocations lock-free. A key detail was that each P (processor) gets its own memory cache. But we never really explained what a P is, or how the runtime decides which goroutine runs on which thread. That’s the scheduler’s job, and that’s what we’re exploring today.

Internals for Interns

⚙️ Need scheduling logic beyond the default?

Build & deploy a custom Kubernetes scheduler to handle special workloads, hardware affinities, or cost-optimized placement.

#Kubernetes #Scheduler #Advanced #CloudNative #DevOps
🔗 https://devopstales.github.io/kubernetes/custom-kube-scheduler/

Durch einen Troet von @diekehrseite, wo eine App gesucht wurde die Beiträge planen kann, bin ich auf #fediplan gestoßen. Die Planung läuft plattformunabhängig im Browser. Den Dienst kann man auch selber hosten, was für mich wieder interessant war.

Nun habe ich das Ganze mal eingerichtet und teste mal ein wenig ob es funktioniert. Dies ist also der erste geplante Beitrag von mir über fediplan, welches nun auf meinem Server läuft.

#selfhosting #planen #scheduler #mastodon #fediverse

[Перевод] Планировщик Go

Эта статья посвящена языку программирования Go 1.24 , работающему на Linux на архитектуре ARM . Она может не охватывать специфические для других операционных систем (ОС) или аппаратных архитектур детали. В этой статье подробно рассматриваются следующие вопросы: Компиляция и среда выполнения Go Примитивный планировщик Улучшение планировщика Модель GMP Начальная загрузка программы Создание горутины Цикл планирования Поиск готовой к выполнения горутины Вытеснение горутин Обработка системных вызовов Сетевой и файловый ввод-вывод Работа netpoll Сборщик мусора Общие функции API среды выполнения Go

https://habr.com/ru/companies/timeweb/articles/989782/

#go #golang #scheduler #scheduling #schedule_loop #планировщик #планирование #цикл_планирования #timeweb_статьи_перевод #goroutine

Планировщик Go

Эта статья посвящена языку программирования Go 1.24 , работающему на Linux на архитектуре ARM . Она может не охватывать специфические для других операционных систем (ОС) или аппаратных архитектур...

Хабр
Re: Selecting the scheduler from boot menu

>> "Why let mere mortals decide #CPU priorities when the cosmos can guide us?"

> A fully functional sched_ext #scheduler that makes real CPU #scheduling decisions based on real-time planetary positions, #zodiac signs, and astrological principles. This actually loads into the #Linux kernel and schedules your system tasks. Because if the universe can influence our lives, why not our CPU scheduling too?

https://github.com/zampierilucas/scx_horoscope

#admin #devops #rust #rust4linux

GitHub - zampierilucas/scx_horoscope: Astrological CPU Scheduler

Astrological CPU Scheduler. Contribute to zampierilucas/scx_horoscope development by creating an account on GitHub.

GitHub
Dev creates astrology-powered CPU scheduler for Linux, makes decisions based on planetary positions and zodiac signs — sched_ext framework informed by lunar phases, cosmic weather reports, and dynamic time slicing

‘Why let mere mortals decide CPU priorities when the cosmos can guide us?’ asks the developer.

Tom's Hardware

🔧 Tự làm công cụ quảng bá dự án phụ, giờ thành dự án chính: Cue – lịch trình đăng bài tự động cho solo entrepreneurs. Hỗ trợ 8 nền tảng (Twitter, Bluesky, Threads, Mastodon, LinkedIn, Instagram, Facebook…) với tính năng AI trợ viết, tạo hình ảnh, API REST, tích hợp n8n & MCP. Miễn phí khai trương, ưu đãi 50% 3 tháng đầu cho người dùng sớm. #Tool #SideProject #SocialMedia #Scheduler #AI #côngcụ #dựánđộichủ #lênlịch

https://www.reddit.com/r/SideProject/comments/1qklxft/built_a_tool_to_promote_my

Bạn cần giờ họp tối ưu cho nhóm? Ứng dụng Python GUI “Group Availability Planner” cho phép gửi file .tsv lịch cá nhân, tự động tính thời gian chung, chạy offline, miễn phí cho Windows & Mac. Không lưu trữ đám mây, chỉ chia sẻ file trong Teams, WhatsApp. #Python #Scheduler #Meeting #CôngCụ #LậpLịch #MiễnPhí

https://www.reddit.com/r/SideProject/comments/1qgmk09/group_availability_planner/