Beruflich Dokumente
Kultur Dokumente
Memory for MIPS: Leveraging Big Memory on System z to Enhan e !B2 CP" Effi ien y
Mi higan !B2 "sers #ro$p May 1%& 2012
Information Management
Information Management
,gen-a
.he $rrent )an-s ape #etting yo$r ($ffer poo) ho$se in or-er Being (o)- / ($t not re 0)ess / in as0ing for more rea) storage for a !B2 s$(system 1e2 opport$nities for e3p)oiting 'ELE,SE4!E,LL5C,.E6 5ther 2ays to tra-e memory for MIPS
Information Management
Information Management
:hat;s -riving the tren- to2ar-s )arger z85S LP,' memory sizes<
/ .he -esire for =(a)an e-> onfig$rations
? Pro essing apa ity 4(ase- on n$m(er an- spee- of engines in z85S images6 0eeps gro2ing ? zEC12 server: $p to 101 engines& ea h pa 0ing a(o$t 1000 MIPS of apa ity ? 1ot $n$s$a) to see 10@20 #B of rea) storage per engine
AA
Information Management
Information Management
Zzzzz
Information Management
I a)) this memory for MIPS& an- that;s 2hat this presentation is a)) a(o$t
Information Management
Information Management
:hat I meanG
Before en)arging a !B2 s$(system;s ($ffer poo) onfig$ration& ma0e s$re that yo$;re getting the most o$t of the onfig$ration as $rrent)y size-
Information Management
:or0 fi)e ta()e spa es are -ifferent from others in a o$p)e of 2ays that have imp)i ations for re ommen-e- ($ffer poo) parameter settings
/ Hor one thing& a)most a)) rea-s are of the prefet h variety
? :hy that matters: the -efa$)t va)$e of the KPSEL. ($ffer poo) parameter 4the per entage of a poo);s pages that an (e o $pie- (y pages rea- into memory via prefet h6 is F0 ? Stay 2ith that& an- yo$;)) (e 2asting 20M of the ($ffers in a poo) -e-i ate- to 2or0 fi)e ta()e spa es ? In reasing KPSEL. to A%@AAM for a 2or0 fi)e@-e-i ate- poo) sho$)- res$)t in -e rease- rea- I85 a tivity& an- fe2er I85s means )ess CP" ons$mption
10 2013 IBM Corporation
Information Management
/ :or0 fi)es are )i0e s rat h pa-s for N$ery pro essing / they are not re overe- 2hen !B2 is restarte- 4N$eries 2o$)- (e res$(mitte-6
? .herefore& on)y nee- a )eve) of hange-@page e3terna)ization a tivity that is s$ffi ient to prevent thrashing 4i+e+& avoi- shortage of stea)a()e ($ffers6 ? He2er page 2rites O )ess CP" ons$mption ? I;ve seen E0870 $se- for !:L.8K!:L.& an- a)so F08%0 ? But dont take this too far
11 2013 IBM Corporation
Information Management
/ :ith !:L. an- K!:L. (oth at A0& at this site !M.C 2as hit many times per ho$r for the ($ffer poo) in N$estion& $n(e0no2nst to !B2 staff / Che 0 !B2 monitor -isp)ay or statisti s report& or o$tp$t of !B2 omman- /!ISPL,J B"HHE'P55L4BPn6 !E.,IL to see if !M.C hit
? Jo$ a)2ays 2ant that va)$e to (e zero
12 2013 IBM Corporation
Information Management
In a pre@!B2 10 system& if yo$ 2ant to $se a ($ffer poo) to =pin> -ata(ase o(Be ts in memory 4i+e+& to have those o(Be ts a hein memory in their entirety6& $se the HIH5 ($ffer stea) a)gorithm
/ :hy< Be a$se HIH5 4first in& first o$t6 is simp)er than L'" an- so $ses )ess CP" / If o(Be ts are a he- in their entirety 4i+e+& if tota) n$m(er of pages for o(Be ts assigne- to poo) is )ess than n$m(er of ($ffers in poo)6& there 2on;t (e any ($ffer stea)ing& so 2hy spen- CP" tra 0ing ($ffer $sage< / DB2 10 provided a new and better way to do this
13 2013 IBM Corporation
Information Management
17
Information Management
Sin e CP" effi ien y (enefit 4prior to !B2 106 is re)ate- to I85 a tivity& P#HIP4JES6 2on;t have m$ h of an impa t for a poo) that sho2s on)y a fe2 rea- I85s per se on/ 'e ommen-ation: $se P#HIP4JES6 for poo)s that have a )ot of rea- I85 a tivity 4e+g+& 100s or 1000s per se on-6& an- P#HIP4151E6 for )o2@I85 poo)s 4to give z85S some stea)a()e reso$r es if the nee- arises6
? I;)) over monitoring of rea- I85 rates for poo)s momentari)y
1% 2013 IBM Corporation
Information Management
!B2 10 2i)) $se 1 MB page frames to (a 0 a P#HIP4JES6 ($ffer poo) 4if not eno$gh 1 MB page frames to f$))y (a 0 poo)& !B2 10 2i)) $se 7 IB frames in a--ition to 1 MB frames6
/ Larger page frame means more CP"@effi ient trans)ation of virt$a) storage a--resses to rea) storage a--resses / .his CP" (enefit is on top of the previo$s)y mentione- MIPS savings res$)ting from )ess@ ost)y I85s into an- o$t of page@fi3e- ($ffer poo)s
Information Management
Step 1: -etermine rea- I85 rate for ea h ($ffer poo)& $sing information o(taine- from:
/ !B2 monitor 4statisti s report& or on)ine -isp)ay of ($ffer poo) a tivity6 / @or@ / 5$tp$t of !B2 omman- @!ISPL,J B"HHE'P55L4,C.IKE6 !E.,IL
? Iss$e omman- on e& then 2ait an ho$r an- iss$e it again ? 5$tp$t of se on- iss$an e of omman- 2i)) apt$re 1 ho$r of a tivity / -ivi-e a tivity o$nters (y 3D00 to get per@se on- fig$res
1E 2013 IBM Corporation
Information Management
E3amp)e: BP1 an- BP2 (oth have 70&000 ($ffers& an- tota) reaI85 rate is 208se on- for BP1 an- 20008se on- for BP2
/ In that ase& I;- onsi-er -e reasing size of BP1 (y 20&000 ($ffers anin reasing size of BP2 (y 20&000 ($ffers
1F
Information Management
Being (o)- / ($t not re 0)ess / in as0ing for more rea) storage for a !B2 s$(system
1A
Information Management
20
Information Management
Some organizations are starting to =get it&> in terms of ta0ing a-vantage of Big Memory to re-$ e !B2 CP" ons$mption via )arger ($ffer poo) onfig$rations
/ .he )argest ($ffer poo) onfig$ration I;ve seen on one !B2 for z85S s$(system is 72 #B
21
Information Management
:hatever yo$r LP,';s -eman- paging rate& I;- (e aref$) a(o$t $sing more than %0M of an LP,';s memory for !B2 ($ffer poo)s
/ I;ve seen :LM size a ($ffer poo) onfig$ration at 30@70M of LP,' memory 4,L.E' B"HHE'P55L4BPn6 ,".5SIQE4JES66
22
Information Management
My aim: if possi()e& get rea- I85 rate to )ess than 1000 per se on- for ea h ($ffer poo)
/ If that o(Be tive is a omp)ishe- 4or if I;m seeing -iminishing ret$rns 2ith respe t to en)arging a high@I85 ($ffer poo)6& I t$rn my fo $s to poo)s 2ith rea- I85 rates (et2een 100 an- 1000 per se on? 1i e to get these (e)o2 100 per se on-& if possi()e
Ieep in min-: it;s not B$st a(o$t ma0ing e3isting poo)s )arger
/ ,t some point& yo$ may 2ant to reate a ne2 BPy& an- reassign o(Be ts to that poo) from BP3
? Can (e parti $)ar)y effe tive for separating =history> vs+ = $rrent> ta()es& a ess patterns for 2hi h ten- to (e -ifferent
23 2013 IBM Corporation
Information Management
Hor a 7I #BP 2ith the -efa$)t %:1 ratio of -ire tory entries to -ata pages& -ire tory entry re )aims )i0e)y to (e 0 if size of #BP is 70M of om(ine- size of asso iate- )o a) BPs
/ E3amp)e: 3@2ay gro$p& BP1 at 70I ($ffers 41D0 MB6 on ea h mem(er
? #oo- #BP1 size is 70M P 43 P 1D0 MB6 O 1A2 MB
27 2013 IBM Corporation
Information Management
2%
Information Management
2D
Information Management
/ !B2 monitor might refer to this part of E!M poo) as =Pages in '!S Poo)> 4a(ove an- (e)o2 the (ar6& in E!M poo) se tion of statisti s report / "se of 'ELE,SE4!E,LL5C,.E6 ma0es more of this spa e non@ stea)a()e& 2hi h o$)- potentia))y )ea- to program fai)$re -$e to )a 0 of spa e in E!M poo)
? #enera) re ommen-ation: per entage of free pages in this part of the E!M sho$)- (e at )east 10M
2E 2013 IBM Corporation
Information Management
C.8P. SIC.
.hrea- 8 Sta 0 SIP. .hrea- 8 Sta 08 2or0ing E%@A0M )ess $sage !BM1 (e)o2 (ar after 'EBI1!
'es$)t: m$ h more virt$a) storage =hea- room> for $se of 'ELE,SE4!E,LL5C,.E6 ,)so& QP,'M no )onger )imits spa e avai)a()e for pa 0age ta()e / no2 pretty m$ h )imite(y avai)a(i)ity of rea) storage
2F
Information Management
!B2 10: 2hen pa 0age (o$n- 2ith 'ELE,SE4!E,LL5C,.E6 is e3e $te- via a =reg$)ar> !B,.& that !B,. (e omes a high@ performan e !B,.
/ 'ELE,SE4!E,LL5C,.E6 honore/ Cigh@performan e !B,. -e-i ate- to onne tion thro$gh 2hi h it 2as instantiate-& vs+ going (a 0 into !!H threa- poo) 2hen transa tion en-s / If threa- re$se- for same pa 0age& yo$ get CP" (enefit of 'ELE,SE4!E,LL5C,.E6
2A 2013 IBM Corporation
Information Management
:hat if most of yo$r SLL e3e $te- thro$gh !!H is -ynami <
/ Consi-er (in-ing IBM !ata Server !river Pa 0age 4or !B2 Conne t6 pa 0ages into the -efa$)t 1"LLI! o))e tion 2ith 'ELE,SE4C5MMI.6& an- into another o))e tion 2ith 'ELE,SE4!E,LL5C,.E6
? Cave yo$r higher@vo)$me )ient@server transa tions $se that se ono))e tion to gain high@performan e !B,. performan e (enefits 4 o))e tion name an (e spe ifie- as a -ata so$r e property on the )ient si-e6
30 2013 IBM Corporation
Information Management
'ELE,SE4!E,LL5C,.E6 re ommen-ations
Best an-i-ates:
/ Pa 0ages freN$ent)y e3e $te-& an- e3e $te- via persistent threa-s s$ h as CICS@!B2 prote te- entry threa-s an- high@performan e !B,.s / Pa 0ages asso iate- 2ith (at h Bo(s that iss$e )ots of ommits
? Bat h (on$s: greater (enefit from -ynami prefet h& in-e3 )oo0asi-e
5perationa) onsi-erations:
/ Ens$re that 'ELE,SE4!E,LL5C,.E6 pa 0ages -o not a N$ire e3 )$sive ta()e spa e )o 0s 4 he 0 for )o 0 es a)ation& L5CI .,BLE6 / May nee- to restri t e3e $tion of 'ELE,SE4!E,LL5C,.E6 pa 0ages -$ring times of heavy $ti)ity e3e $tion& !!L& (in- operations& et +
? Bat h: ontro) thro$gh s he-$)ing ? !!H: $se @M5!IHJ !!H PI#'EL omman- 4see previo$s s)i-e6 ? CICS@!B2 prote te- threa-s: onsi-er hanging P'5.EC.1"M to 0 -$ring perio-s 2hen $ti)ities& pa 0age (in-8re(in-& an- !!L nee- to (e e3e $te31 2013 IBM Corporation
Information Management
32
Information Management
,t some point& yo$;- e3pe t to see -iminishing ret$rns from statement a he size in reases
/ If statement a he hit ratio is a)rea-y R A0M& f$rther a he size in reases may not yie)- signifi ant res$)ts 2ith respe t to CP" savings
33
Information Management
CP" savings an (e a hieve- if 'I! poo) 4size- (y 2ay of QP,'M parameter M,P'BLI6 is )arge eno$gh to ena()e 'I! pro essing for a N$ery to omp)ete in memory
/ !B2 10: -efa$)t size of 'I! poo) 2ent to 700 MB& from F MB (efore
? 'I! poo) has (een a(ove the 2 #B (ar in !BM1 sin e !B2 KF ? .he )arger -efa$)t 'I! poo) size is one reason 2hy yo$ an e3pe t to see !B2 $ti)ization of rea) storage in rease 2hen yo$ migrate to !B2 10
37 2013 IBM Corporation
Information Management
Information Management
Information Management
3E