Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to change Istroke O Scheduler in Linux system

2025-02-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

The purpose of this article is to share with you about how to change the Icano scheduler in the Linux system. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article.

The Linux Imax O scheduler, which is a part of the Linux kernel, is a process that accesses storage volumes with block Imax O.

At present, there are the following scheduling algorithms on Linux:

1. Noop-A device typically used for memory storage.

2. Cfq-full fair scheduler. The average process uses IO bandwidth.

3. Deadline-for a delayed scheduler, each I _ hand O has a latest execution time.

4. Anticipatory-heuristic scheduling, similar to Deadline algorithm, but introducing prediction mechanism to improve performance.

View the device's current Istroke O scheduler:

"``

# cat / sys/block//queue/scheduler

"``

Suppose the disk name is `/ dev/ sdc`:

"``

# cat / sys/block/sdc/queue/schedulernoop anticipatory deadline [cfq] "`

# how to change the hard disk device Iram O Scheduler

Use the following instructions:

"``

# echo {SCHEDULER-NAME} > / sys/block//queue/scheduler

"``

For example, set up the noop scheduler:

"``

# echo noop > / sys/block/sdc/queue/scheduler

"``

The above settings will expire after restart. If you want the configuration to take effect after restart, you need to write `Noop` to `/ boot/grub/ menu.lst` in the kernel startup parameters:

# 1. Backing up menu.lst files

"``

Cp-p / boot/grub/menu.lst / boot/grub/menu.lst-backup

"``

# 2. Update / boot/grub/menu.lst

Add `Noop` to the end of the file, such as:

"``

Kernel / vmlinuz-2.6.16.60-0.91.1-smp root=/dev/sysvg/root splash=silent splash=off showopts elevator=noop

"``

What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.

The above is how to change the Linux O scheduler. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report