In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
The content of this article is mainly about how to change the I/O scheduler of Linux system. The content of the article is clear and easy to understand, and the organization is clear. It is very suitable for beginners to learn and worth reading. Interested friends can read along with Xiaobian. I hope everyone gets something out of this article!
Linux I/O scheduler is a process that accesses storage volumes in block I/O, sometimes called disk scheduler.
The Linux I/O scheduler works by controlling block device request queues: determining which I/Os in the queue have higher priority and when to issue I/Os to block devices, thereby reducing disk seek times and improving system throughput.
I/O scheduling algorithm on Linux: noop-a device typically used for memory storage.
cfq-Completely fair scheduler. Processes use IO bandwidth on average.
Deadline-For a delayed scheduler, every I/O has a latest execution time.
Anticipatory-Heuristic scheduling, similar to Deadline algorithm, but with predictive mechanism introduced to improve performance.
View the device's current I/O scheduler
cat /sys/block//queue/scheduler Assuming the disk name is/dev/sdc:
cat /sys/block/sdc/queue/scheduler noop anticipatory deadline [cfq] How to change a hard disk device I/O scheduler uses the following command:
echo {SCHEDULER-NAME} > /sys/block//queue/scheduler For example, set the noop scheduler:
echo noop > /sys/block/sdc/queue/scheduler The above settings will expire after restart. To keep the configuration in effect after restart, you need to write elevator=noop in the kernel startup parameters to/boot/grub/menu.lst:
1. Backup menu.lst file cp -p /boot/grub/menu.lst /boot/grub/menu.lst-backup2. Update/boot/grub/menu.lst to add elevator=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 Thank you for reading, I believe you have a certain understanding of "Linux system how to change I/O scheduler" This problem, go to practice it, if you want to know more related knowledge points, you can pay attention to the website! The editor will continue to bring better articles to everyone!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.