How to optimize SSD hard disks in linux, and how to optimize SSD hard disks in linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.