+ All Categories
Home > Documents > Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation...

Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation...

Date post: 06-Apr-2015
Category:
Upload: elfi-kapitan
View: 106 times
Download: 4 times
Share this document with a friend
Popular Tags:
32
Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA Platform July 8, 2014 Publi c
Transcript
Page 1: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

Use this title slide only with an image

SAP HANA DATABASEMihnea Andrei SAP Products & Innovation HANA Platform July 8, 2014 Public

Page 2: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 2Public

Agenda

SAP

SAP HANA DB Background

Architecture

Column Store & Compression

Snapshot Isolation

Outlook

Page 3: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

SAP

Page 4: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 4Public

Who was SAP (before HANA)?

Sales Order Management

Production Planning Talent Management

Financial/Mgmt Accounting

Business Intelligence

Page 5: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

5© 2014 SAP AG or an SAP affiliate company. All rights reserved.

74% of the world’s transaction revenue touches an SAP system.

Page 6: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 6Public

SAPBusiness Applications – Database & Technology – Analytics – Cloud – Mobile

Annual revenue (IFRS) of € 16,82 billion

More than 253,500 customers in 188 countries

More than 66,500 employees – and locations in more than 130 countries

A 42-year history of innovation and growth as a true industry leader

Page 7: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

7© 2014 SAP AG or an SAP affiliate company. All rights reserved.

Page 8: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 8Public

Products & Innovation HANA PlatformCalifornia Campus – Worldwide

Page 9: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

SAP HANA DB BackgroundWhy did we build HANA?

Page 10: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 10Public

How Did the SAP Use Database Before HANA?

See “The SAP Transaction Model:  Know Your Applications”, SIGMOD 2008 Industrial Talk Database was mainly a dumb store …

– Retrieve/Store data (Open SQL, no stored procedures)– Transaction commit, with locks held very briefly– Operational utilities

… because SAP kept the following in the application server:– Application logic– Business object-level locks– Queued updates– Data buffers– Indexes

With the HANA platform, computation-intensive data-centric operations are moved to the Database

Page 11: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 11Public

DRAM Price/GB

Year Price/GB2013 $5.50 2010 $12.37 2005 $189 2000 $1,107 1995 $30,875 1990 $103,880 1985 $859,375 1980 $6,328,125

Source: http://www.statisticbrain.com/average-historic-price-of-ram/

Page 12: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 12Public

In-Memory Computing

Yes, DRAM is 125,000 times faster than disk, but DRAM access is still 10-80 times slower than on-chip

caches

80 NS, TBs

CPU

Core Core

L1 Cache L1 Cache

L2 Cache L2 Cache

L3 Cache

Main Memory

Disk

1 NS, 64K/core

3 NS, 256k/core

8 NS, >2M shared

SSD: 100K NSHD: 10M NS

Using Intel Ivy Bridge for approximate values.Actual numbers depends on specific hardware.

4-12 cores/CPU

4-8 sockets

Page 13: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 13Public

Enterprise Workloads are Read Dominated

Workload in Enterprise Applications consists of: Mainly read queries (OLTP 83%, OLAP 94%) Many queries access large sets of data

Page 14: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 14Public

Simplify Technology Stack with the SAP HANA Platform

SAP HANA Platform

Applications Analytics

Insight to ActionContextual. Real-time. Closed-loop.

Page 15: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 15Public

SAP HANA Database Background

BWA / BIA

Trex

PTime

MaxDB

201120102000-2009Ancient times

Enterprise Search

NewDB / HANA

BW on HANA

Suite on HANA

2012

HANA Platform

now

Sybase IQ/ASE/SA/RS/etc.

Page 16: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

SAP HANA DB Architecture

Page 17: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 18Public

SAP HANA DB Processes

Page 18: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

19© 2014 SAP AG or an SAP affiliate company. All rights reserved.

Business Applications

Connection and Session Management

Authori-zation

Manager

Metadata Manager

Trans- action

Manager

SQL SQL Script MDX …

Optimizer and Plan Generator

Calculation Engine

Execution Engine

In-Memory Processing Engines

Column Engine Row Engine Text Engine

Persistency Logging and Recovery Data Storage

Page 19: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 20Public

Distributed Share-Nothing In-Memory Computing

NewDB Database Server

NewDB Database Server

Execution Layer

In-Memory Stores

Persistence Layer

R

R

NewDB Database Server

Execution Layer

In-Memory Stores

Persistence Layer

R

R

Execution Layer

In-Memory Stores

Persistence Layer

R

R

Page 20: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

Column Store & Compression

Page 21: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 23Public

Tuple 2

Tuple 1

Tuple 3

Tuple n

SAP HANA Technology Hybrid Data Storage

SAP HANA Column Store stores tables by column

SAP HANA Row Store stores tables by row

Tuple 1

Tuple 2

Tuple 3

Tuple n

Att1 Att2 Att3 Att4 Att5 Att2 Att4 Att5Att3Att1

Search and calculation on values of a few columns Big number of columns Big number of rows and columnar operations

aggregate, scan, etc. High compression rates possible

Most columns contain only few distinct values

Application often processes single records at once many selects and /or updates of single

records Application typically accesses the complete record Columns contain mainly distinct values Aggregations and fast searching not required Small number of rows (e.g. configuration tables)

Page 22: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 24Public

SAP HANA TechnologyDictionary Compression & N-bit Compression

Company[CHAR50]

Region[CHAR30]

Group[CHAR5]

INTEL USA A

Siemens Europe B

Siemens Europe C

SAP Europe A

SAP Europe A

IBM USA A

0

1

1

2

2

3

0 INTEL1 Siemens2 SAP3 IBM

1

0

0

0

0

1

0 Europe1 USA

0

1

2

0

0

0

0 A1 B2 C

HANA Column Store Classical Row Store

Dictionary for attribute/column „Group“

Index VectorStored in one memory chunk=> data locality for fast scans

Page 23: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 25Public

SAP HANA TechnologyCompression with run length encoding

Company[CHAR50]

Region[CHAR30]

Group[CHAR5]

INTEL USA A

Siemens Europe B

Siemens Europe C

SAP Europe A

SAP Europe A

IBM USA A

0

1

1

2

2

3

0 INTEL1 Siemens2 SAP3 IBM

1

0

0

0

0

1

0 Europe1 USA

0

1

2

0

0

0

0 A1 B2 C

HANA Column Store:Dictionary compressed

Classical Row StoreDifficult to compress

1 x „0“

2 x „1“

2 x „2“

0 INTEL1 Siemens2 SAP3 IBM

0 Europe1 USA

0 A1 B2 C

HANA Column Store:Run length compressed*

1 x „1“

4 x „0“

1 x „1“

1 x „3“

1 x „0“

1 x „1“

1 x „2“

3 x „0“

* Note that there is a variety of compression methods and algorithms like run-length compression

Page 24: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

Snapshot Isolation

Page 25: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 30Public

Initial Design – set oriented, optimized for OLAP

timeoldest reader

111011……………111101

tx1 commit

1111

1100010……………01000000010

base

list

of

row

s vi

sibl

e to

all

tx2 access

inse

rted

dele

ted

011001……………101101111011

tx3 commit

111

000001……………100000000001000

tx2 begin tx4 begin & access

011000……………

001101111100111

DATA-D……………DATA-DATA-DATA-

Page 26: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 31Public

New Design – OLTP friendly

Problems to solve Memory overhead

– Valid from/to for every row?

Tx identity: TID vs. CID– If TID: visibility rules, TCB memory overhead– If CID: DML time ID, atomic commit, post-commit

L2/3 cache friendly – Stay local, avoid dereferencing pointers

OLAP performance

DATA

New rows

tx2: insert n rows

tx2…

New row tx1tx1: insert 1 row

validfrom

tx3: delete where …

validto

tx3

tx3

txn: reader

Page 27: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

OutlookWhere is HANA going next?

Page 28: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 33Public

Continuing Challenges of Emerging Hardware

Challenge 1: Parallelism: Take advantage of tens, hundreds, thousands of cores Challenge 2: Large memories & data locality/NUMA

– Yes, DRAM is 125,000 times faster than disk…– But DRAM access is still 10-80 times slower than on-chip caches

Page 29: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 34Public

HANA Platform On-Going Architectural Evolution

Data models Flexible schemas, graph functionality, geospatial, time series, historical data,

Big Data, external libraries

Resource and workload management Memory, threads, scheduling, admission control, service level management, data aging

Application services XS Engine, CDS and River

Continuing performance improvements Hardware advances, NUMA, improved modularization and architecture

Cloud and multi-tenancy

Page 30: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 35Public

Co-innovating the Next Big Wave in Hardware Evolution

Multi-Core and Large “Memory” Footprints

Storage Class Memories / Non-Volatile Memory Leverage as DRAM and/or as persistent storage

On-Board DIMMs Very high density, byte-addressable DRAM like (< 3X) latency and bandwidth; similar endurance Compete with disk on cost/bit by 2020

Extreme Speed Network Fabric/Interconnects Inter-socket NUMA gets worse while inter-host NUMA gets better Inter-socket and Inter-host latencies converge

Exploiting Dark Silicon for Database Hardware Acceleration Also exploit GPUs for specific use cases, such as regression analysis

Page 31: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved.

Thank you!

http://www.careersatsap.com/

http://jobs.sap.com

https://www.saphana.com

http://www.sap.com/pc/tech/in-memory-computing-hana.html

Contact information:

Arne Schwarz, [email protected] Andrei, [email protected] Richard Pledereder, [email protected]

Page 32: Use this title slide only with an image SAP HANA DATABASE Mihnea Andrei SAP Products & Innovation HANA PlatformJuly 8, 2014 Public.

© 2014 SAP AG or an SAP affiliate company. All rights reserved. 37Public

© 2014 SAP AG or an SAP affiliate company. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG or an SAP affiliate company.

SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG (or an SAP affiliate company) in Germany and other countries. Please see http://global12.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices.

Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.

National product specifications may vary.

These materials are provided by SAP AG or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP AG or its affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP AG or SAP affiliate company products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.

In particular, SAP AG or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation, and SAP AG’s or its affiliated companies’ strategy and possible future developments, products, and/or platform directions and functionality are all subject to change and may be changed by SAP AG or its affiliated companies at any time for any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions.


Recommended