6. Hardware Software
DB Performance Degradation life cycle
Overload
Degraded PerformanceCPU / Memory
Storage
Peripheral
Database
Data
Algorithm
7. • Sata, SAS, SSD (Types of Hard Drives)
• Big performance difference between Sequential IO vs
Random IO
• IOPS (In Out Per Second)
• IOPS Estimated = 1 / ((seek time / 1000) + (latency / 1000))
Storage
Reference
http://www.cloudbyte.com/docs/Whitepaper_CloudByte_Measuring-Storage-Performance.pdf
8. • Average read seek time: 3.4 ms
• Average write seek time: 3.9 ms
• Average latency: 2.0 ms
• Seek time = (Average read seek time + Average write seek time) / 2
= (3.4 + 3.9) / 2 = 3.65 ms
• IOPS Estimated = 1 / ((seek time / 1000) + (latency / 1000))
= 1 / ((3.65/1000) + (2.0 / 1000)
= 176.9911 ~ 175 IOPS
SAS - 600GB 15K - Seagate
Reference
http://www.seagate.com/www/en-us/products/enterprise-hard-drives/cheetah-15k#tTabContentSpecifications
32. Coding Best Practices
Maximize coverage
Avoid conversions (implicit/explicit)
Avoid row by row access (cursor pattern)
Avoid unnecessary sorting
Choose the right index for the expected data
pattern access method
This is what we are going to cover on this session,
- Essentials of Raid Arrays configuration
The basic that what happen under the seen during a transaction
How can the data and log files been organized in order to
Usually Hardware issues cause performance degradation in the software
Changes on the software usually create hardware bottleneck and get reflected in performance degradation
And that is the base of the problem, here is where you see DBA’s fighting Developers or DBA’s fighting San Administrators