IBM POWER8 Plattform für MariaDB

38
© 2012 IBM Corporation © 2015 IBM Corporation Helmut Brettschneider Technical Sales Power Systems IBM Deutschland GmbH [email protected] IBM POWER8 als Pla.orm für MariaDB Lösungen

Transcript of IBM POWER8 Plattform für MariaDB

© 2012 IBM Corporation © 2015 IBM Corporation

Helmut Brettschneider Technical Sales Power Systems IBM Deutschland GmbH [email protected]

IBM  POWER8  als  Pla.orm  für  MariaDB  Lösungen  

© 2015 IBM Corporation 2 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

Agenda  

!  POWER8 Technology

!  OpenPOWER Foundation

!  IBM Power Systems and Linux

!  MariaDB and the LAMP stack on IBM POWER8

!  Migration scenarios for applications

!  IBM Tools and Support for Porting to Linux on Power

© 2015 IBM Corporation

POWER8  Technology  

© 2015 IBM Corporation MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

POWER8  Processor  

Caches • 512 KB SRAM L2 / core • 96 MB eDRAM shared L3 • Up to 128 MB eDRAM L4 (off-chip)

Cores • 12 cores (SMT8) • 8 dispatch, 10 issue, 16 exec pipe • 2X internal data flows/queues • Enhanced prefetching • 64K data cache, 32K instruction cache

Accelerators • Crypto & memory expansion • Transactional Memory • VMM assist • Data Move / VM Mobility

Energy Management • On-chip Power Management Micro-controller • Integrated Per-core VRM • Critical Path Monitors

Technology • 22nm SOI, eDRAM, 15 ML 650mm2

Memory • Up to 230 GB/s sustained bandwidth

Bus Interfaces • Durable open memory attach interface • Integrated PCIe Gen3 • SMP Interconnect • CAPI (Coherent Accelerator Processor Interface)

4

© 2015 IBM Corporation

IBM  POWER8  in  the  press    

5 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

ComputerWorld: To make the chip faster, IBM has turned to a more advanced manufacturing process, increased the clock speed and added more cache memory, but perhaps the biggest change heralded by the Power8 cannot be found in the specifications. After years of restricting Power processors to its servers, IBM is throwing open the gates and will be licensing Power8 to third-party chip and component makers.

The Register: the Power8 is so clearly engineered for midrange and enterprise systems for running applications on a giant shared memory space, backed by lots of cores and threads. Power8 does not belong in a smartphone unless you want one the size of a shoebox that weighs 20 pounds. But it most certainly does belong in a badass server, and Power8 is by far one of the most elegant chips that Big Blue has ever created, based on the initial specs.

PCWorld: With Power8, IBM has more than doubled the sustained memory bandwidth from the Power7 and Power7+, to 230 GB/s, as well as I/O speed, to 48 GB/s. Put another way, Watson’s ability to look up and respond to information has more than doubled as well.

Microprocessor report: Called Power8, the new chip delivers impressive numbers, doubling the performance of its already powerful predecessor, Power7+. Oracle currently leads in server-processor performance, but IBM’s new chip will crush those records. The Power8 specs are mind boggling.

© 2015 IBM Corporation

The  OpenPOWER  FoundaEon  based  on  POWER8  

© 2015 IBM Corporation 7 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

The                                                                              FoundaEon  

The goal of the OpenPOWER Foundation is to create an open ecosystem, using the POWER Architecture to share expertise, investment, and

server-class intellectual property to serve the evolving needs of customers.

Open ecosystem based on the IBM POWER Architecture.

Allows the industry to innovate across the full Hardware and Software stack.

Provide partners and customers with the flexibility to build servers best suited to the Power architecture.

Platinum Members

Founding Members

© 2015 IBM Corporation 8 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

Welcoming new members in all areas of the ecosystem 100+ inquiries and numerous active dialogues underway

I/O / Storage / Acceleration

Chip / SoC

System / Software / Services

Implementation / HPC / Research

Huaxun  Zhongxing  Tech.  Co.  

More than 100 members now

Boards / Systems

© 2015 IBM Corporation 9 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

Das Bild kann nicht angezeigt werden. Dieser Computer verfügt möglicherweise über zu wenig Arbeitsspeicher, um das Bild zu öffnen, oder das Bild ist beschädigt. Starten Sie den Computer neu, und öffnen Sie dann erneut die Datei. Wenn weiterhin das rote x angezeigt wird, müssen Sie das Bild möglicherweise löschen und dann erneut einfügen.

Cloud Software

Operating System / KVM

Standard Operating Environment

(System Mgmt)

Power Open Source Software Stack Components

Existing Open Source Software

Communities

Firmware

Hardware

New OSS Community

OpenPOWER Technology

OpenPOWER Firmware

OpenPOWER  Ecosystem:  based  on  open  standards  

© 2015 IBM Corporation

OpenPOWER  compliant  products  

10 © OpenPOWER Foundation 2014

The Google reference board ➢ two single-chip module (SCM) ➢ four modified SATA ports ➢ Google use only

http://www.enterprisetech.com/2014/04/28/inside-google-tyan-power8-server-boards/

http://www.tyan.com/campaign/openpower/

© 2015 IBM Corporation

OpenPOWER  compliant  systems  from  IBM  

11 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

Power  S812L  

10,  12  Cores  

Power  S822L  

20,  24  Cores  

Power  S824L  

20,  24  Cores  (1-­‐2  NVidia  GPU)  

© 2015 IBM Corporation

IBM  Power  Systems  and  Linux  

© 2015 IBM Corporation 13 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

Power 710 Power 730

PowerLinux 7R1 / 7R2 / 7R4

POWER7+

Power S812L

Power S822L

Power 720 Power 740

POWER8

Power S824 Power

S822

Power S814

POWER7

Power S824L

Power 780

Power 770

Power 750

Power 760

Power E870

Power E880

Power E870

Power E880

Power 795

IBM  Power  Systems  family  in  the  market  

© 2015 IBM Corporation 14 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

!  RHEL 7.1 (LE and BE) "  POWER8 (native mode) and

POWER 7/7+

!  RHEL 6 (BE) •  POWER8 supported with U5

(P7-compatibility mode) •  Full support of POWER6 and

POWER7 (native mode)

!  Fedora (LE + BE) •  Fedora 16 was first release to

re-launch POWER •  Fedora 20 has POWER8

support •  Fedora 21 has LE and BE

support

#  Supported add-ons •  JBoss •  High Performance Network Add-

on

$  Built from the same source as x86 $  Delivered on the same schedule as x86 $  Supported at the same time as x86

!  SLES 12 (LE) •  POWER8 (native mode) and

POWER 7/7+ !  SLES 11 (BE)

"  POWER8 with SP3 (P7-compatibility mode)

"  POWER7+ encryption, RNG accelerators with SP3

"  Full support of POWER7 (native mode)

!  openSUSE (LE + BE) •  openSUSE 12.2 re-launched for

IBM POWER •  openSUSE 13.2 includes

POWER8 support

#  Supported add-ons •  SUSE Linux Enterprise High

Availability Extension

!  Ubuntu 14.10 (LE) !  POWER8 (native mode)

!  Ubuntu 14.04 (LE) "  POWER8 enabled (native

mode) "  No official support for

POWER7+ and older systems "  No support for 32-bit

applications. 64-bit only. "  Supported in KVM only at this

time

!  Supported add-ons •  JuJu Charms •  MaaS (Metal as a Service) •  Landscape

!  Debian (LE + BE) •  Debian community now

supports Power as of Sid release

Linux  support  for  IBM  POWER  Systems  

© 2015 IBM Corporation 15 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

IBM  Systems  So9ware  

S812L  

10,  12  Cores  3.02  –  3.42  GHz  

S822L  

20,  24  Cores  3.02  –  3.42  GHz  

Linux-­‐only  Machines  (Entry-­‐Level)   IFL  (High-­‐End)  

S824L  

20,  24  Cores  3.02  –  3.42  GHz  (1-­‐2  NVidia  GPU)  

Power E870

32  to  80  Cores  4.02  -­‐  4.19  GHz  

Power E880

64  cores  4.35  GHz  

IBM  POWER8  Systems  Family  on  Linux  (1Q2015)  

© 2015 IBM Corporation

MariaDB  and  the  LAMP  stack  on  IBM  POWER8    

© 2015 IBM Corporation 17 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015 17

© 2015 IBM Corporation 18 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015 18

© 2015 IBM Corporation 19 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

© 2015 IBM Corporation 20 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

© 2015 IBM Corporation

MigraEon  scenarios  for  applicaEons  

© 2015 IBM Corporation 22 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

PorEng  Script/interpreted  language  based  ApplicaEons  to  POWER8  

!  All script languages and interpreted languages should be platform-independent once they are compiled for the particular platform.

!  Also compiled code should be platform-independent (e.g., Perl, Python etc.). !  Examples include:

–  Perl –  Python –  PHP –  Ruby –  Lua –  Tcl –  etc.

© 2015 IBM Corporation 23 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

PorEng  JAVA  based  ApplicaEons  to  Linux  on  POWER8  

!  Java compiled byte-code is platform-independent and thus portable across different platform if the Java specification has been adhered to, i.e., no APIs/syscalls beyond the specification have been used.

!  For PowerLinux the Java JVM options are: –  IBM JVM –  OpenJDK

!  For Linux/x86 multiple different JVMs are available. !  Differences in behavior between the IBM JVM and the Oracle JVM exist.

!  Additional efforts in migrating Java code typically arise only if Java extensions were used that are not part of the standard Java specification:

–  For instance, security-relevant Java code differs between JVMs of different vendors.

© 2015 IBM Corporation 24 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

PorEng  C/C++  Code  to  Linux  on  POWER8  requires  a  recompile  

Other Linux RHEL, SLES, or Ubuntu (not RHEL, SLES, Ubuntu)

RHEL RHEL

SLES SLES

Ubuntu Ubuntu

© 2015 IBM Corporation 25 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

IBM  (C/C++)  MigraEon  Advisor  for  Linux  on  Power  

!  The IBM Software Development Kit for PowerLinux includes a Migration Advisor to help in moving Linux applications from x86 systems to Power systems.

!  The advisor uses the Eclipse C/C++ Development Tools code analysis tool. !  The code analysis tool locates potential migration problems within a project,

such as source code that might produce different results when run on Power systems.

!  It contains several checkers that look for code in the project that might produce a different result in Power systems.

!  Warnings are displayed showing the kind of problem found.

© 2015 IBM Corporation 26 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

PorEng  C/C++  32  bit  ApplicaEons  to  Linux  (ligle  endian)  on  POWER8    

!  Changing the address space for the application, i.e., converting it from a 32-bit to a 64-bit application

–  Might be required if porting 32-bit application to 64-bit only like distributions (ppc64le) like Ubuntu, SLES12 or RHEL 7.1

!  A 32-bit Linux/Intel application can always be recompiled as a 32-bit Linux/Power application, no need to change anything here!

–  The exception is new OpenPOWER compliant ppcle64 platform

!  Converting a 32-bit application to 64-bit address space can present a challenge depending on the code quality!

!  Please see the redbook “AIX5L Porting Guide“ for details:

© 2015 IBM Corporation

IBM  Support  for  PorEng  to  Linux  on  Power  

© 2015 IBM Corporation MariaDB Roadshow in Düsseldorf, München und Wien

28

First  step:  Where  to  find  more  informaEon?  

The PowerLinux Community (developerWorks)

Power Systems Linux Portal (Product Information)

www.ibm.com/systems/power/software/linux/

@ibmpowerlinux plus.google.com/communities/100156952249293416679

http://openpowerfoundation.org/

The OpenPOWER Foundation

© 2015 IBM Corporation

29

Portierung Ihrer Anwendung auf Linux on Power mit Hilfe von IBM

!  Einführender Workshop um die Architektur Ihrer Lösung kennenzulernen und unsere Porting Support Optionen vorzustellen

!  Erstellung eines Portierungsplans, Verfügbarkeit der Hardware, Software, Middleware, Third-Party Software auf Linux on Power, Verfügbarkeit von Personalressourcen beim Partner und IBM

!  Nutzung des IIC (IBM Innovation Center) –  Portierungen auf IBM Plattformen –  Integrationen von IBM SW-Komponenten in Partner - Lösungen –  Funktionalitätstests –  Performance – Messungen

!  Aufbau einer Entwicklungs- und Testumgebung für weitergehende Entwicklung des Ports in Ihrem Haus

–  Power Development Cloud –  Power8 Entwicklungsserver

Der Partner bestimmt den Umfang und das

Tempo

© 2015 IBM Corporation 30 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

!  Technische Workshops zu aktuellen Themen

!  Unterstützung bei Portierung, Design, Test Ihrer Anwendung, z.B.

•  Linux on Power Portierungen •  MariaDB auf POWER8 Tests

!  Zugang zu neuester IBM HW und SW vor Ort und Remote

!  IIC Services sind kostenlos

!  Beantragung der Services unter ibm.com/partnerworld/iic/ehningen

!  Ansprechpartner vor Ort: Beate Melcher [email protected] 07034-274-1911 oder 0160-93986778

PorEerung  der  Anwendung  mit  Hilfe  des  IBM  InnovaEon  Center  (IIC)  

Das IBM Innovation Center in Ehningen ist eines von über 40 weltweit

© 2015 IBM Corporation 31 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

wir möchten Sie ganz herzlich zu unseren Linux on Power Events einladen:

07.05.2015 in Frankfurt 09.06.2015 in Zürich

Schon die POWER7 Systeme waren die Nummer eins unter den Plattformen für Unix-Anwendungen in Unternehmen. Die POWER8 basierenden Systeme liefern die Basistechnologie der OpenPOWER Foundation, die immer mehr zu einem Global Player in der Open Source Welt wird.

Laden Sie Ihre Lösungspartner und Ihre interessierten Mitarbeiter ein und freuen Sie sich mit uns auf ein spannendes Programm gemeinsam mit unseren Open Source Partnern und Linux Distributoren.

Es besteht die Möglichkeit eigenen Source Code vor Ort auf Linux on Power zu portieren und zu testen.

Melden Sie sich über untenstehende Links an!

Auf unseren Registrierungsseiten finden Sie auch unsere detaillierte Agenda:

07.05.2015 in Frankfurt, IBM Lokation: http://www-304.ibm.com/events/idr/idrevents/detail.action?meid=19136&ieid=13819

09.06.2015 in Zürich, IBM Lokation http://www-304.ibm.com/events/idr/idrevents/detail.action?meid=19136&ieid=13889&from=find

" " "

Mehr Informationen beim Linux on Power Event am 07.05.2015 in Frankfurt

© 2015 IBM Corporation 32 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

Trademarks  The following are trademarks of the International Business Machines Corporation in the United States, other countries, or both.

The following are trademarks or registered trademarks of other companies.

* All other products may be trademarks or registered trademarks of their respective companies.

Notes: Performance is in Internal Throughput Rate (ITR) ratio based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput that any user will experience will vary depending upon considerations such as the amount of multiprogramming in the user's job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve throughput improvements equivalent to the performance ratios stated here. IBM hardware products are manufactured from new parts, or new and serviceable used parts. Regardless, our warranty terms apply. All customer examples cited or described in this presentation are presented as illustrations of the manner in which some customers have used IBM products and the results they may have achieved. Actual environmental costs and performance characteristics will vary depending on individual customer configurations and conditions. This publication was produced in the United States. IBM may not offer the products, services or features discussed in this document in other countries, and the information may be subject to change without notice. Consult your local IBM business contact for information on the product or services available in your area. All statements regarding IBM's future direction and intent are subject to change or withdrawal without notice, and represent goals and objectives only. Information about non-IBM products is obtained from the manufacturers of those products or their published announcements. IBM has not tested those products and cannot confirm the performance, compatibility, or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. Prices subject to change without notice. Contact your IBM representative or Business Partner for the most current pricing in your geography.

Adobe, the Adobe logo, PostScript, and the PostScript logo are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States, and/or other countries. Cell Broadband Engine is a trademark of Sony Computer Entertainment, Inc. in the United States, other countries, or both and is used under license therefrom. Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both. Intel, Intel logo, Intel Inside, Intel Inside logo, Intel Centrino, Intel Centrino logo, Celeron, Intel Xeon, Intel SpeedStep, Itanium, and Pentium are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. UNIX is a registered trademark of The Open Group in the United States and other countries. Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both. ITIL is a registered trademark, and a registered community trademark of the Office of Government Commerce, and is registered in the U.S. Patent and Trademark Office. IT Infrastructure Library is a registered trademark of the Central Computer and Telecommunications Agency, which is now part of the Office of Government Commerce.

For a complete list of IBM Trademarks, see www.ibm.com/legal/copytrade.shtml:

*, AS/400®, e business(logo)®, DBE, ESCO, eServer, FICON, IBM®, IBM (logo)®, iSeries®, MVS, OS/390®, pSeries®, RS/6000®, S/30, VM/ESA®, VSE/ESA, WebSphere®, xSeries®, z/OS®, zSeries®, z/VM®, System i, System i5, System p, System p5, System x, System z, System z9®, BladeCenter®

Not all common law marks used by IBM are listed on this page. Failure of a mark to appear does not mean that IBM does not use the mark nor does it mean that the product is not actively marketed or is not significant within its relevant market.

Those trademarks followed by ® are registered trademarks of IBM in the United States; all others are trademarks or common law marks of IBM in the United States.

© 2015 IBM Corporation

AddiEonal  informaEon  

© 2015 IBM Corporation 34 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

Summary  

!  Source code based on script languages should be no problem / easy to port. !  Recompiling C/C++ source code from Linux/Intel on Linux/Power is pretty

straight forward. !  Portability issues typically arise only with regards to

–  (Endianness Linux x86 is little endian, Power used to be big endian only, most recent Ubuntu, SLES and RHEL versions for PPOWER8 are little endian).

–  using x86-specific •  APIs. •  assembly code. •  compiler built-ins.

!  The Migration Advisor as part of the Linux on Power SDK can assist in identifying possible migration issues.

!  The majority of commonly used open source code is pretty portable across different platforms, more efforts could be expected with custom code that has only been running on one platform (Intel).

© 2015 IBM Corporation 35 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

IBM  Sojware  Development  Kit  for  Linux  on  Power  

The IBM SDK for Linux on Power package includes:

!  IBM Advance Toolchain for Linux on Power integration, Versions 7.0-5, 7.1-0, and 8.0-0

!  IBM SDK for Linux on Power, Version 1.6.1 !  Feedback Directed Program Restructuring (FDPR), Version 5.6.2-6c !  Pthread Monitoring tool for Linux on Power (pthread-mon), Version 0.5.10-1 !  IBM SDK Java Technology Edition Version 7.1 !  IBM POWER8 Functional Simulator

© 2015 IBM Corporation 36 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

IBM  Advance  Toolchain  for  PowerLinux  

URLs: !  PowerLinux Community wiki !  IBM Advance Toolchain for PowerLinux Documentation !  Improving performance with IBM Advance Toolchain for PowerLinux

Description: !  The IBM Advance Toolchain for PowerLinuxTM provides early and easy access

to libraries and the latest compiler technologies for Linux distributions. !  Over time, these libraries and latest compiler technologies are integrated into

the shipping distributions. !  However, the IBM Advance Toolchain for PowerLinux contains the latest tested

and supported GNU Compiler Collection (GCC) compiler versions, tailored for Power systems, and packaged together with an expanding set of processor-tuned libraries, allowing you to take advantage of the latest technology without waiting..

© 2015 IBM Corporation 37 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

Linux/x86  to  Linux  on  Power  applicaEon  migraEon  

Linux on Power Migration Advisor checkers: !  x86-specific compiler built-in checker !  x86-specific assembly checker !  Struct with bitfields checker !  Cast with endianness issues checker !  Union with endianness issues checker !  Long double usage checker !  Performance degradation checker !  System call not available for PowerLinux checker !  Linux/x86-specific API checker !  Hardware Transaction Memory checker !  Non-portable Pthreads implementation checker

© 2015 IBM Corporation 38 MariaDB Roadshow in Düsseldorf, München und Wien im April 2015

Endianness  –  why  do  I  care  about  it?  

!  Linux on Power has chosen to exploit little endian (LE) processor mode based on OpenPOWER partner feedback instead of big endian (BE).

–  Eases the migration of applications from Linux on x86.

–  Enables simple data migration from Linux on x86.

12

12 34 56 78

34 56 78 Register

n+3 n+2 n+1

n

Memory

12

78 56 34 12

34 56 78 Register

n+3 n+2 n+1 n

Memory Big endian Little endian

–  Simplifies data sharing (interoperability) with Linux on x86. –  Improves Power I/O offerings with modern I/O adapters and devices, e.g. GPUs.

!  Creation of an LE operating system for Linux on Power means creating a whole new software “platform” (ppc64le) (in addition to BE ppc (32-bit) and BE ppc64 (64-bit)).

!  LE distributions for Linux on Power does NOT mean x86 applications magically run: applications must still be compiled for Power.

!  Power8 CPU can be either big or little endian % mixed endianness (big and little) on same system is possible.