Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Related to optimize the use of Btrfs file system on SSD     - 20 open source / commercial Linux server management control panel (Server)

- Depth understanding of JavaScript new mechanism (Programming)

- SSH configuration under Linux (Linux)

- Oracle RAC 10.2.0.5 upgrade to 11.2.0.4 problems encountered (Database)

- Configuring Proxy on a Unix terminal, accelerate Android Studio Construction (Linux)

- Detailed reference Oracle 11g Partition (Database)

- Python script file directory traversal examples (Programming)

- Story timestamp and time zones: daily programmer (Programming)

- Python 2 Chinese garbage problem solved (Linux)

- RHEL 6.5 KVM analytical use (Server)

- When Linux virtual machine to another copy of the operating system, a static IP NAT mode Invalid (Linux)

- 64 Ubuntu 15.04 Linux kernel upgrade to Linux 4.1.0 (Linux)

- MySQL High Availability plan several options (Database)

- Object Oriented Programming Java reflection (Programming)

- Docker Build a Java compiler environment (Linux)

- hadoop 2.7.1 High Availability Setup Deployment (Server)

- Linux System Administrator Network Security Experience (Linux)

- MongoDB Learning the notes (Database)

- Eclipse 3.7.2 can not start solving under Ubuntu 14.04 (Linux)

- RM Environment Database RMAN Backup Strategy Formulation (Database)

 
         
  Related to optimize the use of Btrfs file system on SSD
     
  Add Date : 2016-04-14      
         
       
         
  Optimization mount options

Btrfs SSD mount on Linux, can be used to optimize various parameters:

#
UUID = / btrfs defaults, ssd, discard, noatime, compress = lzo, subvol = @ 01
These parameters have advantages and disadvantages, as appropriate, Add.

ssd

btrfs file system optimized for SSD, you can join in ssd mount parameter. This parameter does not automatically enable TRIM / discard.

discard

Through the following command to confirm whether the SSD supports TRIM:

sudohdparm-I / dev / sdX | grep TRIM
* DataSetManagement TRIM supported (limit 8 blocks)
If the SSD supports TRIM command, you can enable the discard parameter in / etc / fstab in. Recommended to discard mount options as the preferred. According to the debian wiki, including a number of SSD Samsung, Micron, ICR of including in the discard / TRIM in question, can not properly handle TRIM command. The following is a linux kernel source code of the relevant (2015/10/15):

/ * Devices that do not properly handle queued TRIM commands * /
{ "Micron_M500_ *", NULL, ATA_HORKAGE_NO_NCQ_TRIM |
ATA_HORKAGE_ZERO_AFTER_TRIM,},
{ "Crucial_CT * M500 *", NULL, ATA_HORKAGE_NO_NCQ_TRIM |
ATA_HORKAGE_ZERO_AFTER_TRIM,},
{ "Micron_M5 [15] 0_ *", "MU01", ATA_HORKAGE_NO_NCQ_TRIM |
ATA_HORKAGE_ZERO_AFTER_TRIM,},
{ "Crucial_CT * M550 *", "MU01", ATA_HORKAGE_NO_NCQ_TRIM |
ATA_HORKAGE_ZERO_AFTER_TRIM,},
{ "Crucial_CT * MX100 *", "MU01", ATA_HORKAGE_NO_NCQ_TRIM |
ATA_HORKAGE_ZERO_AFTER_TRIM,},
{ "Samsung SSD 8 *", NULL, ATA_HORKAGE_NO_NCQ_TRIM |
ATA_HORKAGE_ZERO_AFTER_TRIM,},
{ "FCCT * M500 *", NULL, ATA_HORKAGE_NO_NCQ_TRIM |
ATA_HORKAGE_ZERO_AFTER_TRIM,},
/ * Devices that do not properly handle TRIM commands * /
{ "SuperSSpeed ​​S238 *", NULL, ATA_HORKAGE_NOTRIM,},
This parameter is not required to be periodically run fstrim custom command to replace the parameter, before using this command to confirm SSD supports TRIM, or may cause data loss. This parameter is not required when the SSD has enough free space or (unallocated) space available.

noatime

Mount options can be added noatime, to reduce unnecessary write operations by prohibiting access to records updated to improve performance. This option also has HDD performance. btrfs default configuration for relatime.

compress

Open compression under normal circumstances help to improve transmission performance (not absolute), can also save storage space. Mount adding the following parameters:

compress = lzo
or
compress = zlib
lzo faster, zlib compression rate higher. Note SSD controller to confirm whether the non-compressed master, if it is not recommended to join the main compression parameter.

Write cache

If the SSD with cache, enable Write Cache can improve performance: Disks -> Drive Setting -> Enable Write Cache, but in the case of sudden power failure could cause data loss.

I / O scheduler

SSD Unlike traditional hard disk structure, addressing a short time, I / O scheduling algorithm to choose noop reduce latency. Following command to view and modify the dispatcher:

cat / sys / block / sdX / queue / scheduler # sdX refers to your device
sudotee / sys / block / sdX / queue / scheduler <<< noop
Note that the above method is not lasting, it will reset after the restart. If the SSD is the only system storage device, consider setting I / O scheduler via elevator = noop kernel parameters. Udev rules can also be used to modify the scheduler on multiple storage devices equally effective:

/etc/udev/rules.d/60-ssd-scheduler.rules # create the file
Document reads as follows:

# Set deadline scheduler for non-rotating disks
ACTION == "add | change", KERNEL == "sd [a-z]", ATTR {queue / rotational} == "0", ATTR {queue / scheduler} = "noop"
     
         
       
         
  More:      
 
- VirtualBox - Linux system virtual machine shared folders (Linux)
- JSON Introduction and Usage Summary (Programming)
- How linux network security configuration (Linux)
- Extended VMware Ubuntu root partition size (Linux)
- Oracle procedure or function Empty Table (Database)
- RHEL6.4 x86_64 build SVN service (Server)
- Ubuntu and Derivative Edition users install LMMS 0.4.15 (Linux)
- Performance Diagnosis of 60,000 milliseconds for Linux (Linux)
- impdp error ORA-31631, ORA-39122 (Database)
- C # socket udp broadcast (Programming)
- Gnu Linux - Ubuntu System Clean-term consolidation (Linux)
- Oracle Enterprise Linux 64-bit install apache-tomcat-7.0.53 step (Server)
- Understand the security restore accidentally deleted critical system files (Linux)
- Linux System Getting Started Learning: After starting in Ubuntu or Debian, enter the command line (Linux)
- Graphical interface for the CentOS 6.4 installed and connected by remote VNC (Linux)
- The OpenGL ES GLFW window structures (Programming)
- LNMP summary of the issues common 502 Bad Gateway (Server)
- OpenStack / Dev stack with neutron on Ubuntu 14.04 (Server)
- Service manager OpenBSD on rccl (Server)
- Workaround CentOS error message during compilation PHP5 common (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.