From R/3 Release: 3.0A to: 3.1* OS Platform: all DB System: all Table of Contents Summary Introduction Tabl !u""rin# Ty$s %ro"il %aramtrs "or Tabl !u""rs &commndd Sttin#s %roblm Sol'in# &latd In"ormation (o$yri#ht Summary This articl dscribs th con"i#uration o" tabl bu""rs in &)3 and $ro'ids $ro"il $aramtrs and $roblm analysis. Introduction &adin# data "rom R/3 buffers *in 0.2 to + ms, can b u$ to 100 tims "astr than radin# it "rom th databas -hich may in'ol' a $hysical "il I). "rom th databas "ils *r/uirin# 0 to +00 ms,. &)3 bu""rs ar locatd in shard mmory so thy can b accssd by all -or1 $rocsss blon#in# to th instanc. 2ach instanc contains one o" ach o" th "ollo-in# ty$s o" &)3 bu""rs3
In a $roducti' systm, &)3 bu""rs should contain data -hich is "r/untly rad but sldom chan#d. 9hn chan#in# bu""r data, th $roblm o" radin# data -hich is not u$:to:dat can occur i" th &)3 Systm consists o" mor than on instanc *s "i#. 1,. To a'oid this $roblm, and noti"y othr instancs about chan#s to bu""rd data on a $articular instanc, th rl'ant data is mar1d as invalid in thos othr instancs. !u""rs can b in'alidatd in di""rnt -ays, d$ndin# on th ty$ o" bu""r. ;or tabl bu""rs in'alidation is carrid out asyncronously in th "ollo-in# st$s3 1. 9hn a bu""rd tabl is u$datd *throu#h insrts, or dlts, on a $articular instanc, th data is chan#d3 o on th databas o on th tabl bu""r "or th $articular instanc *s "i#. 1,.
2. .nc th data has bn chan#d, in"ormation about th chan#d data is insrtd into th tabl <<=.>, $ro'idd that th $ro"il $aramtr rdis!/bufrefmode is st to sendon" e#eauto *s "i#. 1,. $ote: Sttin# sendoff instad o" sendon dacti'ats th mchanism that insrts in"ormation about chan#s to bu""rd data into tabl <<=.>.
3. I" th $aramtr e#eauto is st, all instancs rad th tabl <<=.> at s$ci"ic intr'als d"ind by th $ro"il $aramtr rdis!/bufreftime. &adin# <<=.> nabls ach instanc containin# tabl bu""r data -hich is not u$:to:dat, to mar1 this data as in'alid. $ote: Sttin# e#eoff instad o" e#eauto dacti'ats th mchanism that rads in"ormation about not u$:to:dat bu""rd data "rom tabl <<=.>.
4. .nc th contnts o" a tabl bu""r mar1d as in'alid ar accssd, th 'alid data is rad "rom th databas. Ti!: !t-n bu""r r"rshs *bt-n t-o rads o" th tabl <<=.>,, usrs may rad data "rom th bu""rs that is not u$:to:dat. To a'oid out:o":dat rads, bu""r only tabls -hich ar rarly chan#d. ? !ac1 to To$ @ Table Bufferin% Ty!es )'ar)---)a$$s)con'rsion)tm$)scratch71)2393070+8.doc %a# 3 o" 9 In Technical setting "or a tabl in th A!A% dictionary, you can st -hthr and ho- a tabl should b bu""rd. Thr ar thr bu""rin# ty$s *s "i#. 2,3 &sidnt bu""rin# 9ith th "irst rad accss, all rcords o" th tabl ar loadd into th bu""r. >nric bu""rin# 9ith th "irst rad accss to on or mor rcords o" a #nric ara, all rcords o" th #nric ara ar loadd into th bu""r. A #nric ara corrs$onds to all th rcords o" a tabl that match a #nric 1y. To build th #nric 1y, s$ci"y th Number of key fields to b ta1n "rom th $rimary 1y. I" you choos n 1y "ilds, th systm ta1s th first n "ilds "rom th $rimary 1y. %artial bu""rin# 9hn "irst accssin# a sin#l rcord, that rcord alon is loadd into th bu""r.
Fi%&(& !u""rin# ty$s *shadd aras ar an Aam$l o" tabl aras -hich can b bu""rd in ach ty$ o" bu""rin#, Ti!3 9hn -ritin# $ro#rams -hich accss bu""rd tabls, it is im$ortant to 1no- -hich SB= statmnts us th bu""rs and -hich by$ass th bu""rs. ;or a dtaild list o" such statmnts, s .SS 6ot 47239 Behavior of table buffers. Tabl bu""rs rsid in t-o s$arat shard mmory aras on ach instanc as "ollo-s3
%artial bu""rs consist o" "rams o" "iAd siC *4D!,. .n rcord cannot Acd on "ram. Thus, only tabls -ith rcords smallr than 4D! can b bu""rd $artially. Th #nric 1y bu""r has th sam structur as th sin#l rcord bu""r b"or &)3 &las 3.0. 2'n a 'ry small tabl occu$is at last on "ram o" 4D!. As o" &las 3.0, mmory mana#mnt -ithin th #nric 1y bu""r is mor ""icint3 Emory is di'idd into bloc1s o" 28+ !yts !loc1s rlatd to a sin#l tabl ar usually conti#uous Ti!: Tabl bu""rs do not only contain Aistin# rcords, but also in"ormation about rcords not "ound in th dirctory o" th bu""r. !u""rin# o" many Fm$tyF rcords could lad to an Ahaustd dirctory o" th bu""r althou#h thr is nou#h "r s$ac "or th data. ? !ac1 to To$ @ Profile Parameters for Table Buffers To con"i#ur tabl bu""rs, us th rl'ant $ro"il $aramtrs listd blo-3
Profile Parameter Function rtbb)bu""r7ln#th SiC o" sin#l rcord tabl bu""r in D! rtbb)maA7tabls EaAimal numbr o" bu""rd tabls i$c)shm7$siC733 =ocation o" th $artial bu""r. Standard is 0 * G not in a $ool, Ccsa)tabl7bu""r7ara SiC o" #nric 1y tabl bu""r in byts Ccsa)db7maA7bu"tab EaAimal numbr o" bu""rd ob5cts i$c)shm7$siC719 =ocation o" th #nric)rsidnt bu""r. Standard is10 * G in $ool 10, )'ar)---)a$$s)con'rsion)tm$)scratch71)2393070+8.doc %a# 8 o" 9 rdis$)bu"r"mod SynchroniCation mod *sndon or sndo"", Aauto or Ao"",. Standard is sndon, Aauto. .thr combinations ar "or s$cial $ur$oss. rdis$)bu"r"tim Tim bt-n t-o synchroniCations in sconds i$c)shm7$siC74+ =ocation o" th bu""r synchroniCation tabl. ? !ac1 to To$ @ Recommended Settin%s Th "ollo-in# rcommndd sttin#s "or tabl bu""rs ar th rsult o" th A$rinc o" so"t-ar d'lo$rs and consultants. Thr cat#oris o" rcommndd sttin#s ar distin#uishd accordin# to th moduls on th instanc to b con"i#urd3
(at#ory 1 Th instanc has on o" th moduls ;I, AE, (., or H&. (at#ory 2 Th instanc has t-o o" th moduls ;I, AE, (., or H&. (at#ory 3 Th instanc has any othr combination o" moduls.
Im$ro' $r"ormanc on H%)H%%A and I!E)&S+000, by #rou$in# shard mmoris to#thr as shard mmory $ools to rduc th numbr o" shard mmoris. (on"i#uration must ta1 into account that th maAimum siC o" a shard mmory )'ar)---)a$$s)con'rsion)tm$)scratch71)2393070+8.doc %a# + o" 9 s#mnt is limitd by th o$ratin# systm. ;or Aam$l, on AII th maAimum siC is 28+E!. S th "ollo-in# .SS 6ots and thrin r"rncd 6ots3 .SS 6ot 807+ Shared Pool Space Exhausted; SH Problems !nder "#$ .SS 6ot 37837 Performance increase by Shared emory Pools ? !ac1 to To$ @ Problem Solvin% %oorly con"i#urd tabl bu""rs or unbu""rd tabls can caus $r"ormanc $roblms. In th "ollo-in#, th most critical $roblms ar dscribd3 Tabl bu""r Ahaustd Tabl not bu""rd Tabl too lar# "or bu""rin# In""icint SB= statmnts Table Buffer )#austed To corrct th siC o" tabl bu""rs, $rocd as "ollo-s3 1. ;rom th main mnu choos Tools "dministration onitoring Performance Setup)Buffers Buffers. *Altrnati'3 transaction cod ST02., 2. (hc1 -hthr th dis$layd 'alus "or %eneric key and Single record "ul"ill th conditions3 o ;r s$ac J 20K o ;r dirctory J 20K Ti!3 I" th tabl bu""rs ar too small, all r/uird data cannot b stord in th bu""rs. Instad, bu""rd tabls ar dis$lacd. Th Buffer State dis$layd in th tabl call statistics *transaction cod ST10, is ithr absent or displaced.
3. I" "r s$ac and "r dirctory conditions ar not "ul"illd *or a lot o" tabls ar dis$lacd,, ada$t th $ro"il $aramtrs to th rcommndd 'alus. 4. I" th $ro"il $aramtrs alrady "ul"ill th rcommndations, contact th SA% Hotlin. Table $ot Buffered To dal -ith unbu""rd tabls, $rocd as "ollo-s3 1. ;rom th main mnu choos Tools "dministration onitoring Performance Setup&Buffers Buffers. *Altrnati'3 transaction cod ST02., )'ar)---)a$$s)con'rsion)tm$)scratch71)2393070+8.doc %a# 7 o" 9 2. (hoos 'etail analysis mnu and -ithin th #rou$ Tables choos (all statistics. *Altrnati'3 transaction cod ST10., 3. =ist th not buffered tabls since the startup o" all servers 4. Sort th list -ith rs$ct to th columns "B"P&) Processor *e+uests Total and "B"P&) Processor *e+uests (hanges to "ind out -hich tabls "or bu""rin# ar o"tn accssd, but n'r or only rarly chan#d. Ti!3 >uidlins "or tabl bu""rin#3 <o not bu""r a tabl o" th SA% nam ran# -ithout consultin# SA%. <o not bu""r a tabl that is chan#d mor than onc $r day. <o not bu""r a tabl that is only rarly accssd. <o not bu""r a tabl that is lar#r than 1 E!. 2Ac$tion3 tabls o" bt-n 1 and 8 E! i" thy ar not chan#d. Ada$t th siC o" th tabl bu""rs i" ncssary. Table Too *ar%e For Bufferin%& Sinc &)3 &las 3.0, tabl bu""rs dis$lac bu""rd ob5cts -hn thr is not nou#h "r s$ac "or n- ob5cts to b loadd. This dis$lacmnt is critical "or $r"ormanc -hn th siC o" th tabl to b bu""rd is lar#r than th siC o" th bu""r. In that cas, tabls ha' to b rloadd into th bu""r a#ain and a#ain. A tabl is too lar# "or bu""rin# i"3 Th bu""r history sho-s a lot o" databas accsss, althou#h th siC o" th bu""r mts th rcommndations *transaction cod ST02,. Eany tabls ha' bu""rin# status absent or displaced *transaction cod ST10,. 9ithin tabl call statistics *transaction cod ST10,, a bu""rabl tabl sho-s hi#h databas acti'ity *list sortd by 'B activity *o,s affected,. I" a tabl is to lar# "or bu""rin#, you can ithr3 S-itch o"" th bu""rin# !u""r smallr #nric aras o" th tabl. Inefficient S+* statements& To analyC in""icint SB= statmnts, us th SB= trac. Th SB= trac chronolo#ically lists all databas r/usts throu#h th databas intr"ac. Th in"ormation dis$layd hl$s you to tun th accsss "or non:bu""rd tabls. This can im$ro' a$$lication $r"ormanc considrably. To obtain an SB= trac3 1. 2Acut th $ro#ram you intnd to trac, to nsur that that $ro#ramLs bu""rabl databas r/usts ar bu""rd. 9hn you Acut th $ro#ram a#ain, -ith th SB= trac runnin#, th trac masurs only th databas accsss o" non:bu""rd tabls. 2. To run th SB= Trac, "rom th mnu choos System !tilities S-. trace. *Altrnati'3 transaction cod ST08., (hoos Trace on and, -hn r/uird, ntr th nam o" th usr -hos databas acti'itis you -ant to trac. 3. Th usr -hos nam is ntrd should no- Acut th transaction or $ro#ram and carry out all th acti'itis you -ant to masur. )'ar)---)a$$s)con'rsion)tm$)scratch71)2393070+8.doc %a# 0 o" 9 4. To sto$ th SB= trac, rturn to th main S-. Trace scrn *transaction cod ST08, and choos Trace off. Sinc th amount o" data -rittn is hi#h, o$timiC systm $r"ormanc by s-itchin# o"" th trac as soon as you "inish rcordin# your a$$lication. 8. To dis$lay a trac "il, on th main S-. Trace scrn *transaction cod ST08, choos .ist trace and, -hn r/uird, ntr usr nam, start dat and start tim o" th trac you r/uir. To us th dis$layd in"ormation ""cti'ly, you nd $rcis 1no-ld# o" th &<!ES and o" th &)3 Systm. Ti!3 S also3 &)3Ms Extended Help, choosin# Basis (omponents "B"P&) 'evelopment /orkbench "B"P&) /orkbench Tools S-. Trace Tool. Th &)3 Dno-ld# %roducts (< System onitoring, choosin# Specific Problem S-. Trace. ? !ac1 to To$ @ Related Information S also3 .SS 6ot 3801 Status of a Table in the Buffer .SS 6ot 3+203 #nformation on Buffers and Synchroni0ation .SS 6ot 47239 Behavior of Table Buffers .SS 6ot 713+4 (ollective note1 onitoring1 ST2)3 'B243 ST523 ST26 Th &)3 Dno-ld# %roducts (< System onitoring S,P Tec$et -no.led%e Base ,rticle To!ic: Systm Eonitorin# Subto!ic: Tunin# %r"ormanc -ey.ords: &)3 bu""rs, tabl bu""r, bu""r synchroniCation, bu"r"mod, bu"r"tim, <<=.>, rsidnt bu""rin#, #nric bu""rin#, $artial bu""rin#, bu""r status, tabl statistics