oracle rdb8 with openvms galaxy - download.oracle.com · title: oracle rdb8 with openvms galaxy...
TRANSCRIPT
Copyright © 2000-2001, Oracle CorporationApril 2, 2002
http://www.oracle.com/rdb
Oracle Rdb onOpenVMS Galaxy
Norman Lastovica
Oracle Rdb [email protected]
www.oracle.com/rdb
2Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Agenda
Existing performance implications– Database access in cluster– SMP scaling
Recent performance enhancementsRdb’s Galaxy implementation
3Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Rdb at the High End
Database servers pushing technology limits– Applications utilizing more disk space, more I/O,
more memory and more CPU– Configurations limited by accessible CPU power and
I/O capability
4Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Cluster Performance Cost
Application performance suffers vs. running on single nodeRemote locking overheadInability to take advantage of
– Internal optimizations– Global buffer effectiveness– Rdb Performance Features
i Row Cachei Page Transfer Via Memory
5Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Distributed Locking CostsGS140 - CI Interconnect (estimated)
Re moteENQ/DEQ
Re mote Conve rt
Loc a l ENQ/DEQ
Loc al Conve rt
0 20 40 60 80 100
Elapsed Time (microseconds)
Re moteENQ/DEQ
Re mote Conve rt
Loc a l ENQ/DEQ
Loc al Conve rt
NetworkRemote CPULocal CPU
6Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Cluster Access with Database Open on Single Node
ApplicationFront-endServers…
AlphaServer
Database access via Rdb remote serverfrom Standby to Master
AlphaServerAlphaServer
Hot Standby StandbyDatabaseDatabase
7Copyright © 2000-2001, Oracle CorporationApril 2, 2002
SMP System LimitationsSome Rdb database servers are effectively limited in SMP system
– Additional CPUs yield no performance improvement
“MPSYNC” / Spinlock contention– CPU time spent waiting for another CPU– Lost CPU resources - wasted potential– Significant OpenVMS V7.3 improvements in this area
(dedicated lock manager, SCSI/Fibre fast path, etc)
Primary CPU handles cluster, remote lock & I/O traffic
– Primary processor saturation– Fast Path provides help in some cases
8Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Application OLTP SimulatorReplicate behavior of customer application
– Gathered and analyzed RMU /SHOW STATISTICS and MONITOR binary datai >90% R/O transactionsi Row Cache; little actual database I/O
– GS140 / 8 CPU / EV6 / 8gb / VMS V7.2-1
Program simulating actual production system database access patterns
– Lookups / Modifies per transaction– Averaged think times– Variable workload
Nearly duplicates actual production statistics
9Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Result 1Root Object Sharing
Control structure object sharing optimizations when “NUMBER OF CLUSTER NODES IS 1”Significant performance improvement for high read-only transaction ratesReduced locking activity and root file I/O for frequently accessed objects
i SEQBLKi TSNBLK
Introduced with Rdb V7.0.4
10Copyright © 2000-2001, Oracle CorporationApril 2, 2002
0
20
40
60
80
100
120
140
160
180
100
200
300
400
500
600
700
800
900
1000
1100
Users
Tran
sact
ions
Per
Sec
ond
7.0.4
7.0.3.1
Rdb 7.0.4 Throughput Increase...
11Copyright © 2000-2001, Oracle CorporationApril 2, 2002
0
20
40
60
80
100
120
140
160
180
100
200
300
400
500
600
700
800
900
1000
1100
Users
Tran
sact
ions
Per
Sec
ond
7.0.4
7.0.3.1
7.0.4 idle
7.0.3.1 idle
...Idle Time Doubled
12Copyright © 2000-2001, Oracle CorporationApril 2, 2002
0
20
40
60
80
100
120
140
160
180
100
200
300
400
500
600
700
800
900
1000
1100
Users
Tran
sact
ions
Per
Sec
ond
7.0.4
7.0.3.1
7.0.4 mps
7.0.3.1 mps
...MPSYNC Halved
60% MPSYNC = 5 CPUs wasted!
13Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Result 2Read-Only Txn Start/Commit
Read-write start/commit optimizations for read-onlyReduced TSNBLK I/O and locking for TSNBLKs in high contention situationsLab measured > 8x improvement transaction start/commit throughputCustomer measured 5x transaction duration improvement in productionIntroduced with Rdb V7.0.5
0.00.20.40.60.81.01.21.41.6
Seco
nds
Average Transaction Duration
7.0.47.0.5
14Copyright © 2000-2001, Oracle CorporationApril 2, 2002
However...
Need more than CPUs & MemoryNeed more primary CPUs
– Network I/O– Non-fast path I/O
Nicer to be able to run in cluster– Upgrades– Isolation– Node failure protection
15Copyright © 2000-2001, Oracle CorporationApril 2, 2002
What is OpenVMS Galaxy?
Software architecture Multiple OpenVMS instances execute cooperatively in single computerDynamic resource allocation between instancesMemory shared between instancesCapable of “Cluster in a box”
– Move from existing single system environment
16Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Galaxy Overview
Galaxy Software ArchitectureGalaxy Software Architecture
Instance A Private Memory
Instance A
CPUs0 1 2 3
CPUsCPUs0 1 2 30 1 2 3 I/O
CPUs4 5 6CPUsCPUs
4 5 64 5 6 I/O
CPUs7 8 9CPUsCPUs7 8 97 8 9 I/O
Shared MemoryInstance B
Private MemoryInstance C
Private Memory
Instance CInstance B
17Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Each OpenVMS Instance...
1 or more CPUs1 or more I/O adaptersPrivate memoryAccess to “Galactic” shared memoryBoot/Shutdown independently
18Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Rdb 7.1 & Galaxy
Natural growth of existing Rdb cluster sharing– Galactic shared memory for
i Global Buffersi Row Cachesi Shared database objects
Leverage Galaxy technology for performance– Greater effective scaling – Reduced locking and I/O– More Primary CPUs
High-end database server
19Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Rdb Sharing in GalaxyEach Instance has
– Rdb Monitor (RDMMON)– Database Recovery Server (RDMDBR)– AIJ Buffers and AIJ Log Server (RDMALS)– “NODGBL” global sections
i Statistics
Shared– “TROOT” global sections– Database root objects– Global buffers– Row caches & Row Cache Server (RDMRCS)
20Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Setting up Rdb and Galaxy
No application changes requiredConfigure Galaxy environment
– Enough shared memory for existing database global sections
Set database parameters– NUMBER OF CLUSTER NODES
– GALAXYOpen database on each instance
21Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Operational Considerations
All instances must use identical Rdb softwareMany RMU operations are per-instance
– SHOW STATISTICS
– SHOW USERS
– Monitor/Server Start & Stop
Database Open / Close on each instance– RCS started on first instance to open database– Must close database last on instance with RCS– Use manual open mode
DBR or RCS failure shuts down database
22Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Rdb Galaxy Advantages vs.Traditional Clustering
Significantly less root I/O, locking & blocking ASTs– Shared TROOT objects– Much lower overhead for R/O transaction start/stop– Reduced spinlock (MPSYNC) contention
Reduced database I/O & page locking– Row caches shared among instances– Global buffers shared among instances
Most rapid cluster interconnect– VMS uses shared memory for node-node SCS traffic
Row cache runs in cluster!
23Copyright © 2000-2001, Oracle CorporationApril 2, 2002
RMU/SHOW SYSTEM Example
CLICK$ RMU/SHOW SYSTEM
database DGA5:[DB]RND.RDB;1- opened 18-APR-2001 14:59:32.38 (elapsed 0 01:01:47)- current after-image journal file is DGA5:[DB]RND.AIJ;1- global buffer count is 6911; 5105 global buffers free- maximum global buffer count per user is 86- global section resides in OpenVMS Galaxy shared memory- all database users use the same copy of shared memory- 11 active database users on this node- database is also open on the following node:- BOING as monitor ID 2 - Galaxy
24Copyright © 2000-2001, Oracle CorporationApril 2, 2002
More availability, Performance and Scalability with Rdb & Galaxy
1gbGlobal Buffer PoolGlobal Buffer PoolShared Database StructuresShared Database Structures
WLDFR18 CPU4gb private
48gb shared memory
WLDFR28 CPU4gb private
WLDFR38 CPU4gb private
WLDFR48 CPU4gb private
GS3
20
Row CachesRow Caches
FibreChannel/HSG80 Disk InterconnectHot Standby
Database
25Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Mixing Galaxy and non-Galaxy
Both Galaxy and non-Galaxy nodes in cluster can access databaseNot all features available in this environment
– Row Cache– Page Transfer Via Memory– Some TROOT optimizations– All require direct access to common memory
26Copyright © 2000-2001, Oracle CorporationApril 2, 2002
Availability
Oracle Rdb – Oracle Rdb V7.1 ~ Q3 CY2001– Oracle Rdb V7.1.0.1 ~ Q4 CY2001– Oracle Rdb V7.1.0.2 ~ Q1 CY2002– Rdb’s Phase I of Galaxy support
OpenVMS Galaxy– OpenVMS V7.2 ~ Q1 CY1999– OpenVMS V7.3 ~ Q2 CY2001
http://www.oracle.com/rdb