⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 switching-sched.txt

📁 linux 内核源代码
💻 TXT
字号:
To choose IO schedulers at boot time, use the argument 'elevator=deadline'.'noop', 'as' and 'cfq' (the default) are also available. IO schedulers areassigned globally at boot time only presently.Each io queue has a set of io scheduler tunables associated with it. Thesetunables control how the io scheduler works. You can find these entriesin:/sys/block/<device>/queue/ioschedassuming that you have sysfs mounted on /sys. If you don't have sysfs mounted,you can do so by typing:# mount none /sys -t sysfsAs of the Linux 2.6.10 kernel, it is now possible to change theIO scheduler for a given block device on the fly (thus making it possible,for instance, to set the CFQ scheduler for the system default, butset a specific device to use the anticipatory or noop schedulers - whichcan improve that device's throughput).To set a specific scheduler, simply do this:echo SCHEDNAME > /sys/block/DEV/queue/schedulerwhere SCHEDNAME is the name of a defined IO scheduler, and DEV is thedevice name (hda, hdb, sga, or whatever you happen to have).The list of defined schedulers can be found by simply doinga "cat /sys/block/DEV/queue/scheduler" - the list of valid nameswill be displayed, with the currently selected scheduler in brackets:# cat /sys/block/hda/queue/schedulernoop anticipatory deadline [cfq]# echo anticipatory > /sys/block/hda/queue/scheduler# cat /sys/block/hda/queue/schedulernoop [anticipatory] deadline cfqEach io queue has a set of io scheduler tunables associated with it. Thesetunables control how the io scheduler works. You can find these entriesin:/sys/block/<device>/queue/iosched

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -