<Insert Picture Here> Oracle Database 11g Client Oracle Open World - November 2007 Bill Hodak Sr. Product Manager Oracle Corporation Kevin Closson Performance Architect Oracle Corporation
Introduction Networked-Attached Storage (NAS) Significant adoption in enterprise data centers Less expensive than Storage Area Networks (SAN) More high availability features than Direct Attached Storage (DAS) Costs continue to decrease Network File System (NFS) Shared file system for accessing NAS systems over TCP/IP Created by Sun Microsystems in 1985 NFS Client is embedded in the operating system kernel Widely used for storing images, office files, audio/video files, etc 2
NFS for Database Storage NFS and NAS are attractive for Database storage Storage Virtualization Fast deployment Shared file system Grid Computing Low cost of ownership Why a limited adoption of NAS for Databases? Performance of NFS doesn t match other file systems Operating system NFS client software is not optimized for database I/O access patterns Operating system NFS client demands high system CPU utilization Management Complexities Configuration varies across platforms Complex tuning parameters 3
Client Introducing Oracle Client New feature of Oracle Database 11g NFS Client (V3) embedded in the Oracle Database kernel Improves performance of NFS storage Increases high availability of NFS storage Optimizes scalability of NFS storage Vastly reduces system CPU resource utilization Eliminates NFS administrative complexities Consistent configuration across platforms (even Microsoft Windows) 4
Performance, Scalability, and HA Client improves performance of NFS storage Direct I/O Bypasses OS Caches Eliminates OS write-ordering locks Reduces system CPU utilization Asynchronous I/O Client increases high availability and optimizes scalability of NFS storage Supports up to 4 parallel network paths to NAS system Automatically load balances across all available network paths (No extra configuration needed!) Resends packets over available network paths in the event of a network path failure 5
Cost Savings and Administration Client decreases database storage costs: Simple Ethernet for Storage Connectivity Eliminates Need for Expensive: Redundant host bust adaptors (HBA) Fibre Channel switches Bonded network interfaces Client builds on the simplicity of NAS device administration: Standard NFS client implementation across all Oracle supported platforms NFS is now a viable option on platforms that don t natively support NFS, e.g. Windows Supports Real Application Cluster (RAC) database files automatically optimizes mount points for RAC No NIC Bonding Required! 6
Configuring the Client Sample OraNFStab File server: MyNFSServer1 path: 192.168.1.1 path: 192.168.1.2 path: 192.168.1.3 path: 192.168.1.4 export: /vol/oradata1 mount: /mnt/oradata1 Enable the Client ODM Library prompt> cd $ORACLE_HOME/lib prompt> mv libodm10libodm11.so libodm10libodm11.so_stub prompt> ln s libnfsodm10libnfsodm11.so libodm10libodm11.so 7
<Insert Picture Here> Performance Study 8
Performance Study Performance Study Objective: Compare the performance and scalability of Oracle Client with the traditional operating system kernel NFS client using both DSS and OLTP workloads. 9
Performance Study Overview Order Entry Application Customers Table 4 million rows 3 GB disk space Orders Table 6 million rows 2 GB disk space Line-Items Table 45 million rows 10 GB disk space Product Table 1 million rows 2 GB disk space Warehouse Table 10 million rows 10 GB disk space History Table 160 million rows 30 GB disk space 10
DSS Performance Study DSS Test Overview DSS System Configuration Enterprise Class NAS device 4 socket, dual-core x86_64 server Linux Operating System Oracle Database 11g 3 Gigabit Ethernet private, non-routable networks connected to NAS device DSS Workload Oracle Parallel Query Queries required 4 full scans of History table 640 million rows scanned 100 GB of physical I/O 11
DSS Performance Study Better Scalability with Client 350 300 MB/s 250 200 150 100 50 0 12
DSS Performance Study Better Scalability with Client 350 300 MB/s 250 200 223 MB/s 150 158 MB/s 100 50 0 13
DSS Performance Study Better Scalability with Client 350 300 329 MB/s MB/s 250 200 223 MB/s 150 158 MB/s 100 50 0 3 NICs 14
MB/s DSS Performance Study Better Scalability with Client 350 300 250 200 Where is the 3 NIC Result? allows multiple NICs without NIC- Bonding permits combinations of NIC configurations (PCI, motherboard) Regular NFS requires NIC-Bonding NIC-Bonding typically requires the same NIC configuration and often the same NIC model 223 MB/s 329 MB/s 150 158 MB/s 100 50 0 3 NICs 15
DSS Performance Study Better Scalability with Client MB/s 350 300 250 200 Near Linear Scalability 223 MB/s 329 MB/s 150 158 MB/s 100 50 0 3 NICs 16
DSS Performance Study Better Resource Utilization with Client 40 350 300 32% 329 MB/s 30 MB/s 250 200 9% 223 MB/s 20 %CPU 150 158 MB/s 100 10 50 0 3 NICs 17
DSS Performance Study Better Resource Utilization with Client 40 350 300 32% 23% 329 MB/s 30 MB/s 250 200 9% 8% 223 MB/s 20 %CPU 150 158 MB/s 100 10 50 0 3 NICs 18
DSS Performance Study Better Resource Utilization with Client 37% 40 350 300 32% 23% 329 MB/s 30 MB/s 250 200 9% 8% 223 MB/s 20 %CPU 150 158 MB/s 100 10 50 0 3 NICs 19
DSS Performance Study Better Resource Utilization with Client 37% 40 350 300 32% 23% 329 MB/s 329 MB/s 30 MB/s 250 200 9% 8% 223 MB/s 223 MB/s 20 %CPU 150 100 158 MB/s 10 50 0 3 NICs 20
OLTP Performance Study OLTP Test Overview OLTP Test System Enterprise Class NAS device 2 socket, dual-core x86 server Linux Operating System Oracle Database 11g Single Gigabit Ethernet private, non-routable networks connected to NAS device OLTP Workload Pro*C Application Simulated Order Entry Application Server load average of 20 21
OLTP Performance Study OLTP Throughput DNFS: > 10% more throughput Transactions per Minute 8000 7000 6000 5000 4000 3000 2000 1000 6,884 tpm 7,637 tpm 0 22
OLTP Performance Study OLTP: Physical I/O DNFS: > 10% more I/O per second 4000 Operations per Second 3500 3000 2500 2000 1500 1000 500 3,296 3,588 1,916 2,184 0 Reads Writes 23
Conclusion The tight integration of Oracle Client with the Oracle software: Improves I/O Performance and Throughput Reduces System Resource Utilization Increases High Availability Simplifies NFS Administration and Management Reduces Costs by Eliminating Expensive Networking Components Performance Study Results: Validate Increased Throughput of Client Compared to Kernel NFS Clients Validate Decreased Resource Utilization of Client Compared to Kernel NFS Clients Proved that both OLTP and DSS workloads benefit from Client EC2 24
25
26