Professional Documents
Culture Documents
Memorymanagement
Memorymanagement
Management (an
Overview)
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.
Process Flow
Pres.
server
DB Server
Table
buffer
Dispatcher
Queue
dispatche
r
SAP
GUI
SAP Extended
Memory
Program
buffer
DDIC
Buffer
Databas
e
buffer
SAP Roll
Memory
Work Process
DB Process
Work Process
DB Process
Work Process
DB Process
: 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 area
(local)
copy
copy
Work
Process1
ztta/roll_first
ztta/roll_area
Work
Process2
rdisp/roll_SHM
Roll In /
Roll Out
Roll file
rdisp/roll_MAXFS
- ztta/roll_area
- rdisp/ROLL_SHM
- rdisp/ROLL_MAXFS
em/initial_size_MB
ztta/roll_extension
abap/heaplimit
Heap
Memory
(local)
abap/heap_area_(non)dia
abap/heap_area_total
UserIndependent
Data
User Context
Roll memory to
Roll memory to
Roll memory to
Roll memory to
zttz/roll_first
zttz/roll_extension
zttz/roll_area
abap/heap_area_dia
Copying data
during context
change
UserIndependent
Data
User Context
Roll memory to
Roll memory to
Roll memory to
zttz/roll_area
abap/heap_area_dia
zttz/roll_extension
Copying data
during context
change
Server
Global Memory (shared memory)
Local memory
SAP buffers
Additional local
(User Context)
Local
Local
Local
memory
memory
memory
1:1
1:n
SAP Roll File
SAP Paging File
Work
Work
Work
Process
Process
Process
em/initial_size_MB
User Context
User Independent
WP
Local
abap/heap_area_(non_)dia
SAP
Roll
Buffers
Memory
(Shared)
(local)
(Shared)
(Shared)
Address Space
SAP Work
Process
em/initial_size_MB
SAP Extended Memory Total
em/address_space_MB
User Context
User Independent
WP
Local
abap/heap_area_(non_)dia
SAP
Roll
Buffers
Memory
(Shared)
(local)
(Shared)
(Shared)
Address Space
SAP Work
Process
- End of
Presentation -