{"id":523080,"date":"2026-06-07T12:22:10","date_gmt":"2026-06-07T12:22:10","guid":{"rendered":"https:\/\/www.europesays.com\/ie\/523080\/"},"modified":"2026-06-07T12:22:10","modified_gmt":"2026-06-07T12:22:10","slug":"flatten-the-pick-linux-patches-progress-for-better-cgroup-scheduling-while-linux-gaming","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/ie\/523080\/","title":{"rendered":"&#8220;Flatten The Pick&#8221; Linux Patches Progress For Better cgroup Scheduling While Linux Gaming"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" alt=\"LINUX KERNEL\" src=\"https:\/\/www.phoronix.com\/assets\/categories\/linuxkernel.webp\" width=\"100\" height=\"100\"\/><br \/>\nA month ago I wrote about <a href=\"https:\/\/www.phoronix.com\/news\/Linux-Flatten-The-Pick\" rel=\"nofollow noopener\" target=\"_blank\">Linux scheduler work to help boost gaming performance on old &#8220;potato&#8221; hardware<\/a> with Intel engineer Peter Zijlstra noting that Linux cgroup scheduling has continued to be &#8220;a pain in the arse.&#8221; This work continues advancing with a third iteration of these &#8220;flatten the pick&#8221; patches being posted.<\/p>\n<p>On Friday, which coincidentally was <a href=\"https:\/\/www.phoronix.com\/news\/Phoronix-Turns-22\" rel=\"nofollow noopener\" target=\"_blank\">the 22nd birthday of Phoronix<\/a>, a new version of these scheduling patches were posted to the Linux kernel mailing list that can make a noticeable impact on cgroup scheduling performance during Linux gaming.&#13;<\/p>\n<p>The patches add a &#8220;cgroup_mode&#8221; knob and implements new policies for addressing the hierarchy level weight mismatch. ANd it builds upon that base for creating a flat\/single run-queue scheduler where the cgroup hierarchy is expressed through dynamic weight management.&#13;<\/p>\n<p>With Friday&#8217;s updated patches, there are a number of fixes in place, the code has been re-based against the latest upstream state, cgroup_mode tasks is introduced, and the default cgroup_mode is changed. Peter Zijlstra&#8217;s latest performance numbers for running a game on old Intel Sandy Bridge era hardware with a Radeon RX 580 Polaris graphics card while loading up with additional scheduling tasks:&#13;<\/p>\n<p align=\"center\"><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ie\/wp-content\/uploads\/2026\/06\/1780834930_280_image.webp\" alt=\"Flatten The Pick benchmark\"\/><\/p>\n<p>Peter observed a huge improvement to the minimum frame rate and a healthy bump to the average FPS. The average and maximum frame times were also much lower.<\/p>\n<p>The <a href=\"https:\/\/lore.kernel.org\/lkml\/20260605105513.354837583@infradead.org\/T\/#m87e2c15e1b4fb678d08e202bd43241a62b81d00c\" rel=\"nofollow noopener\" target=\"_blank\">v3 patches<\/a> are out for review on the Linux kernel mailing list to &#8220;flatten the pick&#8221; and will hopefully make it to the mainline kernel in the not too distant future.<\/p>\n","protected":false},"excerpt":{"rendered":"A month ago I wrote about Linux scheduler work to help boost gaming performance on old &#8220;potato&#8221; hardware&hellip;\n","protected":false},"author":2,"featured_media":523081,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_share_on_mastodon":"0"},"categories":[74],"tags":[36622,18,19,17,36621,36619,36618,36625,36623,36620,36624,36617,36628,82,36626,36627],"class_list":["post-523080","post","type-post","status-publish","format-standard","has-post-thumbnail","category-technology","tag-desktop-linux","tag-eire","tag-ie","tag-ireland","tag-linux-benchmarking","tag-linux-hardware-benchmarks","tag-linux-hardware-reviews","tag-linux-how-to","tag-linux-performance","tag-linux-server-benchmarks","tag-open-source-graphics","tag-phoronix","tag-phoronix-test-suite","tag-technology","tag-ubuntu-benchmarks","tag-ubuntu-hardware"],"share_on_mastodon":{"url":"https:\/\/pubeurope.com\/@ie\/116708805862349851","error":""},"_links":{"self":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/posts\/523080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/comments?post=523080"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/posts\/523080\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/media\/523081"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/media?parent=523080"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/categories?post=523080"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/tags?post=523080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}