国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 服務(wù)器 > 管理維護(hù) > 正文

2.6內(nèi)核改變系統(tǒng)IO調(diào)度算法

2024-09-10 14:18:59
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

2.6內(nèi)核的四種調(diào)度算法

In the 2.6 kernel series, there are four interchangeable schedulers, as follows:

cfq- “Completely Fair Queuing” makes a good default for most workloads on general-purpose servers. 

as – “Anticipatory Scheduler” is best for workstations and other systems with slow, single-spindle storage.

deadline – “Deadline” is a relatively simple scheduler which tries to minimize I/O latency by re-ordering requests to improve performance. Deadline的I/O調(diào)度器,在數(shù)據(jù)吞吐量非常大的數(shù)據(jù)庫(kù)系統(tǒng)中表現(xiàn)得更有優(yōu)勢(shì)。

noop- “NOOP” is the most simple scheduler of all, and is really just a single FIFO queue.

修改默認(rèn)的IO調(diào)度算法

There are two ways to change the I/O scheduler – at boot time, or with new kernels at runtime. For all Linux kernels, appending ‘elevator={noop|deadline}’ to the kernel boot string sets the I/O elevator.

With GRUB, append the string to the end of the kernel command:

title Fedora Core (2.6.9-5.0.3.EL_lustre.1.4.2custom)
root (hd0,0)
kernel /vmlinuz-2.6.9-5.0.3.EL_lustre.1.4.2custom ro
root=/dev/VolGroup00/LogVol00 rhgb noapic quiet elevator=deadline

With newer Linux kernels (Red Hat Enterprise Linux v3 Update 3 does not have this feature. It is present in the main Linux tree as of 2.6.15), one can change the scheduler while running. If the file /sys/block/<DEVICE>/queue/scheduler exists (where DEVICE is the block device you wish to affect), it will contain a list of available schedulers and can be used to switch the schedulers.

(sda is the <disk>):

[root@cfs2]# cat /sys/block/sda/queue/scheduler
noop [anticipatory] deadline cfq
[root@cfs2 ~]# echo deadline > /sys/block/sda/queue/scheduler
[root@cfs2 ~]# cat /sys/block/sda/queue/scheduler
noop anticipatory [deadline] cfq

The other schedulers (anticipatory and cfq) are better suited for desktop use.

查看當(dāng)前的IO調(diào)度算法

dmesg | grep -i schedular

英文信息copy from lustre manual

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 册亨县| 龙岩市| 彭阳县| 专栏| 延川县| 大新县| 五大连池市| 高平市| 韶关市| 滁州市| 德庆县| 长岛县| 苏尼特左旗| 伊春市| 盐源县| 合江县| 永寿县| 绵竹市| 万荣县| 高台县| 大理市| 庄河市| 新余市| 安阳市| 兴隆县| 灵寿县| 博湖县| 黑水县| 永川市| 龙游县| 盘山县| 武宣县| 东乡族自治县| 顺昌县| 济南市| 九龙县| 时尚| 礼泉县| 肥西县| 曲松县| 平谷区|