SAP Memory Management (an Overview)

Slides:



Advertisements
Similar presentations
Enterprise Wide Information Systems SAP R/3 Overview & Basis Technology 1.
Advertisements

Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
SAP Memory Management (an Overview)
Buffers & Spoolers J L Martin Think about it… All I/O is relatively slow. For most of us, input by typing is painfully slow. From the CPUs point.
Part IV: Memory Management
Monitor & Analyse System
Chapter 3 Process Description and Control
Acknowledgments Byron Bush, Scott S. Hilpert and Lee, JeongKyu
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
1 - Oracle Server Architecture Overview
University of Southern California Enterprise Wide Information Systems SAP R/3 Overview & Basis Technology Instructor: Richard W. Vawter.
Harvard University Oracle Database Administration Session 2 System Level.
Chapter 9 Virtual Memory Produced by Lemlem Kebede Monday, July 16, 2001.
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
A Guide to Oracle9i1 Introduction to Oracle9i Database Administration Chapter 11.
Overview SAP Basis Functions. SAP Technical Overview Learning Objectives What the Basis system is How does SAP handle a transaction request Differentiating.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Operating Systems  By the end of this session, you will know: What an Operating System is. The functions it performs.
Chapter 3 Process Description and Control
CGS 3763 Operating Systems Concepts Spring 2013 Dan C. Marinescu Office: HEC 304 Office hours: M-Wd 11: :30 AM.
Processes and OS basics. RHS – SOC 2 OS Basics An Operating System (OS) is essentially an abstraction of a computer As a user or programmer, I do not.
BW Know-How Call : Performance Tuning dial-in phone numbers! U.S. Toll-free: (877) International: (612) Passcode: “BW”
6 Memory Management and Processor Management Management of Resources Measure of Effectiveness – On most modern computers, the operating system serves.
User Dialog Overview. Update Statement TABLES customers. SELECT SINGLE * FROM customers WHERE id = 1. IF sy-subrc = 0. customers-name = ‘John’. UPDATE.
Chapter 7 Operating Systems. Define the purpose and functions of an operating system. Understand the components of an operating system. Understand the.
Chapter 4 Memory Management Virtual Memory.
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
11.1 Silberschatz, Galvin and Gagne ©2005 Operating System Principles 11.5 Free-Space Management Bit vector (n blocks) … 012n-1 bit[i] =  1  block[i]
Memory Management OS Fazal Rehman Shamil. swapping Swapping concept comes in terms of process scheduling. Swapping is basically implemented by Medium.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
Introduction to ABAP/4 A dvanced B usiness A pplication P rogram – Release 4 Why Use ABAP? –Programming language of SAP –Main purpose is to provide additional.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
Online | classroom| Corporate Training | certifications | placements| support Contact: USA : , India.
Virtual Memory (Section 9.3). The Need For Virtual Memory Many computers don’t have enough memory in RAM to accommodate all the programs a user wants.
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Enterprise Wide Information Systems SAP R/3 Overview & Basis Technology Instructor: Richard W. Vawter.
Introduction to Kernel
Memory Management.
Processes and threads.
Chapter 2 Memory and process management
Chapter 8: Main Memory.
Chapter 3: Process Concept
Chapter 11: File System Implementation
Structure of Processes
Main Memory Management
Introduction of Week 3 Assignment Discussion
Operating System Concepts
Memory Management 11/17/2018 A. Berrached:CS4315:UHD.
System Structure and Process Model
So far… Text RO …. printf() RW link printf Linking, loading
Memory Management-I 1.
Main Memory Background Swapping Contiguous Allocation Paging
Process & its States Lecture 5.
Chapter 33: Virtual Machines
Process Description and Control
Lecture 3: Main Memory.
Modern PC operating systems
Chapter 8: Memory Management strategies
Chapter 3: Processes.
Lecture 7: Flexible Address Translation
Lecture 3: Main Memory.
COMP755 Advanced Operating Systems
In Today’s Class.. General Kernel Responsibilities Kernel Organization
Chapter 33: Virtual Machines
Page Main Memory.
Presentation transcript:

SAP Memory Management (an Overview) Radityo Yudhiarto / 14022006

SAP Memory Management SAP Memory areas overview : SAP Buffer SAP Roll Memory SAP Extended Memory SAP Heap Memory SAP Paging Memory Fixed Local Memory of the SAP work Process Main factors in configuring SAP Memory : Physical Main Memory (RAM)  give attention to ratio between physical and virtual memory Operating system options and restrictions  compare between 32 and 64 bit system architecture

Memory management fundamental : The word “memory”  virtual memory  physical main memory + swap space  local memory + shared memory The maximum amount of virtual memory that can be allocated is limited by two variable : Result of physical hardware restriction Maximum address space permited by operating system The Operating System manages two type of memory : Local memory  allocated precisely to one operating system process Shared memory  accessible to multiple operating system process

User Context Reffered : Data which is generated by transaction process Variables, Internal table & screen list New sesion = new user context Data is stored independently in different memory areas Stored in SAP roll memory, SAP extended memory, & SAP Heap Memory Sesions divide into : External sesion  opened explicitly by user Internal sesion  Opened implicitly by program submit, call transaction, call dialog, call screen, call function in update task, call function in background task, and call function starting new task.

Pres. server SAP Application Sever DB Server SAP GUI Process Flow SAP Extended Memory Dispatcher Queue SAP Roll Memory dispatcher Table buffer Program DDIC Buffer Work Process DB Process Database Process Flow

SAP Roll Memory Local SAP Roll area of work process - The initial part of user context stored - Each SAP work process can only access its own roll area Shared SAP Roll Area - Accessible to all of instance work processes - Buffer to temporary keep user context when a user is assigned to new work process Roll in : copying user context from shared roll area to local roll area Roll Out : copying user context from local roll area to shared roll area

Roll buffer (shared memory) Roll area (local) Roll file (disk) Work Process1 Work Process2 copy Roll file Roll (local) Roll Buffer (shared) Roll In / Roll Out rdisp/roll_SHM rdisp/roll_MAXFS ztta/roll_first ztta/roll_area

SAP Roll area parameters - ztta/roll_first : First amount of roll area used in a dialog WP - ztta/roll_area : size of the local SAP Roll area in the work process rdisp/ROLL_SHM : size of SAP roll Buffer rdisp/ROLL_MAXFS : size of entire shared SAP roll area

SAP Extended Memory Shared memory which mostly of user context stored All SAP work process can edit stored user context directly Roll in rather only copied the address (pointer) of where a user context located on the SAP extended memory. makes roll process much faster ztta/roll_extension em/initial_size_MB

SAP Extended Memory main parameters : em/initial_size_MB : size of SAP extended memory allocated when the SAP instance starts up em/blocksize_KB : size block which split SAP Extended Memory ztta/roll_extension : maximum size of a user context in the SAP Extended memory

Area which allocated variably as local memory as required. SAP Heap Memory Area which allocated variably as local memory as required. Released after a transaction is complete. SAP Heap Memory main parameters : abap/heap_area_dia : quotas oh SAP heap memory that a dialog process can allocated. abap/heap_area_nondia : quotas oh SAP heap memory that a nondialog process can allocated. abap/heap_area_total : size that can be allocated in total by all work process. abap/heaplimit : Workprocess restart limit of heap memory Heap Memory (local) abap/heap_area_(non)dia abap/heap_area_total

User-Independent Data Sequence in which memory is allocated (dialog work process) : User-Independent Data Roll memory to zttz/roll_first zttz/roll_extension zttz/roll_area abap/heap_area_dia 1 2 3 4 User Context Copying data during context change Mapping the data during context change Data stays in work process No context switch possible Work process in private mode

User-Independent Data Sequence in which memory is allocated (non-dialog work process) : User-Independent Data Roll memory to zttz/roll_extension zttz/roll_area abap/heap_area_dia 1 2 3 User Context Copying data during context change Mapping the data during context change Data stays in work process No context switch possible Work process in private mode

SAP EG Memory and SAP Paging Memory  Data can be stored globally between user context SAP Extended Global Memory Used to store data across user context Allows fast & copy-free switching based on mapping. Substracted from SAP Extended Memory to calculate the remaining storage space configured using em/global_area_MB parameters

Object that stored in the SAP Paging Memory : ABAP data cluster stored temporarily with ABAP statement IMPORT/EXPORT FROM/TO MEMORY Parameter transferred when programs and transaction called SUBMIT REPORT, CALL TRANSACTION, CALL DIALOG, CALL SCREEN, CALL FUNCTION IN UPDATE TASK, CALL FUNCTION BACKGROUND TASK, CALL FUNCTION STARTING NEW TASK  Data extracts created by statement EXTRACT (up to basis 4.5) SAP Paging Memory Main Parameters : rdisp/PG_MAXFS : Size of SAP Paging Memory rdisp/PG_SHM : Size of SAP Paging Buffer (shared memory) Error caused by SAP Paging Memory : TSV_TNEW_PG_CREATE_FAILED SYSTEM_NO_MORE_PAGING

Global Memory (shared memory) Local memory Server Global Memory (shared memory) Local memory SAP buffers (contains e.g SAP Programs) Additional local heap memory (if required) SAP roll buffer Extended Memory (User Context) Local memory Local memory Local memory SAP paging buffer 1 : 1 1 : n SAP Roll File Work Process Work Process Work Process SAP Paging File

Configuring & Monitoring SAP Memory Areas Main Objective :  Performance  Stability Main Factors to be considered : Physical Main Memory (RAM) Swap space or paging file of the operating system Operating system restriction

Next points to be considered : Total Main Memory Requirement Number of Computer Several SAP instances per computer SAP extended memory and roll buffer Memory for SAP work process Database Instance Zero administration memory magement : PHYS_MEMSIZE parameter defines how much of a computer’s total physical memory should be used for the SAP instance.

Address Space Restriction (Unix) User Independent WP Local SAP Buffers (Shared) User Context Roll Memory SAP Extended Memory SAP Heap Memory (local) em/initial_size_MB abap/heap_area_(non_)dia Address Space SAP Work Process

SAP Extended Memory Total Address Space Restriction (Windows) User Independent WP Local SAP Buffers (Shared) User Context Roll Memory SAP Extended Memory SAP Heap Memory (local) em/address_space_MB abap/heap_area_(non_)dia Address Space SAP Work Process SAP Extended Memory Total em/initial_size_MB

Assistance With Troubleshooting Error because of incorect memory area configuration : Operating System can not start because the operating system cannot provide the requsted memory area Session terminations  User is logged off ABAP Program termination. Four error factors : Program errors (e.g endless loop) SAP Profile parameters are set incorectly The Swap Space on the operating system is not large enough Configuration parameters of the operating system are set incorectly or OS limits have been reached.

ABAP Program Termination : The memory of user context is used up : STORAGE_PARAMETERS_WRONG_SET, SYSTEM_ROLL_IN_ERROR, TSV_TNEW_BLOCKS_NO_ROLL_MEMORY, TSV_TNEW_PAGE_PAGE_ALLOC_FAILED, TSV_TNEW_INDEX_NO_ROLL_MEMORY System can not create the program buffer because there is not not sufficient shared memory at that time PXA_NO_SHARED_MEMORY The Program encounters a memory bottleneck during an operation in the database interface DBIF_RTAB_NO_MEMORY, DBIF_RSQL_NO_MEMORY The Program encounters a memory bottleneck during sorting. EXSORT_NOT_ENOUGH_MEMORY Attemp to create error log fails after a terminated program due to lack of memory. RABAX_CALLING_RABAX The SAP paging memory is used up SYSTEM_NO_MORE_PAGING, TSV_TNEW_PAGE_ALLOC_FAILED The memory for SET/GET parameter (SPA/GPA memory) is used up. SET_PARAMETER_MEMORY_OVERFLOW Volume limit of memoy allocated to single call (ztta/max_memreq_MB) is set too low SYSTEM_NO_ROLL

- End of Presentation -