Lessons Learned while Pushing the Limits of SecureFile LOBs. by Jacco H. Landlust. zondag 3 maart 13



Similar documents
Implementing SecureFile lobs with WebCenter Content, Lessons learned while pushing the limits of SecureFile lobs

Oracle DBA Course Contents

Oracle Database 11g: SecureFiles. An Oracle White Paper November 2009

Oracle Database 11 g Performance Tuning. Recipes. Sam R. Alapati Darl Kuhn Bill Padfield. Apress*

Oracle Database 10g: Administration Workshop II Release 2

Oracle 11g Database Administration

Ultimate Guide to Oracle Storage

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Oracle Database 12c: Performance Management and Tuning NEW

Oracle Database 11g R1 & R2: New Features for Administrators

StreamServe Persuasion SP5 Oracle Database

Oracle Database 10g: New Features for Administrators

D12C-AIU Oracle Database 12c: Admin, Install and Upgrade Accelerated NEW

About the Author About the Technical Contributors About the Technical Reviewers Acknowledgments. How to Use This Book

Oracle server: An Oracle server includes an Oracle Instance and an Oracle database.

Oracle Architecture. Overview

Program Agenda. Safe Harbor Statement. What are SecureFiles? Performance. Features DBFS. Internals. Wrap Up 11/22/2014

Oracle Database 10g: Performance Tuning 12-1

Deployment patterns for Fusion Middleware. a best practice session by Simon Haslam & Jacco H. Landlust

Agenda. Enterprise Application Performance Factors. Current form of Enterprise Applications. Factors to Application Performance.

Inge Os Sales Consulting Manager Oracle Norway

Oracle Database 12c: Admin, Install and Upgrade Accelerated

Oracle and Sybase, Concepts and Contrasts

Direct NFS - Design considerations for next-gen NAS appliances optimized for database workloads Akshay Shah Gurmeet Goindi Oracle

Oracle Database 12c: Administration Workshop NEW

Boost Your Database Performance 10x with Oracle SecureFiles

Oracle Database 11g: Administration Workshop II DBA Release 2

Oracle Database 11g: New Features for Administrators

An Oracle White Paper January Advanced Compression with Oracle Database 11g

Oracle Database 12c: Administration Workshop NEW. Duration: 5 Days. What you will learn

Boost SQL Server Performance Buffer Pool Extensions & Delayed Durability

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-

Oracle Database 10g. Page # The Self-Managing Database. Agenda. Benoit Dageville Oracle Corporation benoit.dageville@oracle.com

Best Practices for Using MySQL in the Cloud

Configuring Backup Settings Configuring and Managing Persistent Settings for RMAN Configuring Autobackup of Control File Backup optimization

The Revival of Direct Attached Storage for Oracle Databases

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Administration Workshop II - LVC. 5 Jours [35 Heures]

<Insert Picture Here> RMAN Configuration and Performance Tuning Best Practices

Oracle Database 11g: Administration Workshop II

<Insert Picture Here>

Oracle Database 11g: Administration And Backup & Recover

all you need to know about Node Manager for by Jacco H. Landlust zaterdag 8 december 12

Oracle Database 11g: Administration Workshop II DBA Release 2

- An Oracle9i RAC Solution

1. This lesson introduces the Performance Tuning course objectives and agenda

ORACLE INSTANCE ARCHITECTURE

Why Not Oracle Standard Edition? A Dbvisit White Paper By Anton Els

Performance Baseline of Hitachi Data Systems HUS VM All Flash Array for Oracle

OLTP Meets Bigdata, Challenges, Options, and Future Saibabu Devabhaktuni

Oracle Database 11g: Administration Workshop II Release 2

ORACLE 11g RDBMS Features: Oracle Total Recall Oracle FLEXCUBE Enterprise Limits and Collateral Management Release 12.1 [December] [2014]

1Z0-117 Oracle Database 11g Release 2: SQL Tuning. Oracle

<Insert Picture Here> Oracle Database Directions Fred Louis Principal Sales Consultant Ohio Valley Region

High Performance Oracle RAC Clusters A study of SSD SAN storage A Datapipe White Paper

Monitoreo de Bases de Datos

FIFTH EDITION. Oracle Essentials. Rick Greenwald, Robert Stackowiak, and. Jonathan Stern O'REILLY" Tokyo. Koln Sebastopol. Cambridge Farnham.

MySQL Cluster Deployment Best Practices

Oracle Total Recall with Oracle Database 11g Release 2

Oracle Database 11g: Performance Tuning DBA Release 2

Safe Harbor Statement

COURCE TITLE DURATION. Oracle Database 11g: Administration Workshop I

Oracle EXAM - 1Z Oracle Database 11g Release 2: SQL Tuning. Buy Full Product.

WebLogic on Oracle Database Appliance: Combining High Availability and Simplicity

INTRODUCTION ADVANTAGES OF RUNNING ORACLE 11G ON WINDOWS. Edward Whalen, Performance Tuning Corporation

CA ARCserve r Data Deduplication Frequently Asked Questions

ORACLE CORE DBA ONLINE TRAINING

Upcoming: Oracle Database 12.1 Support Update for Linux on System z

9/26/2011. What is Virtualization? What are the different types of virtualization.

Oracle Architecture, Concepts & Facilities

Google File System. Web and scalability

Many DBA s are being required to support multiple DBMS s on multiple platforms. Many IT shops today are running a combination of Oracle and DB2 which

Oracle Database 11g: New Features for Administrators DBA Release 2

Configuring Backup Settings. Copyright 2009, Oracle. All rights reserved.

ORACLE DATABASE: ADMINISTRATION WORKSHOP I

Module 3: Instance Architecture Part 1

Oracle Database Auditing Performance Guidelines

Outline. Failure Types

D78850GC10. Oracle Database 12c Backup and Recovery Workshop. Summary. Introduction. Prerequisites

<Insert Picture Here> Refreshing Your Data Protection Environment with Next-Generation Architectures

Rob Zoeteweij Zoeteweij Consulting

Oracle Primavera P6 Enterprise Project Portfolio Management Performance and Sizing Guide. An Oracle White Paper October 2010

Performance Tuning for Oracle WebCenter Content 11g: Strategies & Tactics CHRIS ROTHWELL & PAUL HEUPEL FISHBOWL SOLUTIONS, INC.

11. Oracle Recovery Manager Overview and Configuration.

Managing your Red Hat Enterprise Linux guests with RHN Satellite

Basic Tuning Tools Monitoring tools overview Enterprise Manager V$ Views, Statistics and Metrics Wait Events

EMC Backup and Recovery for Oracle Database 11g Without Hot Backup Mode using DNFS and Automatic Storage Management on Fibre Channel

Proactive database performance management

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Performance Tuning DBA Release 2. 5 Jours [35 Heures]

Oracle 11g New Features - OCP Upgrade Exam

<Insert Picture Here> Oracle Cloud Storage. Morana Kobal Butković Principal Sales Consultant Oracle Hrvatska

High Availability Databases based on Oracle 10g RAC on Linux

ORACLE DATABASE 11G: COMPLETE

PERFORMANCE TUNING ORACLE RAC ON LINUX

Oracle Redo Log Performance Issues and Solutions

Tushar Joshi Turtle Networks Ltd

SharePoint 2010 Performance and Capacity Planning Best Practices

Contents Introduction... 5 Deployment Considerations... 9 Deployment Architectures... 11

Transcription:

Lessons Learned while Pushing the Limits of SecureFile LOBs @ by Jacco H. Landlust

Jacco H. Landlust 36 years old Deventer, the Netherlands 2

Jacco H. Landlust / idba Degree in Business Informatics and Economics Architecture, Clustering, High Availability, Performance & Management Oracle since 2000 Oracle ACE since 2006 Independent Red Stack Administrator since 2010 3

This is not a SecureFile LOB overview presentation! 4

Agenda WebCenter Content / UCM Short introduction of SecureFile LOBs Test some SecureFile LOB features Q & A 5

WebCenter Content 6

10g configuration 35k online users Concurrency issues: Lots of row lock contention 40 million unique documents ~= 24 TB Metadata and content separated, content was stored on GPFS Fixed in 11g One database with SecureFile LOBs 7

Introducing SecureFile LOBs SecureFile LOBs eliminate the distinction between structured and unstructured content storage. SecureFile LOBs is a new re-architecture featuring entirely new disk formats, network protocol, space management, redo and undo formats, buffer caching, and I/O subsystem. SecureFile LOBs delivers substantially improved performance along with optimized storage for unstructured data inside the Oracle database. 8

Introducing SecureFile LOBs Tablespaces must be managed by ASSM Easier management, lesser user-tuned parameters One database parameter (plus some hidden ones) Lobs from Oracle Database 10g and prior releases are still supported and will now be referred to as BasicFiles. Certain features require extra licenses (deduplication, compression, encryption) 9

Test setup today VirtualBox VM 2 cores, 4 GB RAM, 3 virtual disks (OS, Software, ASM) ASM disk is fully allocated Oracle Enterprise Linux 5.8 kernel 2.6.39-300.17.3.el5uek No thin provision to minimize VM overhead Oracle RDBMS 11.2.0.2.6 with ASM external redundancy Had to upgrade to 11.2.0.3 because of bug 13775960 - "enqueue hash chains" latch contention for delete/insert 10 Securefile workload

Database AL32UTF8 MEMORY_TARGET=2G In archivelog mode Mandatory by Fusion Middleware installers Automatic unless 11

WebCenter repository By default smallfile tablespaces By default 8k blocksize By default basicfile LOB FileStorage table created from within WebCenter Content Replace with SecureFile LOB Replace with bigfile tablespace Choose based on content (typically 8k turns out okay) 12

ASM: compatible.rdbms Default value Redundancy compatible.rdbms=10.1 compatible.rdbms=11.1 External 16 TB 140 PB Normal 5.8 TB 23 PB High 3.9 TB 15 PB 13

ORA-15095: reached maximum ASM file size (16384 GB) 14

ORA-600: internal error code, arguments: [krccfl_bitmap_too_small], [19], [4294340465], [4], [4366], [4366], [] Only when using block change tracking 15

redo_log & log_buffer Set log_buffer to maximum (256MB on 64-bit Linux) to handle peak/burst load Default redo_log files too small for high concurrency and lots of data loading, enlarge to at least 1GB with 3 logfiles Only penalty seems small memory overhead 1 GB is arbitrary number, Monitor log file sync wait events 16

Partitioning LOB segment may differ from table Similar to regular tables / BasicFile LOBs All LOB segment partitions must have same blocksize Can ease backup & recovery strategy, e.g. by interval partition When moving subpartition on interval partitioned table: ORA-00600: internal error code, arguments: [kkpod nextfrag], [10], [20], [1], [1], [93891], [], [], [], [], [], [] 17

Investigating SecureFile LOB features 18

Shared IO Pool Used for large I/O operations on SecureFile Lobs Shared memory segment If Shared IO Pool is exhausted, memory is claimed from PGA Automatic Shared Memory Management required Can be monitored from v$securefile_timer 19

Demo: Shared IO Pool 20

Caching CACHE - LOB data is placed in the buffer cache CACHE READS - LOB data in only placed in buffer cache during read operation, not write operations NOCACHE - LOB data is not placed in the buffer cache CACHE and NOLOGGING not supported as combination NOCACHE when lots of documents are stored but not often retrieved For read consistency 21

Space Management SMCO background process Wnnn processes are SMCO slaves Tablespace-level space (extent) pre-allocation SecureFile LOB segment pre-allocation SecureFile LOB segment space reclamation 22 Sessions don s have to wait for space allocation / deallocation operations, because this is proactivly done

Demo: Space Management 23

Small extents Minimal extent size is 5 blocks (8Kb blocksize = 40Kb) ORA-60019: Creating initial extent of size 5 in tablespace of extent size 14 So minimum extent size is 14 blocks (8Kb blocksize = 112Kb) ORA-00600: internal error code, arguments: [ktsladdfcb-bsz], [3], [], [], [], [], [], [], [], [], [], [] Real minimum extent size for SecureFile LOBs = (14 * 8Kb) + 1 = 112Kb + 1 = 114689 24

high VKTM CPU usage Virtual keeper of time provides wall-clock time and reference time for other sessions/processes Gets system time every 10 ms Process priority tunable by modifying _high_priority_processes parameter _high_priority_processes = [VKTM LMS* LGWR] 25 VKTM LMS* by default on single instance

Bunch of SR s SR 3-5003949261: Heavy Library cache lock contention on 11.2.0.2 RAC database --- SR 3-5249785361: High average times on gc waits --- SR 3-5312761310: enq: HW - contention excessive avg. wait time in rac4w --- SR 3-5255677303: Process waiting on disk file i/o operation and blocking 30 sessions SR 3-4963615411: 11.2.0.2 RAC database: Adding disks to Diskgroup, causes enq HW:Contention on the database Inserts --- SR 3-5128746431: LOB insert causing high "enq: HW - contention" waits --- SR 3-5257318187: NAR : Child SR for RAC Performance 26

Suggested changes by support 1) Increase db_writer_processes from 2 to 4 2) Reduce the "db_multiblock_read_count to 8 3) Set _buffer_busy_wait_timeout=2 (= 20 ms) due to Bug 11930616 - sporadic buffer busy waits 4) Suggestion to implement jumbo frames 4) Apply patches: -- Patch 9801919: ENQ: HW - CONTENTION WAIT TIME IS VERY LONG Patch 9671271 - All active instances used in calculation of dop when parallel_force_local=true / High version count on PX_MISMATCH 5) Bug 13698526 : 11.2.0.2 RAC DATABASE: ADDING DISKS TO DISKGROUP, CAUSES ENQ HW:CONTENTION --> has no update by ASM development team. 6) Tune log file sync -- probably seperate diskgroup for redo and adjust the storage FA ports to assign less busy ports. 7) Trying to create partition (qespccreatepartition) which explains why we need library cache lock in exclusive mode. Other processes are waiting for file resize - kfncslavefileresize in stack. Slave process spawned dynamically by SMCO (Smco (Space Management Coordinator) And Autoextend On Datafiles (Doc ID 743773.1)) 27

SMCO: pre-allocate extent If available spaces in tablespace / datafile is less than 5 % Preallocate 5% space until max 90% of tablespace maxsize Preallocate based on autoextent next size example: 50M preallocation = ceil(50m / 1M) = 50 operations what if datafile is 10TB? 10TB * 5% = 500GB ceil(500g / 1M) = 512000 operations 28

SMCO: pre-allocate extent What if my users insert would trigger an extent creation and SMCO starts pre-allocating? enq: TX contention until SMCO is finished pre-allocating 29

SMCO: pre-allocate extent - AUTOEXTEND Grows To Full Size Without Reason [ID 1459097.1] - Wnnn processes consuming high CPU [ID 1492880.1] - Bug 11710238 - Instance crash due to ORA-600 [1433] for SMCO messages [ID 11710238.8] - SMCO (Space Management Coordinator) For Autoextend On Datafiles And How To Disable/Enable [ID 743773.1] 30

Solution? Configure _enable_space_preallaction, but has unintended side effects Pre-allocate space manually so SMCO doesn t kick in Can be automated 31

Filesystem_like_logging Replaces nologging for SecureFile LOBs SecureFile LOBs only logs metadata similar to metadata journaling of file systems Even with nologging operation some redo is created Ensures that data is recoverable after server failure force logging overrides filesystem_like_logging By reading SecureFile LOB index 32

Demo: filesystem_like_logging 33

Block types for SecureFiles 1. NGLOB: Lob Extent Header 2.NGLOB: Segment Header - Second block of the first extent - Highwater Mark, Extent Map, Administration of Hash Bucket Blocks 3.NGLOB: Extent Map 4.NGLOB: Committed Free Space 5.NGLOB: Persistent Undo 6.NGLOB: Hash Buckets variable chunk-size - 7 Buckets for chunks of different sizes: 2k to 32K, 32k to 64k, 64k to 128k, 128k to 256k, 256k to 512k, 512k to 1m, 1m to 64m 34

Compression SecureFile compression!= table compression Oracle automatically detects if data is compressible NOCOMPRESS COMPRESS MEDIUM COMPRESS HIGH For partitioned tables, compression occurs at partition level Cost versus benefit Can configure compression level per partition 35

Demo: Compression 36

Deduplication Eliminate multiple redundant copies of the same data Duplicate detection does not span across partitions or subpartitions Oracle uses a secure hash index to detect duplicate SecureFile data Stored in same tablespace as the LOB segments 37

Demo: Deduplication 8_deduplication_rate.sql 9_deduplication_cost.sql rerun 9 with complete oracle docs to show that more files means slower dedup 38

Summary ASM, redo logs, log_buffer, db_securefile Setup your database with care Test and analyze licensable features carefully Develop a sizing strategy & preallocate space yourself Monitor your production environment carefully block size, SMCO pre-allocation compression & deduplication are no always usefull 39

Q & A 40