{"id":148,"date":"2016-04-22T22:11:43","date_gmt":"2016-04-22T22:11:43","guid":{"rendered":"http:\/\/info.ffteixeira.net\/2016\/04\/22\/budget-fair-queueing-bfq-storage-i-o-scheduler-opensuse\/"},"modified":"2016-04-22T22:11:43","modified_gmt":"2016-04-22T22:11:43","slug":"budget-fair-queueing-bfq-storage-i-o-scheduler-opensuse","status":"publish","type":"post","link":"https:\/\/blog.ffteixeira.net\/?p=148","title":{"rendered":"Budget Fair Queueing (BFQ) Storage-I\/O Scheduler Opensuse"},"content":{"rendered":"<p>In GNU\/Linux, currently there are three main disk I\/O schedulers available. They are called &lsquo;CFQ&rsquo;, &lsquo;NOOP&rsquo; and &lsquo;Deadline&rsquo;<\/p>\n<p>And came upon another disk I\/O scheduler for GNU\/Linux called &lsquo;BFQ&rsquo; (it&rsquo;s actually based on the code of &lsquo;CFQ&rsquo;).<\/p>\n<p>The KMP is found in OBS home:tiwai:bfq\/bfq repo. It&#039;s currently built for openSUSE-FACTORY, openSUSE-13.1, SLE12, Leap and Kernel:HEAD kernels.<\/p>\n<p>http:\/\/download.opensuse.org\/repositories\/home:\/tiwai:\/bfq\/openSUSE-Leap\/<\/p>\n<p>#wget -c http:\/\/download.opensuse.org\/repositories\/home:\/tiwai:\/bfq\/openSUSE-Leap\/home:tiwai:bfq.repo to \/etc\/zypp\/repos.d<\/p>\n<p>Install the KMP<br \/>After installing the KMP, load bfq-iosched kernel module, and change the scheduler like:<br \/># echo bfq &gt; \/sys\/block\/sda\/queue\/scheduler<\/p>\n<p>If you want to make BFQ as default from the beginning, do like below:<\/p>\n<p>&#8211; Put &quot;bfq-iosched&quot; in $INITRD_MODULES in \/etc\/sysconfig\/kernel<br \/>&#8211; Run \/sbin\/mkinitrd once to rebuild initrd<br \/>&#8211; Add a boot parameter &quot;elevator=bfq&quot;<\/p>\n<p>Then the BFQ module will be loaded automatically and used as default<br \/>I\/O scheduler at the next reboot.<\/p>\n<p>Credits:<br \/>http:\/\/lists.opensuse.org\/opensuse-factory\/2014-06\/msg00007.html<br \/>https:\/\/lkml.org\/lkml\/2014\/5\/29\/411<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In GNU\/Linux, currently there are three main disk I\/O schedulers available. They are called &lsquo;CFQ&rsquo;, &lsquo;NOOP&rsquo; and &lsquo;Deadline&rsquo; And came upon another disk I\/O scheduler for GNU\/Linux called &lsquo;BFQ&rsquo; (it&rsquo;s actually based on the code of &lsquo;CFQ&rsquo;). The KMP is &hellip; <a href=\"https:\/\/blog.ffteixeira.net\/?p=148\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3],"class_list":["post-148","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-bfq"],"_links":{"self":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=148"}],"version-history":[{"count":0,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}