{"id":1213277,"date":"2023-12-17T15:15:00","date_gmt":"2023-12-17T20:15:00","guid":{"rendered":"https:\/\/www.prime-wow.com\/?p=1213277"},"modified":"2023-12-17T15:15:00","modified_gmt":"2023-12-17T20:15:00","slug":"min-sched_ext-a-bpf-extensible-scheduler-class-part-1","status":"publish","type":"post","link":"https:\/\/www.prime-wow.com\/?p=1213277","title":{"rendered":"Min: sched_ext: a BPF-extensible scheduler class (Part 1)"},"content":{"rendered":"<p>Changwoo Min <a href=\"https:\/\/blogs.igalia.com\/changwoo\/sched-ext-a-bpf-extensible-scheduler-class-part-1\/\">provides<br \/>\nan introduction to the sched_ext scheduling class<\/a>:\n<\/p>\n<\/p>\n<blockquote class=\"bq\"><p>\n\tSched_ext was proposed to address the problems mentioned above. It<br \/>\n\tallows users to write a custom scheduling policy using BPF without<br \/>\n\tmodifying the kernel code. You don&#8217;t need to struggle to maintain<br \/>\n\tthe out-of-tree custom scheduler. In addition, BPF provides a safe<br \/>\n\tkernel programming environment. In particular, the BPF verifier<br \/>\n\tensures that your custom scheduler has neither a memory bug nor an<br \/>\n\tinfinite loop. Also, if your custom scheduler misbehaves &#8212; like<br \/>\n\tfailing to schedule a task for too long (say 30 seconds), the<br \/>\n\tkernel portion of sched_ext kills your custom scheduler and falls<br \/>\n\tback to the default kernel scheduler (CFS or EEVDF). Last but not<br \/>\n\tleast, you can update the BPF scheduler without reinstalling the<br \/>\n\tkernel and rebooting a server.\n<\/p><\/blockquote>\n<p>\n(LWN <a href=\"https:\/\/lwn.net\/Articles\/922405\/\">looked at sched_ext<\/a> in February 2023).&#013;<br \/>\n&#013;<br \/>\nSource: LWN.net &#8211; <a href=\"https:\/\/lwn.net\/Articles\/955481\/\" target=\"_blank\" rel=\"noopener\">Min: sched_ext: a BPF-extensible scheduler class (Part 1)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Changwoo Min provides an introduction to the sched_ext scheduling class: Sched_ext was proposed to address the problems mentioned above. It allows users to write a custom scheduling policy using BPF without modifying the kernel code. You don&#8217;t need to struggle &hellip; <a href=\"https:\/\/www.prime-wow.com\/?p=1213277\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[72],"tags":[75],"class_list":["post-1213277","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/1213277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1213277"}],"version-history":[{"count":0,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/1213277\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1213277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1213277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1213277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}