SlideShare a Scribd company logo
1 of 26
了解IO设备
核心系统数据库组 余锋
http://yufeng.info
@淘宝褚霸
2012-03-17
1
提纲
• 芯片组
• SATA/SAS
• SSD
• PCIe Flash卡
• RAID卡
• NVRAM卡
• 测量工具
2
IO芯片组
3
Raid卡和PCIe卡都插在
PCIe卡,直接走北桥
芯片组型号
Processors: 2 x Xeon E5645 2.40GHz
5860MHz FSB (HT enabled, 12 cores, 24
threads)
Chipset: Intel 5500 IOH-24D B3
(Tylersburg), 82801JIR A0 (ICH10R)
4
接口速率
5
PCIe每个X接口速率:
v1.x: 250 MB/s
v2.x: 500 MB/s
SATA/SAS机械磁盘
6
Disk: sda (scsi0): 100GB JBOD == 1 x HITACHI-
SAS
15K RPM IOPS: ~180
SATA II
7200 RPM IOPS: ~90
SSD
7
SATA II
Intel X25-M IOPS: ~8600
寿命:200T
思考
为什么
要有RAID或者HBA卡
接SATA磁盘阵列?
解决什么问题?
8
PCIe Flash卡
9Disk-Control: iodrive0: Fusion-io ioDIMM3 320GB
PCIe 2.0x4
ioDrive IOPS: with Flash 140,000
Read IOPS, 135,000 Write IOPS
掉电数据安全,寿命:5P-15P
PCIe 2.0x8
850 MB/s (4KB)
220,000 IOPS (4KB)
Raid卡
10Disk-Control: megaraid_sas0: LSI Logic / Symbios Logic
MegaRAID SAS 1078
•PCIe 2.0x8
•Support Up to 128 SATA Devices
•Dual Core ROC
•1GB cache
Raid卡(续)-Cache
• 虚拟卷
• 预读缓存
–NORA (No read ahead)
–RA (Read ahead)
–ADRA (Adaptive read ahead)
• 写缓存
–WT (Write through),
–WB (Write back)
• Disk Cache
–关闭,考虑到数据安全
11
Raid卡(续)-BBWC
• Nickel Metal Hydride (NiMH)
–100 full discharge cycles.
–48-hour battery life .
–Typical capacity for the HP Smart Array battery
pack reduces by 5 to 10 percent over a 3-year
period.
–Battery recharge takes between 30 minutes and 2
hours
• 模块化设计可替换
12
Raid卡 (续)- FBWC
13
NVRAM卡
14Disk-Control: mvloki0: Marvell Device 8180
PCIe 1.1x4
4K Block Writes: 165,000 IOPS
4K Block Reads: 185,000 IOPS
DDR backup to persistent flash on powerfailure
Automatic restore from Flash to DDR when power is restored
寿命:1M hours
DDR3 Non-Volatile DIMM
15
static unsigned long ram_start=0xa40000000UL;
static unsigned long ram_size= 0x80000000UL;
思考
PCIe卡的寿命和安全如何保证?
掉电数据安全吗?
16
hwconfig
17
firmware="E516"
handle="69"
interface="SAS"
serial="JXYGHLAN"
size="299999690752"
status="free"
volume="megaraid_sas0-free"
volume_handle="74"
wwn="0x5000cca018c378f1”
model="HITACHI-
HUS156030VLS600"
hwconfig –x sample.cfg
hwconfig
IO子系统架构图
18
lsblk
# lsblk -i
NAME MAJ:MIN RM SIZE RO MOUNTPOINT
sda 8:0 0 557.8G 0
sda1 8:1 0 500M 0 /boot
sda2 8:2 0 146.5G 0 /
sda3 8:3 0 2G 0 [SWAP]
sda4 8:4 0 1K 0
sda5 8:5 0 408.8G 0 /disk0
nvdisk0 252:0 0 8G 0 /u05
19
fio设备写饱和脚本
[global]
bs=4K
ioengine=libaio
rw=randrw
rwmixwrite=100
time_based
runtime=3600
direct=1
group_reporting
randrepeat=0
norandommap
invalidate=1
iodepth=8
iodepth_batch=4
iodepth_low=4
iodepth_batch_complete=8
numjobs=1
[test_sda]
filename=/dev/sda
[test_sdb]
filename=/dev/sdb
[test_sdc]
filename=/dev/sdc
[test_sdd]
filename=/dev/sdd
20
fio a_b_c_d_test
iostat
21
思考
IO depth对设备性能
有什么样的影响?
22
pidstat
23
iotop
24
参考材料
• Fio测试工具使用:
http://blog.yufeng.info/archives/tag/fio
• hwconfig查看硬件信息:
http://blog.yufeng.info/archives/2086
• Linux下方便的块设备查看工具lsblk
http://blog.yufeng.info/archives/1882
• Linux TASK_IO_ACCOUNTING功能以及如何使用:
http://blog.yufeng.info/archives/2138
25
提问时间
谢谢大家!
26

More Related Content

What's hot

Optimizing FUSE for Cloud Storage
Optimizing FUSE for Cloud StorageOptimizing FUSE for Cloud Storage
Optimizing FUSE for Cloud Storage
OpenVZ
 
10 Things you need to know abut designing enterprise SSD
10 Things you need to know abut designing enterprise SSD10 Things you need to know abut designing enterprise SSD
10 Things you need to know abut designing enterprise SSD
Simon Huang
 
Raid designs in Qsan Storage
Raid designs in Qsan StorageRaid designs in Qsan Storage
Raid designs in Qsan Storage
qsantechnology
 
Akfiler upgrades providence july 2012
Akfiler upgrades providence july 2012Akfiler upgrades providence july 2012
Akfiler upgrades providence july 2012
Accenture
 

What's hot (18)

Recent Developments in Donard
Recent Developments in DonardRecent Developments in Donard
Recent Developments in Donard
 
JetStor 8 series 16G FC 12G SAS units
JetStor 8 series 16G FC 12G SAS unitsJetStor 8 series 16G FC 12G SAS units
JetStor 8 series 16G FC 12G SAS units
 
Introduction to TrioNAS LX U300
Introduction to TrioNAS LX U300Introduction to TrioNAS LX U300
Introduction to TrioNAS LX U300
 
Optimizing FUSE for Cloud Storage
Optimizing FUSE for Cloud StorageOptimizing FUSE for Cloud Storage
Optimizing FUSE for Cloud Storage
 
The latest developments from OVHcloud’s bare metal ranges
The latest developments from OVHcloud’s bare metal rangesThe latest developments from OVHcloud’s bare metal ranges
The latest developments from OVHcloud’s bare metal ranges
 
10 Things you need to know abut designing enterprise SSD
10 Things you need to know abut designing enterprise SSD10 Things you need to know abut designing enterprise SSD
10 Things you need to know abut designing enterprise SSD
 
Raid designs in Qsan Storage
Raid designs in Qsan StorageRaid designs in Qsan Storage
Raid designs in Qsan Storage
 
Ceph Day Beijing - Ceph RDMA Update
Ceph Day Beijing - Ceph RDMA UpdateCeph Day Beijing - Ceph RDMA Update
Ceph Day Beijing - Ceph RDMA Update
 
AMD Zen 2 Core Microarchitecture Overview
AMD Zen 2 Core Microarchitecture OverviewAMD Zen 2 Core Microarchitecture Overview
AMD Zen 2 Core Microarchitecture Overview
 
ACNC JetStor AFA
ACNC JetStor AFAACNC JetStor AFA
ACNC JetStor AFA
 
Akfiler upgrades providence july 2012
Akfiler upgrades providence july 2012Akfiler upgrades providence july 2012
Akfiler upgrades providence july 2012
 
Qnap nas tvs serie x63-catalogo
Qnap nas tvs serie x63-catalogoQnap nas tvs serie x63-catalogo
Qnap nas tvs serie x63-catalogo
 
Performance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networksPerformance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networks
 
Backup with Bareos and ZFS - by Christian Reiß
Backup with Bareos and ZFS - by Christian ReißBackup with Bareos and ZFS - by Christian Reiß
Backup with Bareos and ZFS - by Christian Reiß
 
April 2014 IBM announcement webcast
April 2014 IBM announcement webcastApril 2014 IBM announcement webcast
April 2014 IBM announcement webcast
 
Micro Datacenter & Data Warehouse
Micro Datacenter & Data WarehouseMicro Datacenter & Data Warehouse
Micro Datacenter & Data Warehouse
 
7nm "Navi" GPU - A GPU Built For Performance
7nm "Navi" GPU - A GPU Built For Performance 7nm "Navi" GPU - A GPU Built For Performance
7nm "Navi" GPU - A GPU Built For Performance
 
Stingray SG- solution for internet service providers
Stingray SG- solution for internet service providers  Stingray SG- solution for internet service providers
Stingray SG- solution for internet service providers
 

Viewers also liked (12)

低成本和高性能MySQL云架构探索
低成本和高性能MySQL云架构探索低成本和高性能MySQL云架构探索
低成本和高性能MySQL云架构探索
 
mnesia脑裂问题综述
mnesia脑裂问题综述mnesia脑裂问题综述
mnesia脑裂问题综述
 
了解应用服务器
了解应用服务器了解应用服务器
了解应用服务器
 
Rethink db&tokudb调研测试报告
Rethink db&tokudb调研测试报告Rethink db&tokudb调研测试报告
Rethink db&tokudb调研测试报告
 
MySQL和IO(上)
MySQL和IO(上)MySQL和IO(上)
MySQL和IO(上)
 
了解内存
了解内存了解内存
了解内存
 
Erlang分布式系统的的领域语言
Erlang分布式系统的的领域语言Erlang分布式系统的的领域语言
Erlang分布式系统的的领域语言
 
利用新硬件提升数据库性能
利用新硬件提升数据库性能利用新硬件提升数据库性能
利用新硬件提升数据库性能
 
了解集群
了解集群了解集群
了解集群
 
我为什么要选择RabbitMQ
我为什么要选择RabbitMQ我为什么要选择RabbitMQ
我为什么要选择RabbitMQ
 
高性能集群服务器(Erlang解决方案)
高性能集群服务器(Erlang解决方案)高性能集群服务器(Erlang解决方案)
高性能集群服务器(Erlang解决方案)
 
Flash存储设备在淘宝的应用实践
Flash存储设备在淘宝的应用实践Flash存储设备在淘宝的应用实践
Flash存储设备在淘宝的应用实践
 

Similar to 了解IO设备

xa-zynq-7000-product-table (1)
xa-zynq-7000-product-table (1)xa-zynq-7000-product-table (1)
xa-zynq-7000-product-table (1)
Angela Suen
 
SeaPort Systems Rugged 4U HPC Workstation - System Data Sheet
SeaPort Systems Rugged 4U HPC Workstation - System Data SheetSeaPort Systems Rugged 4U HPC Workstation - System Data Sheet
SeaPort Systems Rugged 4U HPC Workstation - System Data Sheet
Darin George
 
nucleus-rm-capture-20x2
nucleus-rm-capture-20x2nucleus-rm-capture-20x2
nucleus-rm-capture-20x2
blabadini
 

Similar to 了解IO设备 (20)

Nd Evo Plus
Nd Evo PlusNd Evo Plus
Nd Evo Plus
 
Nd Evo Plus
Nd Evo PlusNd Evo Plus
Nd Evo Plus
 
Nd Evo Plus
Nd Evo PlusNd Evo Plus
Nd Evo Plus
 
SUN主机产品介绍.ppt
SUN主机产品介绍.pptSUN主机产品介绍.ppt
SUN主机产品介绍.ppt
 
xa-zynq-7000-product-table (1)
xa-zynq-7000-product-table (1)xa-zynq-7000-product-table (1)
xa-zynq-7000-product-table (1)
 
Series 8 RAID Datasheet
Series 8 RAID DatasheetSeries 8 RAID Datasheet
Series 8 RAID Datasheet
 
Hpe Proliant DL325 Gen10 Server Datasheet
Hpe Proliant DL325 Gen10 Server DatasheetHpe Proliant DL325 Gen10 Server Datasheet
Hpe Proliant DL325 Gen10 Server Datasheet
 
Adaptec RAID 81605ZQ vs. LSI MegaRAID 9361-8i Performance Whitepaper
Adaptec RAID 81605ZQ vs. LSI MegaRAID 9361-8i Performance WhitepaperAdaptec RAID 81605ZQ vs. LSI MegaRAID 9361-8i Performance Whitepaper
Adaptec RAID 81605ZQ vs. LSI MegaRAID 9361-8i Performance Whitepaper
 
OCP 2015 summit_honey badger_and_panther+_update
OCP 2015 summit_honey badger_and_panther+_updateOCP 2015 summit_honey badger_and_panther+_update
OCP 2015 summit_honey badger_and_panther+_update
 
Jetson AGX Xavier and the New Era of Autonomous Machines
Jetson AGX Xavier and the New Era of Autonomous MachinesJetson AGX Xavier and the New Era of Autonomous Machines
Jetson AGX Xavier and the New Era of Autonomous Machines
 
Hardware Discovery Commands
Hardware Discovery CommandsHardware Discovery Commands
Hardware Discovery Commands
 
QNAP Portfolio 2016
QNAP Portfolio 2016 QNAP Portfolio 2016
QNAP Portfolio 2016
 
UNIT 2 P1
UNIT 2 P1UNIT 2 P1
UNIT 2 P1
 
SeaPort Systems Rugged 4U HPC Workstation - System Data Sheet
SeaPort Systems Rugged 4U HPC Workstation - System Data SheetSeaPort Systems Rugged 4U HPC Workstation - System Data Sheet
SeaPort Systems Rugged 4U HPC Workstation - System Data Sheet
 
Moving to PCI Express based SSD with NVM Express
Moving to PCI Express based SSD with NVM ExpressMoving to PCI Express based SSD with NVM Express
Moving to PCI Express based SSD with NVM Express
 
한컴MDS_NVIDIA Jetson Platform
한컴MDS_NVIDIA Jetson Platform한컴MDS_NVIDIA Jetson Platform
한컴MDS_NVIDIA Jetson Platform
 
ArcGIS Server a Brief Synopsis
ArcGIS Server a Brief SynopsisArcGIS Server a Brief Synopsis
ArcGIS Server a Brief Synopsis
 
nucleus-rm-capture-20x2
nucleus-rm-capture-20x2nucleus-rm-capture-20x2
nucleus-rm-capture-20x2
 
Vigor Ex
Vigor ExVigor Ex
Vigor Ex
 
Nomenclatura QNAP
Nomenclatura QNAPNomenclatura QNAP
Nomenclatura QNAP
 

More from Feng Yu (14)

Erlang开发实践
Erlang开发实践Erlang开发实践
Erlang开发实践
 
MySQL和IO(下)
MySQL和IO(下)MySQL和IO(下)
MySQL和IO(下)
 
SSD在淘宝的应用实践
SSD在淘宝的应用实践SSD在淘宝的应用实践
SSD在淘宝的应用实践
 
淘宝商品库MySQL优化实践
淘宝商品库MySQL优化实践淘宝商品库MySQL优化实践
淘宝商品库MySQL优化实践
 
开源混合存储方案(Flashcache)
开源混合存储方案(Flashcache)开源混合存储方案(Flashcache)
开源混合存储方案(Flashcache)
 
Erlang low cost_clound_computing
Erlang low cost_clound_computingErlang low cost_clound_computing
Erlang low cost_clound_computing
 
Systemtap
SystemtapSystemtap
Systemtap
 
Oprofile linux
Oprofile linuxOprofile linux
Oprofile linux
 
Go
GoGo
Go
 
C1000K高性能服务器构建技术
C1000K高性能服务器构建技术C1000K高性能服务器构建技术
C1000K高性能服务器构建技术
 
Erlang全接触
Erlang全接触Erlang全接触
Erlang全接触
 
Tsung 压力测试工具
Tsung 压力测试工具Tsung 压力测试工具
Tsung 压力测试工具
 
Inside Erlang Vm II
Inside Erlang Vm IIInside Erlang Vm II
Inside Erlang Vm II
 
Go Lang
Go LangGo Lang
Go Lang
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 

了解IO设备