tsm mysteriestsm mysteriestsm-symposium.oucs.ox.ac.uk/2007/papers/bruno friess_michael abel... ·...

25
TSM Mysteries TSM Mysteries TSM Mysteries TSM Mysteries Server Memory Server Memory Server Memory Server Memory Episode 1 Oxford University TSM Symposium 2007 Michael Abel & Bruno Friess Michael Abel & Bruno Friess

Upload: truongkien

Post on 26-May-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

TSM MysteriesTSM MysteriesTSM Mysteries TSM Mysteries ––Server MemoryServer MemoryServer MemoryServer Memory

Episode 1 Oxford UniversityyTSM Symposium 2007

Michael Abel & Bruno FriessMichael Abel & Bruno Friess

AgendaWhy care for memory?

fTypes of memoryTSM memory mapTSM memory mapTSM memory tuningMemory layoutMemory analysisMemory analysis

(c) 2006-2007 by eXstor GmbH 201.08.2007

WarningsFor commands, settings, options, values limites implicationsvalues, limites, implications…Check documentation valid for OS, ,TSM server and TSM client level used in your specific environmentin your specific environment

(c) 2006-2007 by eXstor GmbH 301.08.2007

Why care for memory?TSM Server needs memory

f MB… from some MBs… up to several GBs

What we want to know:What is memory used for?What is memory used for?Does size really matter?How to tune memory inside TSMHow to tune memory on the OSyHow to get more out of less

(c) 2006-2007 by eXstor GmbH 401.08.2007

What if we ignore……all those fancy foils?

Worst case scenario:Worst case scenario:TSM server hogs up all memoryOS i i t fOS is running out of memoryOS has to page/swap processesPaging creates unwanted IOsPerformance of system goes downPerformance of system goes downPerformance of TSM goes downTSM admin is in deep t o ble

(c) 2006-2007 by eXstor GmbH 501.08.2007

TSM admin is in deep trouble

Types of memoryMost operating systems separate memory into different typesmemory into different types

Executable binary codeExecutable (shared) librariesPrivate dataPrivate dataShared dataK lKernel memory…

Differentiation necessary forProtection paging caching sharing

(c) 2006-2007 by eXstor GmbH 601.08.2007

Protection, paging, caching, sharing…

TSM memory map

TSM BUFPOOL

TSM LOGPOOL

Other Data

TSM Code (dsmserv)

(c) 2006-2007 by eXstor GmbH 701.08.2007

Svmon of dsmserv

dsmserv code

Data (Bufpool)

adsmserv.lock

diskpool

(c) 2006-2007 by eXstor GmbH 801.08.2007

diskpooldatabase vollog vol

TSM memory tuningBUFPOOLSIZE

S t i d tSet in dsmserv.optGiven in KBMinimum = 256Default = 32768Default 32768Maximum = virtual memory

Visible as real memory consumptiony pConservative value 1/8-1/2 of RAM

(c) 2006-2007 by eXstor GmbH 901.08.2007

TSM memory tuningLOGPOOLSIZE

Set in dsmserv optSet in dsmserv.optSpecified in KBMi i 128Minimum = 128Default = 512Maximum = virtual memory

Visible as real memory consumptionOld max value known 8192Old max value known 8192Performance effect hard to prove

(c) 2006-2007 by eXstor GmbH 1001.08.2007

TSM memory tuningAIXASYNCIO

S f DB I/O h bServer performs DB I/O asynchronous by using AIO interface offered by AIX. C ll t ll IO i t bi IO U dCollects smaller IOs into one big IO. Used for databases like Oracle.

AIXDIRECTIOBypass AIX file cache when performingBypass AIX file cache when performing IOs to the disk storage pools. Can be specified on the filesystem level alsospecified on the filesystem level also (mount option)

(c) 2006-2007 by eXstor GmbH 1101.08.2007

Tuning strategy V1Use all available memory

OO lIncrease BUFPOOL as long as system does not start to pagep g

Si l t dSimple to doMay not fit your environmenty yOnly feasible for systems with small amount of RAMamount of RAM

(c) 2006-2007 by eXstor GmbH 1201.08.2007

Tuning strategy V2Use necessary memory

OO f fSet BUFPOOLSIZE to ½ of free memoryyMonitor „cache hit percentage“ with query database format=detail“„query database format=detail

Increase memory if value < 98%

Best way to do it but time consumingBest way to do it but time-consuming

(c) 2006-2007 by eXstor GmbH 1301.08.2007

Memory layout

TSM (code and data)TSM (code and data)

File System Cache (minimized!)

Operating System (code and buffers)

File System Cache (minimized!)

(c) 2006-2007 by eXstor GmbH 1401.08.2007

Memory analysisUse OS specific tools

O f k l dUse OS specific knowledgePitfalls during analysisPitfalls during analysis

Shared elementsD i b ffDevice buffersFile cache

(c) 2006-2007 by eXstor GmbH 1501.08.2007

SamplesSamples taken on real customer TSM serversserversSamples taken on AIX with „nmon“pCharts prepared with nmon analyzerL t ti d ilLong term reporting on daily or weekly basisPeriodic checks recommendedYour mileage may varyYour mileage may vary

(c) 2006-2007 by eXstor GmbH 1601.08.2007

Increase BUFPOOL

(c) 2006-2007 by eXstor GmbH 1701.08.2007

No paging

(c) 2006-2007 by eXstor GmbH 1801.08.2007

File IO

(c) 2006-2007 by eXstor GmbH 1901.08.2007

Process memory

(c) 2006-2007 by eXstor GmbH 2001.08.2007

Daily incremental

Memory Use tsmlpar1p1 08 07 2007Memory Use tsmlpar1p1 08.07.2007

90

100

Process% FScache% System%

70

80

40

50

60

10

20

30

0

10

00:

01

03:

16

06:

31

09:

46

13:

01

16:

17

19:

32

22:

47

02:

02

05:

17

08:

32

11:

47

15:

02

18:

17

21:

32

00:

47

04:

02

07:

17

10:

32

13:

47

17:

02

20:

17

23:

32

02:

47

06:

02

09:

17

12:

32

15:

47

19:

02

22:

17

01:

32

04:

47

08:

02

11:

17

14:

32

17:

47

21:

03

00:

18

03:

33

06:

48

10:

03

13:

18

16:

33

19:

48

23:

03

02:

18

05:

33

08:

48

12:

03

15:

18

18:

33

21:

48

(c) 2006-2007 by eXstor GmbH 2101.08.2007

Optimized memory

Memory Use nsm4fix 16 07 2007Memory Use nsm4fix 16.07.2007

90

100

Process% FScache% System%

70

80

40

50

60

10

20

30

0

10

00:

01

00:

31

01:

01

01:

31

02:

01

02:

31

03:

01

03:

31

04:

01

04:

31

05:

01

05:

31

06:

01

06:

31

07:

01

07:

31

08:

01

08:

31

09:

01

09:

31

10:

01

10:

31

11:

01

11:

31

12:

01

12:

31

13:

01

13:

31

14:

01

14:

31

15:

01

15:

31

16:

01

16:

31

17:

01

17:

31

18:

01

18:

31

19:

01

19:

31

20:

01

20:

31

21:

01

21:

31

22:

01

22:

31

23:

01

23:

31

(c) 2006-2007 by eXstor GmbH 2201.08.2007

SummaryWhat we know by now:

Wh t i d f ?What is memory used for?Does size really matter?How to tune memory inside TSMHow to tune memory on the OSHow to tune memory on the OSHow to get more out of less

(c) 2006-2007 by eXstor GmbH 2301.08.2007

Q & A

(c) 2006-2007 by eXstor GmbH 2401.08.2007

Please contactadress:

X t G bHeXstor GmbHHans-Bredow-Strasse 40D-65189 WiesbadenGermanyGermany

E-Mail: [email protected]: www.exstor.dePhone: +49 611 724286-0Phone: +49 611 724286 0

(c) 2006-2007 by eXstor GmbH 2501.08.2007