Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Related to optimize the use of Btrfs file system on SSD     - A brief introduction to some important Docker commands (Server)

- Oracle 11g + RAC + RHEL6.5 + udev + ASM + PSU installation summary (Database)

- Linux system versions organize local root password cracking method (Linux)

- extundelete: the Linux-based open source data recovery tools (Linux)

- SSH without password Definitive Guide (Linux)

- How to Disable Linux IPv6 (Linux)

- Revive Adserver ad server installation on Ubuntu 15.04 / CentOS7 (Server)

- configuration ssh without password under Linux (Linux)

- Linux FAQ - How to fix tar:Exitingwith failure status due to previous errors (Linux)

- Oracle 11gr2 new APPEND_VALUES tips (Database)

- Linux Nginx installation and configuration instructions (Server)

- Oracle user lock how to know what causes (Database)

- Oracle EBS R12 for Linux installation (Database)

- Grep how to find files based on file contents in UNIX (Linux)

- Digital jQuery scrolling effect (Programming)

- Recovery from MySQL master data consistency summary (Database)

- Matters Oracle 11.2 single instance when connecting ASM need to pay attention and deal with the problem (Database)

- Ubuntu system safe and caution sudo su command (Linux)

- HomeKit User Interface Guidelines (Linux)

- Linux disk and File System Concepts (Linux)

 
         
  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:      
 
- Ubuntu set Swap Space Tutorial (Linux)
- VirtualBox virtual machine can not start to solve under Ubuntu (Linux)
- Oracle Automatic Diagnostic Repository (Automatic Diagnostic Repository, ADR) (Database)
- Ubuntu Backup and Recovery (Linux)
- CentOS 7 repair MBR and GRUB (Linux)
- BGP routers want to play it by CentOS (Linux)
- Java Virtual Machine class loading mechanism and bytecode execution engine (Programming)
- Lenovo E431 notebook CentOS system is installed wireless network card driver (Linux)
- Ubuntu 12.04 64-bit installation Redmine + Git + ReviewBoard (Linux)
- SecureCRT remote connection Ubuntu fails to solve the case (Linux)
- Erlang concurrency and foundation (Programming)
- RHEL5 multipath configuration (Linux)
- Nginx request processing (Server)
- Oracle 11R2 Grid Infrastructure execute root.sh script rootcrs.pl execution failed treatment (Database)
- Git uses a standard process (Linux)
- LVM mirrored logical volume to achieve (Linux)
- Linux system on how to use rsync to synchronize data (Server)
- ActiveMQ5.10.2 version configuration JMX (Linux)
- Linux Platform Oracle 11g Single Instance Installation Deployment Configuration Quick Reference (Database)
- Linux Variable content removal and replacement (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.