SAP Memory Management Document: Maximum Virtual Memory Physical Memory + Operating System Swap Space
SAP Memory Management Document: Maximum Virtual Memory Physical Memory + Operating System Swap Space
Definition of
Virtual
Memory' ( When system memory runs low, Application uses space
allocate% from the har% %isk %ri)e to act as #A&. !his is the *)irtual
memory.* !he maximum amount of allocate% space is usually e+ual to
half the amount of #A& installe%. !his gi)es the computer -percent
more memory to run applications.
R/3 Buffer'
(
#01 Buffer is the part of Exten%e% &emory. It is accessible to all the
work process of same application ser)er. #01Buffer contains global
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 1/16
abap/heap_area_nondia'(
efines the limit for the amount of local memory
allocate% to non(%ialog work processes.
abap/heap_area_total ' (
efines the limit for the total amount of heap
memory allocate% to all work processes.
Extended
Memory'(
Exten%e%
&emory
also
comes
un%er
Share%
&emory. It
maintains
1:n
relation
with work
processes.
Exten%e% &emory contains 4ser 2ontext ata. 3ollowing are the
Parameters for the same'(
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 2/16
Heap
Memory'(
When your
Exten%e%
&emory is
full, Work
Process
start using
5eap
&emory
i.e.,
Pri)ate
&emory.
ther
processes cannot use Pri)ate 6heap7 memory. After releasing the
assigne% memory, the operating system still consi%ers the 6)irtual7
memory as being occupie% by the allocating process.
!he SAP system offers a mechanism that let you terminate non(acti)e
%ialog processes in the P#I8 mo%e. !his mechanism helps re%uce
performance problems.
abap/heaplimit (
!his )alue specifies the memory amount in bytes. When
this amount is excee%e%, a work process is restarte% after executing a
%ialog step.
Roll
Memory'(
When the
context of
a work
process
changes,
the %ata is
copie%
from the
roll area to
a common
resource
calle% the roll file. !o pre)ent repeate% copying, another roll buffer is
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 3/16
ztta/roll_first '( efines the first part of the roll area that is allocate% to a
%ialog process
ztta/roll_area'( efines the total roll area per work process
Paging
Memory'(
#01 Paging
&emory
contains
ABAP
b/ects
Extracts
an%
Exports.
3ollowing
are the
parameters for the same (
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 4/16
5ere the
below fin%
the
complete
picture of
#01
&emory
System
point of
8iew.
R/3 memory
Allocation
User
ontext
Data! "
In an #01
System,
many
front(en% users are connecte% to one are more application ser)ers. !he
work that users re+uest from the system is performe% in work
processes. 9ormally, there are fewer work processes than front(en%
users.
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 5/16
!he
!he roll
out sa)es
the user
context
%ata for
the %ialog
user when
he or she
exits the
work
process.
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 6/16
Work
process ;
is
occupie%
by another
user.
When user
;, who was formerly working in work process ;, is therefore
%ispatche% to work process :, the user context %ata is copie% into work
process : by the mechanism known as a *roll in*. 4ser ; can thus
continue from where he or she stoppe% in the earlier work process.
!he %ata
processe%
in work
processes
is store%
in two
memory
areas'
• <
!he
roll
area,
in which user context %ata is store%. 4ser context %ata may inclu%e
pointers to acti)e programs, set0get parameters 6relate% to the
most recent input of the user7, authori$ations, internal tables, an%
report lists.
• < !he paging area, which stores the application program %ata
that correspon% to specific ABAP comman%s inclu%ing E=!#A2!,
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 7/16
1 Wher
e there
is
buffer
space
a)ailable, the roll area an% the paging area are hel% in the
respecti)e buffers in the application ser)ers. When there is not
sufficient buffer space, the roll area an% the paging area must be
store% in the respecti)e physical %isk files 6roll file an% paging file7.
2 !hus, the user %ata processe% in work processes is store% in two
areas'
• 4ser
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 8/16
contexts are not only store% in roll files an% the correspon%ing
buffers. As of #01 #elease 1.-, they are primarily store% in #01
exten%e% memory.
• In #01 exten%e% memory, a large area of memory share% by all
a)ailable work processes can be accesse% through pointers. 4sing
exten%e% memory as well as roll files thus re%uces the amount of
copying from roll areas that is re+uire% %uring user context
switches, an% a)oi%s the o)erhea% cause% by large roll(in or roll(out
tasks.
Note : -
3 In #01 memory management'
• !o
keep
the
usage
of the
roll
area to
a
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 9/16
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 10/16
• !he user
+uota
%efines the
maximum
amount of
#01
exten%e%
memory
that can be
use% by any one user, an% is set with the parameter
$tta0rollextension.
• !he user +uota thus pre)ents one user from occupying all
a)ailable exten%e% memory.
•
• !he
remaining
portion of
#01 roll
memory is
use% when
the system
can no
longer
allocate #01
exten%e%
memory,
either because #01 exten%e% memory is full or because the +uota
has been reache%.
• !he
reason
for
using
the
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 11/16
• 5ea
p
• %ialo
g
process
that
was
force%
to
allocate
#01
heap
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 12/16
•
in ata
#01
roll
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 13/16
ata in #01 heap memory can ne)er lea)e the work process. If heap
memory is allocate%, the work process is exclusi)ely assigne% to one
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 14/16
P(ysical Memory Si*e' ( Physical memory is limite% to the si$e of the #A&
chips installe% in the computer. 8irtual memory is limite% by the si$e of
the har% %ri)e, so )irtual memory has the capability for more storage.
)irtual Memory: -When system memory runs low, Win%ows uses space
allocate% from the har% %isk %ri)e to act as #A&. !his is the *)irtual
memory.* !he maximum amount of allocate% space is usually e+ual to
half the amount of #A& installe%. !his gi)es the computer - percent
more memory to run applications.
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 15/16
management unit 6&&47 swaps the temporary files back into physical
memory files. !he act of mo)ing the files is known as *swapping* or
*paging.*
http://slide pdf.c om/re a de r/full/sa p-me mor y-ma na ge me nt-doc ume nt 16/16