[转帖]Redhat 8 磁盘调度策略变化:NOOP改为NONE

redhat,磁盘,调度,策略,变化,noop,改为,none · 浏览次数 : 0

小编点评

**Redhat 4/5/6/7 NOOP 调度策略** Redhat 4/5/6/7 中的 NOOP 调度策略从 8 开始更改为 `NONE`,官方解释为: * NOOP 策略使用 first-in first-out (FIFO) 的调度算法。 * 它通过一个简单的前驱缓存将请求合并到通用块层。 * mq-deadline 策略使用读取或写入批处理,并根据请求到达的顺序排序 I/O 请求。 * 在默认情况下,读取批优先于写入批,因为应用程序更 likely 阻塞在读取 I/O 操作上。 * mq-deadline 处理完批后,会检查写操作是否Nachdem处理器闲置,并根据需要调度下一个读取或写入批。 * 此策略适用于大多数场景,特别是那些涉及大量写入操作的任务,例如数据库操作。 **其他选项** * bfq 选项可以指定目标 latencies,以优化性能。 * kyber 选项允许设置针对 I/O 请求的 latencies。

正文

说明

redhat 4/5/6/7版本中的NOOP调度策略,从8开始修改为NONE,官方解释:

none
Implements a first-in first-out (FIFO) scheduling algorithm. It merges requests at the generic block layer through a simple last-hit cache.

mq-deadline
Attempts to provide a guaranteed latency for requests from the point at which requests reach the scheduler.

The mq-deadline scheduler sorts queued I/O requests into a read or write batch and then schedules them for execution in increasing logical block addressing (LBA) order. By default, read batches take precedence over write batches, because applications are more likely to block on read I/O operations. After mq-deadline processes a batch, it checks how long write operations have been starved of processor time and schedules the next read or write batch as appropriate.

This scheduler is suitable for most use cases, but particularly those in which the write operations are mostly asynchronous.

bfq
Targets desktop systems and interactive tasks.

The bfq scheduler ensures that a single application is never using all of the bandwidth. In effect, the storage device is always as responsive as if it was idle. In its default configuration, bfq focuses on delivering the lowest latency rather than achieving the maximum throughput.

bfq is based on cfq code. It does not grant the disk to each process for a fixed time slice but assigns a budget measured in number of sectors to the process.

This scheduler is suitable while copying large files and the system does not become unresponsive in this case.

kyber
The scheduler tunes itself to achieve a latency goal by calculating the latencies of every I/O request submitted to the block I/O layer. You can configure the target latencies for read, in the case of cache-misses, and synchronous write requests.

This scheduler is suitable for fast devices, for example NVMe, SSD, or other low latency devices.

官方文档链接: 网址

修改方法

  • 临时
$ echo 'none' > /sys/block/sda/queue/scheduler
$ cat           /sys/block/sda/queue/scheduler
[none] mq-deadline kyber bfq 
  • 1
  • 2
  • 3
  • 永久
	修改策略,如改为none
	mkdir /etc/tuned/ssdlinux
	vi /etc/tuned/ssdlinux/tuned.conf
	写入以下内容:
	[disk]
	elevator=none
	触发生效
	tuned-adm profile ssdlinux
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

如果要指定磁盘策略,可通过以下参数devices_udev_regex

[disk]
devices_udev_regex=IDNAME=device system unique id
elevator=selected-scheduler
  • 1
  • 2
  • 3

使用场景

Use caseDisk scheduler
Traditional HDD with a SCSI interfaceUse mq-deadline or bfq.
High-performance SSD or a CPU-bound system with fast storageUse none, especially when running enterprise applications. Alternatively, use kyber.
Desktop or interactive tasksUse bfq.
Virtual guestUse mq-deadline. With a host bus adapter (HBA) driver that is multi-queue capable, use none.
文章知识点与官方知识档案匹配,可进一步学习相关知识
CS入门技能树Linux入门初识Linux33223 人正在系统学习中

与[转帖]Redhat 8 磁盘调度策略变化:NOOP改为NONE相似的内容:

[转帖]Redhat 8 磁盘调度策略变化:NOOP改为NONE

说明 在 redhat 4/5/6/7版本中的NOOP调度策略,从8开始修改为NONE,官方解释: none Implements a first-in first-out (FIFO) scheduling algorithm. It merges requests at the generic

[转帖]Red Hat Enterprise Linux 8 和 9 中可用的 IO 调度程序

Red Hat 弃用了 Red Hat Enterprise Linux 7 中可用的 I/O 调度程序,并引入了四个新的 I/O 调度程序,如下所示, 运行以下命令检查 RHEL8 和 RHEL9 中可用的调度程序 # dmesg | grep -i scheduler [ 0.507104] i

[转帖]Linux_Redhat8——常用命令:ls、ll、vim、ps、top、grep、tail

Linux_Redhat8—常用命令: ls、ll、vim、ps、top、grep 一、ls(list):查看目录下的文件 ls:仅罗列出当前文件名或目录名。 ll:罗列出当前文件或目录的详细信息,包括上次修改时间、读写权限、大小等。 可以理解为 ll 和 ls -l 的功能是相同的,即:ll 是

[转帖]Redhat 各个版本和内核对照

2021-05-23 23:3317430原创Linux 本文链接:https://www.cndba.cn/dave/article/4534 Redhat 官网可以直接查看不同版本的发布时间和对应的内核版本,官方如下: Red Hat Enterprise Linux Release Dates

[转帖]Redhat、CentOS添加静态路由的方法

https://www.diewufeiyang.com/post/1174.html 我们经常遇到需要在系统默认路由的基础上,额外添加静态路由的需求。为了使得下次系统启动这些静态路由依旧生效,我们可能采取在rc.loal里加入route命令追加静态路由的方法。 现在给大家推荐Redhat建议的方法

[转帖]Balancing “If it ain’t broke, don’t fix it” vs. “Release early and often”

https://www.redhat.com/en/blog/balancing-if-it-aint-broke-dont-fix-it-vs-release-early-and-often Every organization faces a war between two schools of

[转帖]透明大页(huge pages) ---Transparent HugePages

https://www.coonote.com/linux-note/transparent-hugepages.html 从RedHat 6, OEL 6, SLES 11 and UEK2 kernels 开始,系统缺省会启用 Transparent HugePages :用来提高内存管理的性能

[转帖]Linux禁用CPU省电状态/Linux系统性能调优

https://www.jianshu.com/p/945168b47487 How to Disable CPU Power Saving States on a Redhat or Suse Linux System For RedHat Linux (release 7 and later)

[转帖]Red Hat Enterprise Linux 生命周期

2022-02-10 15:579340原创Linux 本文链接:https://www.cndba.cn/dave/article/106639 官方对Redhat 的生命周期的说明链接如下: Red Hat Enterprise Linux 生命周期https://access.redhat.c

[转帖]NetworkManager服务(nmcli)

一、简介 NetworkManager服务是管理和监控网络设置的守护进程,是2004年RedHat启动的项目,皆在能够让Linux用户更轻松的处理现代网络需求,尤其是无线网络,能够自动发现网卡并配置IP地址。Centos7之前的版本都是通过network.service管理网络配置。到了Centos