Home  >  Article  >  Operation and Maintenance  >  Example tutorial on optimizing SSD hard disk in Linux system

Example tutorial on optimizing SSD hard disk in Linux system

PHP中文网
PHP中文网Original
2017-06-21 11:12:202751browse

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!

Statement:
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