Memory Management simplifications in ABAP Kernel 7.4*



Similar documents
SAP BW on HANA & HANA Smart Data Access Setup

SAP BusinessObjects Business Intelligence 4 Innovation and Implementation

SAP Landscape Transformation (SLT) Replication Server User Guide

Sybase ASE Linux Installation Guide Installation and getting started guide for SAP Sybase ASE on Linux

SAP PartnerEdge Program: Opportunities for SAP-Authorized Resellers

How-to guide: Monitoring of standalone Hosts. This guide explains how you can enable monitoring for standalone hosts in SAP Solution Manager

Agentry and SMP Metadata Performance Testing Guidelines for executing performance testing with Agentry and SAP Mobile Platform Metadata based

LVS Troubleshooting Common issues and solutions

Set Up Hortonworks Hadoop with SQL Anywhere

Open Items Analytics Dashboard System Configuration

LHI Leasing Simplifying and Automating the IT Landscape with SAP Software. SAP Customer Success Story Financial Services Provider LHI Leasing

Extend the SAP FIORI app HCM Timesheet Approval

Create and run apps on HANA Cloud in SAP Web IDE

Using SAP Crystal Reports with SAP Sybase SQL Anywhere

How to Extend a Fiori Application: Purchase Order Approval

Configuring Java IDoc Adapter (IDoc_AAE) in Process Integration. : SAP Labs India Pvt.Ltd

Nine Reasons Why SAP Rapid Deployment Solutions Can Make Your Life Easier Get Where You Want to Be, One Step at a Time

Creating a Fiori Starter Application for sales order tracking

Consumption of OData Services of Open Items Analytics Dashboard using SAP Predictive Analysis

Using Database Performance Warehouse to Monitor Microsoft SQL Server Report Content

SAP Sybase Adaptive Server Enterprise Shrinking a Database for Storage Optimization 2013

How to Implement a SAP HANA Database Procedure and consume it from an ABAP Program Step-by-Step Tutorial

SAP CRM Service Manager 3.1 Mobile App Extended Feature List An extended list of all the features included in the default delivery of the SAP CRM

Setting up Single Sign-On (SSO) with SAP HANA and SAP BusinessObjects XI 4.0

Active Quality Management

SAP Security Recommendations December Secure Software Development at SAP Embedding Security in the Product Innovation Lifecycle Version 1.

Installing and Configuring the HANA Cloud Connector for On-premise OData Access

SAPFIN. Overview of SAP ERP Financials COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Setting up Single Sign-On (SSO) with SAP HANA and SAP BusinessObjects XI 4.0

Design Thinking for. Requirements Analysis

HR400 SAP ERP HCM Payroll Configuration

AC200. Basics of Customizing for Financial Accounting: General Ledger, Accounts Receivable, Accounts Payable COURSE OUTLINE

Compare & Adjust How to Guide for Compare & Adjust in SAP Solution Manager Application Lifecycle Management

SAP BUSINESS PLANNING AND CONSOLIDATION 10.0, VERSION FOR SAP NETWEAVER, POWERED BY SAP HANA STARTER KIT FOR USGAAP

SAP BusinessObjects Dashboarding Strategy and Statement of Direction

Certification Guide Network Connectivity for SAP on Premise and Cloud Solutions Integration

Backup Strategy for Oracle

SAP Thought Leadership Paper Engineering, Construction, and Operations. Beyond Enterprise Resource Planning Construction in the ipad Age

SAP White Paper Enterprise Information Management

TM111. ERP Integration for Order Management (Shipper Specific) COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

How To... Master Data Governance for Material: Create Custom Print forms. Applicable Releases: MDG 7

BW Source System: Troubleshooting Guide

How To Install The Sap Business Explorer 7.X 2.X (Sap) On A Windows 7.30 Computer (Windows 7)

Five Strategies Small and Medium Enterprises Can Use to Successfully Implement High Value Business Mobility

SAP Solution Manager - Content Transfer This document provides information on architectural and design questions, such as which SAP Solution Manager

How To... Master Data Governance for Material: Maintenance for multiple Materials in one Change Request. Applicable Releases: all

Implementing an Enterprise Information Management Strategy An Approach That Mitigates Risk and Drives Down Costs

Cloud Single Sign-On and On-Premise Identity Federation with SAP NetWeaver Cloud White Paper

Training.sap.com User Guide

What's New in SAP BusinessObjects XI 3.1 Service Pack 5

HANA Input Parameters with Multi-Values to Filter Calculation Views

SAP PartnerEdge Program Guide for Language Services Partners

Setting up the Environment for Creating or Extending SAP Fiori Apps

SAP Business One OnDemand. SAP Business One OnDemand Solution Overview

SAP Work Manager 6.0 Mobile App Extended Feature List

SAP BusinessObjects Edge BI, Standard Package Preferred Business Intelligence Choice for Growing Companies

Enterprise Software - Applications, Technologies and Programming

Crystal Reports Server Embedded 2008 with Service Pack 7 for Windows Supported Platforms

Quick Guide to the SAP Customer Relationship Management Rapid- Deployment Solution (based on EhP1) Demo/Evaluation Appliance

Streamlined Planning and Consolidation for Finance Teams in Any Organization

Getting Started with Scope and Effort Analyzer (SEA) ALM Solution Management, AGS, SAP AG

Table of Contents. How to Find Database Index usage per ABAP Report and Creating an Index

Data Governance. Data Governance, Data Architecture, and Metadata Essentials Enabling Data Reuse Across the Enterprise

Process Archiving using NetWeaver Business Process Management

ForFarmers: SAP Business Communications Management for Call Center Workload Distribution

Budget Control by Cost Center

Demand Planning. SAP Business ByDesign

SAP NetWeaver Decision Service Management in SAP CRM for Utilities

Optimized Shift Planning and Scheduling Creating Shifts and Aligning Resources to Match the Forecasted Workload

How to... Master Data Governance for Material: Use the Data Import Framework for Material. Applicable Releases: EhP6, MDG 6.1, MDG 7.

SAP NetWeaver BRM 7.3

SAP Enterprise Master Data Management - Licensing Agreements and Recommendations

BICS Connectivity for Web Intelligence in SAP BI 4.0. John Mrozek / AGS December 01, 2011

Log Analysis Tool for SAP NetWeaver AS Java

Integration of SAP Netweaver User Management with LDAP

User Experience in Custom Apps

SAP BusinessObjects Edge BI, Preferred Business Intelligence. SAP BusinessObjects Portfolio SAP Solutions for Small Businesses and Midsize Companies

SAP Thought Leadership SAP Customer Relationship Management. Strengthen the Brand and Improve

SAP HANA. SAP HANA Performance Efficient Speed and Scale-Out for Real-Time Business Intelligence

Sizing and Deployment of the SAP Business One Cloud Landscape. SAP Business One Cloud Landscape Workshop

SAP Master Data Governance- Hiding fields in the change request User Interface

Intelligent Business Operations Chapter 1: Overview & Strategy

Guide to the SAP Extended Business Program

Application Lifecycle Management

Additional Guide to Implementing the SAP CRM Service Management rapiddeployment

Understanding HR Schema and PCR with an Example

Within Budget and on Time

UI Framework Simple Search in CRM WebClient based on NetWeaver Enterprise Search (ABAP) SAP Enhancement Package 1 for SAP CRM 7.0

SAP Briefing Brochure. Solutions. October 2010

Made to Fit Your Needs. SAP Solution Overview SAP Solutions for Small Businesses and Midsize Companies

USDL XG WP3 SAP use case. Kay Kadner

SAP CRM on HANA HANA Limited Runtime SAP 360 Customer. December 19 th, 2012

Quick Guide EDI/IDoc Interfacing to SAP ECC from External System

Alert Notification in SAP Supply Network Collaboration. SNC Extension Guide

Secure MobiLink Synchronization using Microsoft IIS and the MobiLink Redirector

An Overview of the SAP Business One Cloud Landscape. SAP Business One Cloud Landscape Workshop

The Power of Instant Customer Insight

H2G Install SAP Web IDE locally for trial (Mac version)

SAP Service Tools for Performance Analysis

Transcription:

Memory Management simplifications in ABAP Kernel 7.4*

TABLE OF CONTENTS OVERVIEW. 3 NEW PARAMETER FORMULAS 3 TROUBLESHOOTING.. 4 512 GB LIMIT. 5 CONCLUSION 5 2

OVERVIEW This paper describes Memory Management parameterization changes in 7.4* kernel. The main goal of these changes was simplification: the administrator will be enabled by setting only one profile parameter PHYS_MEMSIZE to automatically initiate changes of dependent parameters. This is a fast way to scale the ABAP instance memory consumption. Within the context of this development the old fashioned Zero Admin MM for Linux and Windows - was extended to all other operating systems and - reimplemented via formula based parameters More information about the Zero Administration in previous releases can be found in: http://help.sap.com/saphelp_erp60_sp/helpdata/en/3c/05863c6800924fe10000000a114084/content.htm http://help.sap.com/saphelp_erp60_sp/helpdata/en/84/7ed384d81f11d188be0000e83539c3/content.htm NEW PARAMETER FORMULAS The formulas may depend on kernel release and operating system. You can get a list of parameters with formula based default values e.g. with help of sappfpar executable. Below is an example for kernel 7.41 PL22 on Linux: > sappfpar all grep "SAP: (" abap/buffersize = (ceil($(em/initial_size_mb)*1024*0.15/4096) * 4096) abap/heap_area_total = (max($(phys_memsize)*1024*1024 * 0.1, $(abap/heap_area_dia) * 2 )) abap/programs = ($(abap/buffersize)/4) abap/shared_objects_size_mb = (min(20000, $(em/initial_size_mb)*0.02)) em/blocksize_kb = (ceil($(em/initial_size_mb) * 1024 / 100000 / 4096) * 4096) em/global_area_mb = (min($(em/initial_size_mb) * 0.05, 32000)) em/initial_size_mb = (min(512000, $(PHYS_MEMSIZE) * 0.7)) em/max_size_mb = ($(em/initial_size_mb)) rdisp/pg_shm = (max(min(1000+40*max(5,floor(($(phys_memsize)-128)*25/128)),16384),1024)) rdisp/max_websocket_connections = ( $(rdisp/tm_max_no) / 2 ) rdisp/wp_ca_blk_no = ($(rdisp/elem_per_queue)*3) rsdb/ntab/entrycount = ($(zcsa/db_max_buftab)) rsdb/ntab/ftabsize = (min(500000, ($(rsdb/ntab/entrycount)))) rsdb/ntab/irbdsize = ($(rsdb/ntab/ftabsize) * 0.2) rsdb/ntab/sntabsize = ($(rsdb/ntab/ftabsize) * 0.1) rsdb/obj/buffersize = (max(4096,$(phys_memsize)*1024 * 0.01)) rsdb/obj/max_objects = (max(2000,$(rsdb/obj/buffersize) / 4)) rsts/ccc/cache07 = ($(rsts/ccc/cachesize) * 0.1) rtbb/buffer_length = ($(zcsa/table_buffer_area) * 0.1 / 1024) rtbb/max_tables = ($(zcsa/db_max_buftab) * 0.1) zcsa/db_max_buftab = (max(20000,$(zcsa/table_buffer_area) / (5 * 1024) )) zcsa/table_buffer_area = (min(3333333333, (max(30000000,($(em/initial_size_mb) * 1024 * 1024 * 0.1))))) ES/SHM_MAX_SHARED_SEGS = ( ($(em/global_area_mb) + $(abap/shared_objects_size_mb) + $(rtbb/buffer_length)/1024 + $(zcsa/table_buffer_area)/1024/1024 ) / $(ES/SHM_SEG_SIZE) + 1 ) Formulas support in the profiles is implemented as of kernel 7.40, described in: http://help.sap.com/saphelp_nw74/helpdata/en/a7/d631e255594dc19899706a3a7c3fe8/content.htm?frames et=/en/51/319798cc7a428a896af0bc2a00adc7/frameset.htm 3

sappfpar can also be used for checking your profile: >sappfpar pf=<profilename> check_formula ***WARNING: formula parameter: abap/buffersize = 350000 found in profile Errors detected: 0 Warnings detected.: 1 In the example above the parameter abap/buffersize that has been set to a fix value although its default value is a formula, was found. TROUBLESHOOTING In this section we would like to analyze a real life example from an administrator s point of view. A system consisting of 2 ABAP instances is installed on a host with 64GB main memory. Every instance is running with PHYS_MEMSIZE=30% setting in profile. Customers experience sporadic memory lack issues - Rabaxes - EmAlloc failed errors in dev trace - Extended Memory Dump in dev trace Examples for memory lack Rabaxes are: TSV_TNEW_PAGE_ALLOC, LOAD_NO_ROLL, STRING_LENGTH_TOO_LARGE, TSV_TNEW_BLOCKS_NO_ROLL_MEMORY The administrator is analyzing Extended Memory Dumps in dev traces, they appear as shown below: Extended Memory Dump Act. USER SUM IM0 IM1 SAP_SMDMON(T52_U5144_M0) [ 0.9] > 0.8< ------ 0990FUSRABCD(T461_U4228_M0) [ 23.8] > 23.6< ------ USER_TEST_12(T461_U4228_M0) [ 23.8] > 23.6< ------ # CHAIN OWNER STATE 0 0 ***free*** free 1 1 EG_GLOBAL_AREA shared 2537 1 EG_GLOBAL_AREA shared 2538 2538 SAP_SMDMON(T6_U377_M0) detached 2539 2539 K8NZDJEQHUR(T558_U15419_M0) detached The administrator can t identify any particular user which is using too much memory. This means that the server has been overloaded sporadically, i.e. at peak times when many users are working simultaneously. 4

Proposed solution: set PHYS_MEMSIZE=45% in the profile to allow every instance to use 64GB * 0.45 = 28,8GB main memory. This will automatically increase the value of dependent parameters, e.g: PHYS_MEMSIZE=30% PHYS_MEMSIZE=45% em/initial_size_mb 13653 (MB) 20480 (MB) abap/heap_area_total 20452265165 (Byte) 30678397747 (Byte) Keep in mind that the instance has to be restarted for activating its new values! PHYS_MEMSIZE can be also set to absolute values instead of percentage: PHYS_MEMSIZE=40000 which would mean Megabytes in the Example above. 512 GB LIMIT FOR ALL OPERATING SYSTEMS PHYS_MEMSIZE is not a hard limit for an ABAP instance. This is a guide value to make the instance aware about the amount of main memory it should use. This limit can be overrunned in heavy load scenarios. Kernel 7.4* has been tested up to PHYS_MEMSIZE=512000 settings. It is not recommended to run a singular ABAP instance with more than 512000 MB. Warnings in dev traces would give you a hint if you are trying to run an instance with more than that memory size, e.g.: * WARNING=>DpCheckParams: invalid value for PHYS_MEMSIZE=600000 [dpinit.c] * WARNING=>DpCheckParams: check message: Parameter value out of range (16512000) [dpinit.c] It is recommended to use default memory management models on every OS: es/implementation = std (Unix) es/implementation = view (Windows) ES/TABLE = UNIX_STD (Unix) ES/TABLE = SHM_SEGS (AIX only) The memory management parameter formulas have been optimized for the memory model cases above. The only platform has been optimized not for default case only is OS/400 which has been tuned for both UNIX_STD and SHM_SEGS memory models. CONCLUSION Formula based parameters introduced in 7.4* and supported for all operating systems offer a new simplified way of administration for ABAP instances in an SAP system. They will be used in ABAP server memory management already. About the author: Gennady Maly is working at SAP development since 2001. 5

www.sap.com 2014 SAP AG. All rights reserved. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer, StreamWork, SAP HANA, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects Software Ltd. Business Objects is an SAP company. Sybase and Adaptive Server, ianywhere, Sybase 365, SQL Anywhere, and other Sybase products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Sybase Inc. Sybase is an SAP company. Crossgate, m@gic EDDY, B2B 360, and B2B 360 Services are registered trademarks of Crossgate AG in Germany and other countries. Crossgate is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group 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.