Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Use a soft Raid play multiple SSD hard drive performance and enhance data security     - Build a Linux development environment under STC89C52RC (Linux)

- Install Unity 8 preview version of the desktop in Ubuntu (Linux)

- How to modify the Sublime in Tab four spaces (Linux)

- AWK principles and commands and file input (Linux)

- AngularJS asynchronous service testing and Mocking (Programming)

- Access clipboard content across multiple vim instances in a terminal (Linux)

- MySQL InnoDB table --BTree basic data structures (Database)

- Linux excellent text editor (Markdown, LaTeX, MathJax) (Linux)

- Python Dir find a folder several files (Programming)

- Puppet centralized configuration management system (Server)

- C # C ++ Java interface type conversion (Programming)

- The first deployment of cross-platform operation Rafy record (Server)

- Build Python3.4 + PyQt5.5.1 + Eric6.1.1 development platform under Mac OS X 10.11.1 (Server)

- Ubuntu 14.04 Trusty Tahr User How to install Banshee 2.9.1 (Linux)

- Log4j configuration file Explanation (Linux)

- Common data structures and functions of Linux process scheduling (Programming)

- To compile and install Redis Linux and master-slave replication configuration (Database)

- Cacti installation deployment under CentOS 6.6 (Server)

- Oracle11g CRS-0184 Problem Solving (Database)

- Android Custom View password box example (Programming)

 
         
  Use a soft Raid play multiple SSD hard drive performance and enhance data security
     
  Add Date : 2018-11-21      
         
       
         
  Disk IO bottleneck for many years, with the SSD hard drive technology has become more sophisticated, the cost of gradual decline, more and more companies began to use SSD hard disk on the server.

Ever since last year added to the notebook SSD interface after a mSata improve overall system performance beyond words!

Monolithic SSD performance has been very good, if not Raid the data security can not be guaranteed. But using ordinary Raid card running SSD hard disk, the bottleneck will be pressed against the Raid card. Both to good performance, but also data security, you can choose tall on: PCIE interface solid state drive (SSD) or flash memory card (FlashCard).

There is no one kind of populist options? The answer is soft Raid, such as mdadm v3.2.5 Linux under.

1, soft Raid can play multiple SSD performance, the more the better the performance of the disk (currently only tested up to five discs)

2, Raid0 best performance, but the least secure

3, Raid5 write performance is poor, resulting in mixed read and write performance is drag you down

4, Raid10 the best solution is a comprehensive performance, capacity, data security

Test scripts are as follows:

#! / Bin / bash -x
yum -y install fio mdadm xfsprogs
mkdir -pv / ssd
umount / ssd
mdadm -S / dev / md0
yes | mdadm -C / dev / md0 -a yes -l 0-n 5 - assume-clean / dev / sd {b, c, d, e, f}
mkfs.xfs -f / dev / md0
mount / dev / md0 / ssd
rm -fv /tmp/fio-*.txt
cat / proc / mdstat
mdadm -D / dev / md0
fio --bs = 512 - ioengine = libaio --userspace_reap --time_based --runtime = 600 - group_reporting --buffered = 0 - direct = 1 - randrepeat = 0 - norandommap --ramp_time = 6-- iodepth = 16 - numjobs = 16 - size = 100G - directory = / ssd --name = randread --rw = randread --filename = fio-test.file --output = / tmp / fio-r.txt # random read
fio --bs = 512 - ioengine = libaio --userspace_reap --time_based --runtime = 600 - group_reporting --buffered = 0 - direct = 1 - randrepeat = 0 - norandommap --ramp_time = 6-- iodepth = 16 - numjobs = 16 - size = 100G - directory = / ssd --name = randwrite --rw = randwrite --filename = fio-test.file --output = / tmp / fio-w.txt # random write
fio --bs = 512 - ioengine = libaio --userspace_reap --time_based --runtime = 600 - group_reporting --buffered = 0 - direct = 1 - randrepeat = 0 - norandommap --ramp_time = 6-- iodepth = 16 - numjobs = 16 - size = 100G - directory = / ssd --name = randmixed --rwmixwrite = 20 --rw = randrw --filename = fio-test.file --output = / tmp / fio-m.txt # 8: 2 mixed read-write
grep --color iops /tmp/fio-*.txt
Note that the default soft Raid will not boot automatically load, you need to generate the configuration file manually.

mdadm --verbose --detail --scan> /etc/mdadm.conf
# ARRAY / dev / md0 level = raid0 num-devices = 5 metadata = 1.2 name = ssd.higkoo.org: 0 UUID = 0dfa7417: 13c1622d: 1dca1dfe: 12a0e0f4
# Devices = / dev / sdb, / dev / sdc, / dev / sdd, / dev / sde, / dev / sdf
"/etc/mdadm.conf" Detailed description can view the help or "rpm -ql mdadm | grep" mdadm.conf "" sample file for the reference.

Then write to fstab Raid partition, it can use / dev / md0 or `ls -l / dev / disk / by-uuid` view its uuid. Writes some data, and then restart verification.!
     
         
       
         
  More:      
 
- Java NIO1: I / O model overview (Programming)
- The specified user to execute commands under Linux (Linux)
- Python script file directory traversal examples (Programming)
- Linux system security mechanisms to share (Linux)
- Linux System Getting Started Tutorial: How to Force Change your password at next logon Linux (Linux)
- Json data with double backslashes to a single backslash Json data processing (Programming)
- SQL Beginner Guide (Database)
- Ubuntu users to install voice switch instructs the applet (Linux)
- Ubuntu 14.04 and derivative version of the user on how to install cURL 7.37.1 (Linux)
- Ubuntu Linux use ufw or iptables firewall configuration (Linux)
- Linux iptables firewall and vsftpd to resolve the issue (Linux)
- Using DOS command to change UNIX administrator password (Linux)
- Java string concatenation techniques (StringBuilder tips) (Programming)
- Linux Mint 17 set up the Ruby environment (Linux)
- Ubuntu in Vim editor display processing method Chinese garbled (Linux)
- Ubuntu is expected to allow you to install the latest Nvidia Linux drivers easier (Linux)
- PostgreSQL log classification and management (Database)
- Linux static library generated Guide (Programming)
- MySQL high availability cluster fragmentation of deployment uses Fabric (Database)
- Linux, Eclipse flash back and reinstall the JDK methods (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.