bw know-how call : performance tuning

20
BW Know-How Call : Performance Tuning dial-in phone numbers! U.S. Toll-free: (877) 260-8900 International: (612) 338-1917 Passcode: “BW”

Upload: gerald

Post on 12-Jan-2016

73 views

Category:

Documents


0 download

DESCRIPTION

BW Know-How Call : Performance Tuning. dial-in phone numbers! U.S. Toll-free: (877) 260-8900 International: (612) 338-1917 Passcode: “BW”. OLTP Systems Application Development and performance tuning separated Performance tuning by basis experts. Performance Tuning. BW - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: BW Know-How Call : Performance Tuning

BW Know-How Call : Performance Tuning

dial-in phone numbers!

U.S. Toll-free: (877) 260-8900

International: (612) 338-1917

Passcode: “BW”

Page 2: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 2

Performance Tuning in BW

Database

Database

Performance Tuning

Application

Application

Performance Tuning

OLTP Systems Application Development and

performance tuning separated Performance tuning by basis

experts

Performance Tuning

BW Performance Tuning as

holistic process over application design and database configuration

BW

OLTP

Page 3: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 3

Contents

OLAP Performance Layers

Further Information

Checklists

Page 4: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 4

Performance Guidelines

OLAP Performance Layers

Further Information

Checklists

Page 5: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 5

Checklist – Query and Web Performance – Overview

ST03 / Technical ContentST03 / Technical Content

DatabaseDatabase OLAPOLAP FrontendFrontend

1. Data Model

2. Query Definition

3. Aggregates

4. OLAP Cache

5. Pre-Calculated Web Templates

6. Compressing

7. Indices

8. DB Statistics

9. DB and basis (Buffer) Parameter

1. Data Model

2. Query Definition

3. Aggregates

4. OLAP Cache

5. Pre-Calculated Web Templates

6. Compressing

7. Indices

8. DB Statistics

9. DB and basis (Buffer) Parameter

1. Data Model

2. Query Definition (including OLAP features)

3. Aggregates

4. OLAP Cache

5. Virtual Key Figures / Characteristics

6. Authorizations

1. Data Model

2. Query Definition (including OLAP features)

3. Aggregates

4. OLAP Cache

5. Virtual Key Figures / Characteristics

6. Authorizations

1. Network

2. WAN and BEx

3. Client Hardware

4. VBA / Java

5. Documents

6. Formatting

7. ODBO / 3rd party

1. Network

2. WAN and BEx

3. Client Hardware

4. VBA / Java

5. Documents

6. Formatting

7. ODBO / 3rd party

SQL Trace (ST05)

RSRV

RSRT, RSRTRACE

SQL Trace (ST05)

RSRV

RSRT, RSRTRACE

RSRT, RSRTRACE

SQL Trace (ST05)

ABAP Trace (SE30)

RSRT, RSRTRACE

SQL Trace (ST05)

ABAP Trace (SE30)

IEMON

RSRT, RSRTRACE

IEMON

RSRT, RSRTRACE

Which component contributes most?

Tools

Check these points

Page 6: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 6

Checklist – Data Load Performance – Overview 1 –

Technical Content, Data Load MonitorTechnical Content, Data Load Monitor

ExtractionExtraction TransferTransfer Load Into PSALoad Into PSA

1. Customer Exits

2. Resource Utilization

3. Load Balancing

4. Data Package Size

5. Indices on tables

6. Flat File format

7. Content vs. generic extractor

1. Customer Exits

2. Resource Utilization

3. Load Balancing

4. Data Package Size

5. Indices on tables

6. Flat File format

7. Content vs. generic extractor

1. Resource Contraint

2. CPU / Memory Bottleneck

3. Network

4. Application Buffer Synchronization

1. Resource Contraint

2. CPU / Memory Bottleneck

3. Network

4. Application Buffer Synchronization

1. I/O Contention

2. PSA Partition Size

1. I/O Contention

2. PSA Partition Size

Extractor Checker (RSA3),

ABAP Trace (SE30),

SQL Trace (ST05)

Extractor Checker (RSA3),

ABAP Trace (SE30),

SQL Trace (ST05)

SM50

SQL Trace (ST05)

OS Monitor (ST06)

SM50

SQL Trace (ST05)

OS Monitor (ST06)

OS Monitor (ST06)

DB Monitor (ST04)

OS Monitor (ST06)

DB Monitor (ST04)

Which component contributes most?

Tools

Check these points

Page 7: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 7

Checklist – Data Load Performance – Overview 2 –

1. Transformation Rules / ABAP Coding

2. Transformation Library Formulas

1. Transformation Rules / ABAP Coding

2. Transformation Library Formulas

1. Roll-up

2. Change Run

3. Compression

4. Indices

5. Load Master Data before Transaction Data

6. Buffering Number Ranges

1. Roll-up

2. Change Run

3. Compression

4. Indices

5. Load Master Data before Transaction Data

6. Buffering Number Ranges

Debugger within Monitor

ABAP Trace (SE30),

SQL Trace (ST05)

Debugger within Monitor

ABAP Trace (SE30),

SQL Trace (ST05) SQL Trace (ST05)SQL Trace (ST05)

Which component contributes most?

Tools

Check these points

Transfer RulesTransfer Rules

Update RulesUpdate RulesLoad Into Data TargetsLoad Into Data Targets

InfoCubesInfoCubes ODS ObjectsODS Objects

1. Parallel ODS activation

2. Unique Data Records

3. Flag BEx Reporting

4. Indices

1. Parallel ODS activation

2. Unique Data Records

3. Flag BEx Reporting

4. Indices

Technical Content, Data Load MonitorTechnical Content, Data Load Monitor

Master DataMaster Data

1. Buffering Number Ranges

2. Change Run

1. Buffering Number Ranges

2. Change Run

Page 8: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 8

Performance Guidelines

OLAP Performance Layers

Checklists

Further Information

Page 9: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 9

OLAP Performance Layers

ReuseReuse

PerformancePerformance

Offline Analysis

Pre-Calculation

OLAP Cache

Aggregates

InfoCubes

Performance Layers For specific Scenarios

Page 10: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 10

Aggregates – 1 –

Aggregate Definition Materialization of aggregated subsets of InfoCube fact table data Independent structures where summary data is stored within separate,

transparent InfoCubes Transparency: Users do not notice if aggregate is hit or not Improved query performance by reducing the amount of data to be read from

DB

Aggregates can be created Only on top of basic InfoCubes For dimension characteristics For navigational attributes On hierarchy levels Using time-dependent navigational attributes (as of BW 3.x) Using hierarchy levels where the structure is time-dependent (as of BW 3.x)

Aggregates can improve query performance considerably, but keep in mind that they also impact the load performance.

Page 11: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 11

Aggregates – 2 – Example

Example for flow with and without aggregates

Flow without aggregate

InfoCube Number of records read on the database Records

transferred to BW instance after

being summarized on the database

Month Material RevenueJuly Hammer 10July Nail 20August Hammer 10August Nail 20

Aggregate

Month RevenueJuly 30August 30

Month Material RevenueJuly Hammer 10July Nail 20August Hammer 10August Nail 20

Month RevenueJuly 30August 30

Month RevenueJuly 30August 30

Flow with aggregate

Database Selection OLAP Engine

Page 12: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 12

OLAP Cache – 1 –

Caching in BW 2.x One Local Cache for each session No cache access across sessions No possibility to set size of cache

Caching in BW 3.x OLAP Cache Additional global cache which is accessible from all sessions OLAP Cache is part of application buffer (Imp/Exp SHM) and

can also be stored in a DB table or a file The Cache stores query results and navigation statuses as

highly compressed cluster data Query Cache is used for equal queries or subsets of cached

queries Benefits: OLAP Cache reduces workload on database and

application server

Page 13: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 13

OLAP Cache – 2 –

OLAP Cache OLAP Cache size can be adjusted (In 3.x there is also an adjustable size for the local cache) Cache can be switched off entirely, for InfoCubes and for

individual queries Local Cache is used, when OLAP Cache is inactive. Specific instance profile parameters:

rsdb/esm/buffersize_kb 4096 (kB) Size of exp/imp SHM buffer

rsdb/esm/max_objects 2000 Max. number of objects in the buffer

rsdb/esm/large_object_size 8192 (byte)Estimation for the size of the largest object

rsdb/esm/mutex_n 0 Number of mutexes in Exp/Imp SHM buffer

Buffer small by default!

Page 14: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 14

Pre-Calculated Web Templates – 1 –

Pre-Calculated Web Templates Pre-calculation is a set of techniques where you can distribute the

workload of running the report to off-peak hours, and have the report result set ready for very fast access to the data

Data Pre-Calculation or HTML Pre-Calculation HTML Pre-Calculation can be used for Offline Analysis

Benefits Fast response time System workload shifted to off-peak hours Re-use data that goes to many queries Reports also available offline

Page 15: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 15

Pre-Calculated Web Templates – 2 –

Scenario Supports “Newspaper” scenario

Quick access to many reports Reports are requested by many users Static reporting, usually little navigation

requirements Active Reporting Authorisations

Restrictions No invalidation when new data is loaded Restricted navigation: only filtering possibles

Page 16: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 16

Pre-Calculated Web Templates – 3 – Access Modes

BW Server

OLAP

Engine

Reporting Agent

Log

Content Management Framework

Web Framework

SAP GUI

InfoProvider RA Data Storage CMF Repository

Web Application Server

BEx Web Service Doc Web Service

WebDAV

Handler

Web Browser

http://myserver:myport/sap/bw/BEx?cmd=ldoc&template_id=myTemplate&data_mode=new

DATA MODE

NEW

STORED

HYBRID

STATIC

STATIC_HYBRID

Page 17: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 17

Pre-Calculated Web Templates – 4 – Access Modes

BW Server

OLAP

Engine

Reporting Agent

Log

Content Management Framework

Web Framework

SAP GUI

InfoProvider RA Data Storage CMF Repository

Web Application Server

BEx Web Service Doc Web Service

WebDAV

Handler

Web Browser

http://myserver:myport/sap/bw/BEx?cmd=ldoc&template_id=myTemplate&data_mode=stored

DATA MODE

NEW

STORED

HYBRID

STATIC

STATIC_HYBRID

Page 18: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 18

Pre-Calculated Web Templates – 5 – Access Modes

BW Server

OLAP

Engine

Reporting Agent

Log

Content Management Framework

Web Framework

SAP GUI

InfoProvider RA Data Storage CMF Repository

Web Application Server

BEx Web Service Doc Web Service

WebDAV

Handler

Web Browserhttp://myserver:myport/sap/bw/BEx?cmd=ldoc&template_id=myTemplate&data_mode=static

DATA MODE

NEW

STORED

HYBRID

STATIC

STATIC_HYBRID

http://myserver:myport/sap/bw/doc/tmpl/fldtmpl/“cmfpath/report.htm“

Page 19: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 19

Performance Guidelines

Further Information

Checklists

OLAP Performance Layers

Page 20: BW Know-How Call : Performance Tuning

SAP AG 2002, BW Performance Tuning, Alex Peter, 20

Further Information

Find Additional Information BW Performance Page in SAP Service Marketplace

Alias BW Performance

SEM-BPS Performance Page in SAP Service Marketplace Alias SEM Media Library Help To Use SEM SEM-BPS Performance KHNC on SEM Performance in 2002