Some Surprising Benefits of Using Storage Areas - PowerPoint PPT Presentation

1 / 20
About This Presentation
Title:

Some Surprising Benefits of Using Storage Areas

Description:

Binary Dump & Load. Parallelization. Many Benefits. Difficult to ... Longest dump may not be longest load. And vice versa. Some variability is possible ... – PowerPoint PPT presentation

Number of Views:59
Avg rating:3.0/5.0
Slides: 21
Provided by: tomb153
Category:

less

Transcript and Presenter's Notes

Title: Some Surprising Benefits of Using Storage Areas


1
Some Surprising Benefits of Using Storage Areas
  • - and -Managing A
  • Parallel Dump And Load In A Tight Window

Tom Bascomtom_at_greenfieldtech.com
2
Agenda
  • Storage Areas
  • Dumping Loading
  • Surprising Results

3
Storage Areas
  • Structure for Grouping Tables and Indexes
  • Administrative Benefits
  • Index Rebuilds
  • Dump Load
  • Dropping Areas
  • DB Analysis
  • Drawbacks
  • More complex structure
  • No single high water mark
  • More overhead (free space in areas)

4
Dump Load Choices
  • Classic Dictionary Dump Load
  • Bulk Loader
  • Binary Dump Load
  • Parallelization
  • Many Benefits
  • Difficult to Effectively Balance
  • Automating the process
  • Index Rebuild inline vs single thread
  • Exotic techniques buffer copy, -RO, Table
    Filters

5
Classic Dictionary DL
1st the dump
Order-line
Cust
order
hist
and then the load.
cust
Order-line
order
6
Multi-threaded DL
1st the dump
cust
order
hist
and then the load.
Order-line
cust
Order-line
order
7
Load Balanced DL
Both the dump
cust
cust
order
hist
Order-line
Order-line
order
and the load in parallel, multi-threaded and
load-balanced.
8
Drivers
  • What is the window?
  • What are the goals?
  • What resources are available?

9
The Window
  • 2 Day Weekend -- Midnight Friday to 6am Monday
    (54 hours)
  • Predictability is Vital
  • Recoverability is Paramount
  • If it fails we must not impact production on
    Monday am
  • Available weekends are rare

10
The Goals
  • Reduce Downtime for Maintenance
  • Index Rebuilds
  • Dump Load
  • Application Maintenance
  • Reduce Disk Footprint
  • Improve Reporting Performance

11
Resources
  • Production Server (HP rp7410)
  • 8 x 750mhz
  • 16GB RAM
  • HPUX 11i
  • Failover Server (HP V2250)
  • 16 x 240mhz
  • 8GB RAM
  • HPUX 11
  • Old EMC Disk Array Symmetrix 8100
  • Database striped (and mirrored) across 16 disks
  • New EMC Disk Array Symmetrix 8830
  • 4 Meta volumes of 4 LUNs

12
The SA Design
  • Separate Tables from Indexes
  • Isolate large Tables (80/20 rule)
  • Any table over 1 million rows
  • Any table over 1GB
  • Isolate Transaction Data from Overhead Data
  • Easily identifiable in dictionary
  • 256 Records per Block

13
The SA Design -- continued
  • 80 Storage Areas
  • 40 Data, 40 Index
  • 1 miscellaneous transaction data
  • 1 miscellaneous transaction indexes
  • 1 miscellaneous overhead data
  • 1 miscellaneous overhead indexes
  • 38 large table data areas
  • 38 index areas for large tables
  • Plus schema, bi ai areas

14
Load Balanced Binary DL
15
Parallel Binary Dump Load
  • 24 Dump Threads
  • Effect of adding threads
  • 47 Load Threads
  • Resource contention issues
  • Tabanalys
  • Expected DL Time is Longest Combined DL of a
    single given table
  • Longest dump may not be longest load
  • And vice versa
  • Some variability is possible
  • Other dl threads can overlap reducing
    contention

16
(Expected) Results
17
Application Load
  • Graphs show before after application load
    (unchanged)
  • Logical Reads
  • Commits/sec

18
Surprise!
  • Dramatic Reduction in
  • OS Reads
  • Latch Contention

19
Why?
  • Homogenous Data Blocks Take Better Advantage of
    Locality of Reference
  • LOR says that most data access is close to
    previous access
  • Mixed data blocks scatter data widely
  • Prior to dl a block with 64 slots might have 3
    records from a table best case hit ratio for a
    table scan is about 85
  • Post dl it has 256 best case hit ratio becomes
    99.98
  • Large number of SAs enables more tables to share
    in benefit

20
Questions
?
  • http//www.greenfieldtech.com/downloads.shtml
Write a Comment
User Comments (0)
About PowerShow.com