Example tutorial on optimizing SSD hard disk in Linux system

PHP中文网
Release: 2017-06-21 11:12:20
Original
2804 people have browsed it

Noop ; /sys/block/sdb/queue/scheduler

3, echo 4096 > read_ahead_kb

Indicates the number of Kb of pre-read data, the default is 128

4, echo 4096 > nr_requests

The default queue length is 128

5. Check the IO scheduling algorithm supported by the current system

demesg | grep -i scheduler

6. Check the I/O scheduling algorithm of the current system

 cat /sys/block/sdb/queue/scheduler

7. Clear the cache

a), release the linux cache

Echo 3 > /proc/sys/vm/drop_caches Default is 0

mem used = free + buffers + cached

b), release page cache

  Echo 1 > /proc/sys/vm/drop_caches

c), release dentries and inodes cache

echo 2 > /proc/sys/vm/drop_caches

The above is the detailed content of Example tutorial on optimizing SSD hard disk in Linux system. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!