How to optimize SSD hard disks in linux, and how to optimize SSD hard disks in linux
1. ext4 file system is the fastest on SSD Hard Disk
2. the I/O algorithm is modified to noop, and the operating system does not process it, so that the SSD itself can process it.
Echo noop>/sys/block/sdb/queue/schedue
3. echo 4096> read_ahead_kb
Indicates the number of Kb of pre-read data. The default value is 128.
4. echo 4096> nr_requests
The default queue length is 128.
5. view the IO Scheduling Algorithms supported by the current system
Demesg | grep-I scheduler
6. view the I/O Scheduling Algorithm of the current system
Cat/sys/block/sdb/queue/schedue
7. Clear Cache
A) release the linux Cache
Echo 3>/proc/sys/vm/drop_caches defaults to 0
Mem used = free + buffers + cached
B) release the page Cache
Echo 1>/proc/sys/vm/drop_caches
C) Release dentries and inodes caches
Echo 2>/proc/sys/vm/drop_caches