You are on page 1of 45

Optimizing

Oracle/Siebel Apps
for the Sun
Microsystems CMT
platform
Khader Mohiuddin
Technical Product Manager
Oracle-Sun Alliance
Sun Microsystems Inc.,

Sun Proprietary/Confidential: Internal Use Only


Agenda
• Sun-Oracle Alliance
• Siebel Architecture Suitability for T1
• Oracle suitability for T1
• What is T1
• Performance benchmarks
• Optimizations
• Resources
• Q&A

Sun Proprietary/Confidential: Internal Use Only


Sun and Oracle: Two Decades of
Visionary Alignment
Network First SPARC
File Server Solaris
Sun System on x86 Sun StorageTek
Work (NFS) Sun x64 Sun's X64
Station Servers Enterprise
Libert
y Sun UltraSPARC Systems
T1 Processor
Allianc and Servers
e
Projec
t
1980 1985 1990 1995 2000 2002 2
003 2004 2005 2006
1980
Oracle 5.0 Oracle Oracle Oracle Oracle eBus Oracle on Oracle Oracle
and 5.1 for Massively Internet- 8i with Suite Cert. AMD 64/ Project reduces
Client/Serv Parallel Centric JVM Configs on Solaris Fusion apps multi-core
er Processin Business Sun x86 to
g (MPP) Vision; Oracle 9i be Java- pricing
Business RAC based
Compone Certified
nts for Configs Oracle
Java Oracle selects
Oracle 9i 10g Solaris 10 as
with J2EE its preferred
Oracle 64-bit App
Java Developmen
Developm t
ent Tools Environment
New Oracle
pricing
Sun Proprietary/Confidential: Internal Use Only structure
Today’s IT Challenges
• Provide a greater variety of services
• Deploy reliable, high performance
database solutions
• Use fewer resources
• Stay within constrained capital and
expense budgets

Sun Proprietary/Confidential: Internal Use Only


Solaris10 for Siebel/Oracle

• Consolidate several servers into few Sun


Fire T2000's
• Consolidate multiple Siebel Enterprises
into a single Enterprise.
• Improve availability and scalability of the
setup
• Deployment flexibility and higher
utilization – since Siebel and Oracle are
certified with Solaris 10 Containers
• UltraSPARC IV+ 1.8ghz provides the power
required for backend Oracle db
Sun Proprietary/Confidential: Internal Use Only
Siebel Architecture best fit for Sun Fire T2000
(Niagara)
• Siebel CRM application is a multi-threaded,
multi-process and multi-instance
commercial application.
• Sun's New processor UltraSPARC T1 can
run upto 32 threads in parallel with
improved memory capabilities
• Siebel's highly threaded architecture
scales very well, taking advantage of these
characteristics of the chip.

Sun Proprietary/Confidential: Internal Use Only


The Sun Server Family
Diagonal
Sun Fire™ Servers with Scaling
UltraSPARC® Processors

Vertical
Sun Fire Servers with UltraSPARC or
Scaling
AMD Opteron™ Processors

Sun Fire Servers with UltraSPARC T1


or AMD Opteron Processors

Horizontal Scaling

Sun Proprietary/Confidential: Internal Use Only


The Right Platform for the
Right Workload
High Throughput, More Multithreaded

Sun Servers with


UltraSPARC T1
Sun Servers with
Processors
UltraSPARC
Processors
More Data More Network

Sun Servers with


AMD Opteron
Processors

High Frequency, Clock Speed

Sun Proprietary/Confidential: Internal Use Only


Multi-Channel Optimized
Architecture Siebel On Premise Applications 3rd Party Open
Siebel Siebel Siebel
Mobile Multiple Client Device Support Integration
Teller Portal
Applications Applications Framework
Local DB
Sync

Web Server
Development
Environment
Siebel Application Server Siebel Business
Analytics Server
Siebel Tools Presentatio
User Interface Services n Services -
BI
Siebel Bus. Process Modeling &
Repository Business Logic Layer
Calculation
and Core Service
Services - BI
EAI Data Access
UAN Data Layer Services
Services - BI

Federated Data Sources


Siebel Relationship
Universal SAP Oracle PSFT OLTP ETL Management
Customer / Customer
Master OLTP JD ETL Enterprise
Legacy
Edwards Warehouse

Sun Proprietary/Confidential: Internal Use Only


Siebel-Oracle Logical view

Sun Proprietary/Confidential: Internal Use Only


Topolo gy Diagram for 8000 Oracle -Siebel Users

Loadrunner    Web servers  Siebel Gateway   Siebel App servers  Database Servers 


Generators  SF V240   SF V24 0 
SF V65x /V40z  

SF E2900  

SF V890 Panther  

SF V490  

SF V440  

Sun StorEdge 
SE 3510 
SF T 2000  
Niagara  

Sun Proprietary/Confidential: Internal Use Only


Topology Diagram for 12,500 concur rent Siebel users

Loadrunner    Web servers   Siebel Gateway  


SF V240  
Siebel App servers   Oracle DB server  
Generators   SF V240  
SF V65x /V40z  

SF 890 (Panther)  

SF E2900  

SF E2900  

SF V490  

SF V440  

Sun StorEdge  
SE 3510  
SF T2000  
Niagara  

Sun Proprietary/Confidential: Internal Use Only


Siebel 12,500 user benchmark

6500
6000 5892
5670
5500
5000
4500 4500
4100
4000
#Vusers

3500
3000
2500 2567
2103 2150
2000
1750
1500
1000
500
0

v490 T2000 v890+ E2900


Server Type

Total vusers from benchmark Projected vusers at 100% load


Sun Proprietary/Confidential: Internal Use Only
Siebel 12,500 user benchmark
$$/User
$48.14
50
$36.04
40

30 $20.19
$$
20 $10.52

10

0
v490 T2000 v890+ E2900
$$/User 36.04 10.52 20.19 48.14
Server Type

$$/User

Sun Proprietary/Confidential: Internal Use Only


Siebel Performance on Sun's UltraSPARC T1
Processor
Server #CPUs #Users Price $/ User
SunFireE2900(US-IV) 12 5670 $272,999.00 $48.15

SunFireT2000(US-T1) 1 2567 $27,010.00 $10.52

PurePerformance 2.2: 1

Price/ Performance 4.6: 1

Sun Proprietary/Confidential: Internal Use Only


UltraSPARC T1 at a Glance
• Solaris presents each of the hardware
strands as a processor ie 32 “cpus”
• UltraSPARC T1 only supported on Solaris
10
• UltraSPARC T1 is fully Sparc v7, v8 and v
binary compatible
• Each cycle a different hardware strand
scheduled on the pipeline in round robin
order. Stalled strands are switched out
and slot on the pipeline given to the next
strand automatically.
• No coherency, SMP UltraSPARC T1 not
Sun Proprietary/Confidential: Internal Use Only
Single Threading HURRY
Up to 85% Cycles Waiting for Memory UP AND
WAIT!

Single Threaded
Performance
Typical
Processor
Utilization:15–
Thread 25%
C M C M C M
T
Memory Latency Compute ime
The Power of CMT
Niagara
Processor
Single Threaded Chip Multi-
Performance
Utilization: Up to threaded
(CMT) Performance
85%
Thread
4 C M C M C M
Thread
3 C M C M C M
Thread
2 C M C M C M
Thread
1 C M C M C M
T
Memory Latency Compute ime

Introducing Niagara

• SPARC V9 DDR-2 DDR-2 DDR-2 DDR-2


implementation SDRAM SDRAM SDRAM SDRAM

• Up to eight 4-way
multi-
threaded cores for up
to L2$ L2$ L2$ L2$
32 simultaneous FPU
Xbar
threads
• All cores connected C1 C2 C3 C4 C5 C6 C7 C8
through a 134.4GB/s
crossbar switch
Sys I/F
• High-bandwidth 12- Buffer Switch
way associative 3MB Core
Level-2 cache on chip
• 4 DDR2 channels 1 of 8 Cores
BUS
(23GB/s)
Siebel Server Process Tuning
(Cont)
•Appearance of Siebel Server processes on
Solaris 10
PID USERNAME SIZE RSS STATE PRI
NICE TIME CPU PROCESS/NLWP
1880 pspp 504M 298M cpu14 28
0 0:00.00 10% siebmtshmw/69
1868 pspp 461M 125M sleep 58
0 0:00.00 2.5% siebmtshmw/61
1227 pspp 687M 516M cpu3 22
0 0:00.03 1.6% siebmtshmw/62
1751 pspp 630M 447M sleep 59
0 0:00.01 1.5% siebmtshmw/59
Sun Proprietary/Confidential: Internal Use Only
Takeaways of Application Testing
•Applications that already scale well on
SMP are taking good advantage of
Niagara
>Oracle, Siebel, DB2, Sybase ASE, Lotus, SAP,
BEA Weblogic, Reuters Kondor+, SunGaurd
Xamin.
•Recompilation is not needed
>All our tests have used existing binaries
•May need higher thread/process count
to achieve same throughput than US-IV
•Small, shared caches have not been
an issue Sun Proprietary/Confidential: Internal Use Only
Performance Tuning Process

Sun Proprietary/Confidential: Internal Use Only


A ‘Few’ Tune-ables
 Sun Storage tunables:
• Siebel tunables:  cfgsharedmodeusersdir  blocksize=64k  sys memsize=256MB
• max tasks  siebel_filesystem  cache=auto  cache memsize=1024MB
• min mt servers

 preloadsrf=true  mirror=auto  fc_topology=auto
max mt servers
• mw_gma_vaddr  maxshareddbconns mp_support=none  fc_speed=2Gb
MainWin Address Space  minshareddbconns  naca=off-rd_ahead=off  disk_scrubber=off
tunable  mintrxshareddbconns  recon_rate=med  ondg=befit
• anonuserpool  maxtrxshareddbconns  Solaris tunables:
• OSD_LATCH
 EAI-HTTP_drivercount
• OSD_NLATCH  set shmsys: * set rlim_fd_cur = 8192
• sessiontimeout
 ClientAdmin  shminfo_shmmax=0xffffffffffffffff  * set rlim_fd_max = 819
• DSrequestserver  FSMsrvr  shminfo_shmseg=200  set rlim_fd_cur=32768
• flushfreq  shminfo_shmmin=100  set rlim_fd_max=32768
• Sun Java Web Server  seminfo_semmni=4096  * for resonate gbic
tunables:  seminfo_semmns=12092  set ip:dohwcksum=0
• rqthrottle  tcp_conn_req_max_queu  seminfo_semmnu=4096
• listenq e  seminfo_semume=2500
• maxkeepaliveconnect  rlim_fd_max  seminfo_semopm=100
ions
• keepalivetimeout  rlim_fd_cur  seminfo_semmsl=500
• connqueuesize  sq_max_size  seminfo_semmap=4096
• keepalivequerymeant  tcp_conn_hash_size  msginfo_msgmax=16384
ime  msginfo_msgmnb=16384
• Oracle DB tunables:  db_domain=""  msginfo_msgmni=2200
• db_block_size=8192  db_name=oramst  msginfo_msgtql=2500
• db_cache_size=30485
76000  msginfo_msgssz=64
 msginfo_msgseg=32767
Sun Proprietary/Confidential: Internal Use Only
Siebel Servers Tuning
•The ratio of threads or users/process is
configured using the Siebel parameters:
>MinMTServers, MaxMTServers, Maxtasks
•Optimal users/OM ratios for Siebel 7.7 on
Solaris 10.

FINS – 110 users/OM

eChannel – 100 users/OM

Caution : Setting a very high users/OM
value may cause problems.

Improve performance by disabling
mprotect()

change param MemProtection=false for
Sun Proprietary/Confidential: Internal Use Only
Siebel Application Tuning Example:
Stack Size
•Graph showing the effect of process stack size on
total process size. Varies with workload carried by
the process.
3.72GB
Process size

64KB 1MB Unlimited


Stack size
Sun Proprietary/Confidential: Internal Use Only
Solaris Tuning Example: MTmalloc

•Effect of MTmalloc on CPU/mem


use (V440, V890, E2900).
•CPU benefit follows increase
103%in
concurrency. 89%
% Cost / Benefit

51%
35%
28%

0%
4 8 12
#CPUs CPU
Memory
Sun Proprietary/Confidential: Internal Use Only
Run 14% more Siebel on Solaris
• Multiple Page Size Support - A standard feature
available in Solaris 9 onwards gives
applications the ability to run with more
than one page size on the same OS.
• Improves application performance by reducing
page faults (dtlb misses)
• Reduce CPU utilization by 14%
• Default pagesize is 8KB for heap and stack on
Solaris, set this to 4MB
• MPSS helps Oracle performance as well.

Sun Proprietary/Confidential: Internal Use Only


Tuning Siebel Database (Oracle)
•Follow the 'SAME' methodology for disk
config and oracle datafiles placement.
•Take advantage of performance
features available in storage systems.
•Separate out Indices from Data, keep
objects with same extent sizes in the
same tablespace – this reduces disk
fragmentation.
•Use locally managed tablespaces
instead of traditional (dictionary
managed).
Sun Proprietary/Confidential: Internal Use Only
Tuning Siebel Database(Oracle)
•Use Siebel connection
multiplexing feature.
•Tune long running queries and get
back CPU.
•Use CBO – supported with
Oracle-Siebel applications.
•Size SGA and tune init.ora
parameters based on individual
load characteristics.
Sun Proprietary/Confidential: Internal Use Only
Storage Tuning Example: Zone Bit
Recording

86 MB/second

57 MB/second

Sun Proprietary/Confidential: Internal Use Only


US-IV+ provides exceptional Oracle
Database Performance
• With 8000 concurrent users and batch load of EAI Http adapter
the database server averaged 29% cpu utilization
• 1 x Sun Fire V890 Plus
> 8 x 1.5 Ghz UltraSPARC IV+ , 32 GB RAM
> Solaris 10,Oracle EE 9.2.0.6 - 64bit
> Sun StorEdge FC 3510 Storage Array with 4
trays of 12 @15k rpm 73 GB disks.

Sun Proprietary/Confidential: Internal Use Only


Performance Tuning Resources

•Sun
•Whitepaper -Title : Optimizing
Oracle-Siebel Applications for the
Sun™ Platform
• http://www.sun.com/third-
party/global/oracle
> Sun-Siebel Competency Center
> Send sizing request to: siebel_cc@sun.com
•Contact: soatc@sun.com
> On Sun-Partner Website http://
partner.sun.com/soatc
> On Oracle Internal website
Sun Proprietary/Confidential: Internal Use Only
Solaris Tools for Performance
Tuning & Diagnosis

•DTrace ( Solaris 10 onwards)-


Hotsos profiler, appworx
•pmap
•plimit - get size of running
process
•trapstat
•truss
•performance analyzer – memory
leak detection
Sun Proprietary/Confidential: Internal Use Only
SPARC System Roadmap
Today Rock

Data
Centric APL

UltraSPARC III UltraSPARC IV UltraSPARC


IV+

UltraSPARC Niagar
Network T1 a2
Centric

UltraSPARC UltraSPARC
IIIi IIIi+

Note: Roadmap reflects estimated


system delivery dates
Standard Configurations and
Pricing
Sun Fire T1000 Sun Fire T2000

•4 core 1.0GHz, $7,795


•6core $2,995 8GB, 2x73 GB
1.0GHz, 2GB
•6core •6 core 1.0GHz,
1.0GHz, 8GB, $4,995 8GB, 2x73 GB $9,895

1x80GB
•8core •8 core 1.0GHz,
1.0GHz, 8GB, 8GB, 2x73 GB
1x80GB $6,,995 $12,395

•8core
•8 core 1.0GHz,
1.0GHz, 16GB, 2x73 GB
16GB, $10,995
1x80GB $15,995

•8 core 1.2GHz,
32GB, 2x73 GB
Q&A
Khader.Mohiuddin@sun.com

Sun Proprietary/Confidential: Internal Use Only


Sun Proprietary/Confidential: Internal Use Only
Oracle Applications Users Group
(OAUG)
• THE users group for all Oracle E-Business Suite, PeopleSoft,
Siebel, Oracle Retail and Portal Software customers

• Networking opportunities with over 100,000 members worldwide

• Over 20,000 available white papers in the online OAUG


Conference Paper Database

• FREE online training every Tuesday for OAUG members

• Introductory FREE Web membership – sign up during Oracle


OpenWorld in the Oracle Users Group Pavilion

• Learn more about the OAUG in the Oracle Users Group Pavilion,
Moscone West, Lobby Level 2

Global Users. Global Solutions.


Backup slides
• To be used time permitting, based on
Questions from audience

Sun Proprietary/Confidential: Internal Use Only


Sun Oracle 10g Grid Reference
Architecture
Application
Management Servers
Server Terminal
Console

Database
Servers

Storage

A high performance, highly available


database
infrastructure in a cost-effective grid
environment
Sun Proprietary/Confidential: Internal Use Only
Components from Sun and Oracle
• Sun servers
• Solaris™ 10 Operating System
• Sun StorageTek™ 3510 Fibre Channel
Array
• Oracle Real Application Clusters 10g
• Sun Cluster Advanced Edition
for Oracle RAC
• InfiniBand switching technology
• Management software
Sun Proprietary/Confidential: Internal Use Only
Sun Fire Servers with
UltraSPARC Technology
• Scale from blades, to low cost servers, to
large-way, massively scalable SMP systems
• Multiple design points address specific
application needs
• Support industrial strength computing
workloads
• Provide a balance of:
> Performance
> Scalability
> Reliability
> Cost
Sun Proprietary/Confidential: Internal Use Only
Sun Fire Servers with
CoolThreads™ Technology
• Designed for Web, application
tier, and multithreaded workloads
• Utilize an innovative design
• Deliver breakthrough performance
• Provide massive thread-level
parallelism
• Increase application throughput
• Offer dramatic space and power
efficiency
Sun Proprietary/Confidential: Internal Use Only
Sun Fire x64 Servers
• Scale from very low
cost single rackmount
servers to integrated
solutions
• Feature up to 16
single- or dual-core
Next-Generation AMD
Opteron processors
• Bring extreme
performance and a
new level of energy
Sun Proprietary/Confidential: Internal Use Only
Solaris 10 Operating System

• Offers over 600 exciting new features


• Supports horizontal or vertical scaling
• Provides relentless availability
• Delivers extreme performance
• Provides unparalleled security
• Offers interoperability with Linux,
Windows
• Facilitates leveraging of low cost
hardware
Sun Proprietary/Confidential: Internal Use Only