Presentation is loading. Please wait.

Presentation is loading. Please wait.

DB-7: OpenEdge® Database Performance Tuning Gus Björklund Wizard, Vice President Technology.

Similar presentations


Presentation on theme: "DB-7: OpenEdge® Database Performance Tuning Gus Björklund Wizard, Vice President Technology."— Presentation transcript:

1 DB-7: OpenEdge® Database Performance Tuning Gus Björklund Wizard, Vice President Technology

2 © 2006 Progress Software Corporation2 DB-7: OpenEdge Database Performance Tuning Topics  Easy Stuff: The Basics  Disk Layout  Esoterica

3 © 2006 Progress Software Corporation3 DB-7: OpenEdge Database Performance Tuning First Things First > > probkup foo >

4 © 2006 Progress Software Corporation4 DB-7: OpenEdge Database Performance Tuning “Out of the Box” Performance > > proserve foo >

5 © 2006 Progress Software Corporation5 DB-7: OpenEdge Database Performance Tuning “Out of the box” Performance

6 © 2006 Progress Software Corporation6 DB-7: OpenEdge Database Performance Tuning “Nine Easy Pieces” for Better Results

7 © 2006 Progress Software Corporation7 DB-7: OpenEdge Database Performance Tuning 1: Buffer Pool Size > > proserve foo -B >

8 © 2006 Progress Software Corporation8 DB-7: OpenEdge Database Performance Tuning 2: Spinlock retry count > > proserve foo -B spin >

9 © 2006 Progress Software Corporation9 DB-7: OpenEdge Database Performance Tuning 3: Start BI Log Writer (BIW) > > proserve foo -B spin > probiw foo >

10 © 2006 Progress Software Corporation10 DB-7: OpenEdge Database Performance Tuning 4: Start Async Page Writer (APW) > > proserve foo -B spin > probiw foo > proapw foo > proapw foo >

11 © 2006 Progress Software Corporation11 DB-7: OpenEdge Database Performance Tuning 5: Increase BI Log Block Size > > proutil foo -C truncate bi \ > -biblocksize 8 > proserve foo -B spin > probiw foo > proapw foo > proapw foo >

12 © 2006 Progress Software Corporation12 DB-7: OpenEdge Database Performance Tuning 6: Increase BI Log Cluster Size > > proutil foo -C truncate bi \ > -biblocksize 8 -bi 4096 > proserve foo -B spin > probiw foo > proapw foo > proapw foo >

13 © 2006 Progress Software Corporation13 DB-7: OpenEdge Database Performance Tuning 7: Add BI Log buffers > > proutil foo -C truncate bi \ > -biblocksize 8 -bi 4096 > proserve foo -B spin \ > -bibufs 25 > probiw foo > proapw foo > proapw foo >

14 © 2006 Progress Software Corporation14 DB-7: OpenEdge Database Performance Tuning 8: Initial Database Layout d "Schema Area" /users/gus/atm.d1 d "atm":7,64;512 /users/gus/atm_7.d1 f d "atm":7,64;512 /users/gus/atm_7.d2 f d "atm":7,64;512 /users/gus/atm_7.d3 f d "atm":7,64;512 /users/gus/atm_7.d4 f d "atm":7,64;512 /users/gus/atm_7.d5 f d "atm":7,64;512 /users/gus/atm_7.d6 f d "atm":7,64;512 /users/gus/atm_7.d7 b /users/gus/atm.b1

15 © 2006 Progress Software Corporation15 DB-7: OpenEdge Database Performance Tuning 8: Move Data Extents to Striped Array d "Schema Area" /users/gus/atm.d1 d "atm":7,64;512 /array/atm_7.d1 f d "atm":7,64;512 /array/atm_7.d2 f d "atm":7,64;512 /array/atm_7.d3 f d "atm":7,64;512 /array/atm_7.d4 f d "atm":7,64;512 /array/atm_7.d5 f d "atm":7,64;512 /array/atm_7.d6 f d "atm":7,64;512 /array/atm_7.d7 b /users/gus/atm.b1

16 © 2006 Progress Software Corporation16 DB-7: OpenEdge Database Performance Tuning 9: BI Log On Separate Disk d "Schema Area" /users/gus/atm.d1 d "atm":7,64;512 /array/atm_7.d1 f d "atm":7,64;512 /array/atm_7.d2 f d "atm":7,64;512 /array/atm_7.d3 f d "atm":7,64;512 /array/atm_7.d4 f d "atm":7,64;512 /array/atm_7.d5 f d "atm":7,64;512 /array/atm_7.d6 f d "atm":7,64;512 /array/atm_7.d7 b /bidisk/atm.b1

17 © 2006 Progress Software Corporation17 DB-7: OpenEdge Database Performance Tuning Can you predict the results ?

18 © 2006 Progress Software Corporation18 DB-7: OpenEdge Database Performance Tuning Now Our Results Are

19 © 2006 Progress Software Corporation19 DB-7: OpenEdge Database Performance Tuning Effect of Tuning -spin

20 © 2006 Progress Software Corporation20 DB-7: OpenEdge Database Performance Tuning Effect of Tuning -B

21 © 2006 Progress Software Corporation21 DB-7: OpenEdge Database Performance Tuning Disk Layout

22 © 2006 Progress Software Corporation22 DB-7: OpenEdge Database Performance Tuning About disks  Inexpensive !!  One drive can do only one thing at a time Many smaller drives better than one large  15,000 rpm drives  SCSI still better than SATA II  Desktop drives rated 8 hours on, 16 off  Avoid cheesy controllers  Spares

23 © 2006 Progress Software Corporation23 DB-7: OpenEdge Database Performance Tuning Multiple Disk Drives

24 © 2006 Progress Software Corporation24 DB-7: OpenEdge Database Performance Tuning Stripe and Mirror

25 © 2006 Progress Software Corporation25 DB-7: OpenEdge Database Performance Tuning Put BI Log on own disk

26 © 2006 Progress Software Corporation26 DB-7: OpenEdge Database Performance Tuning Use Type II Data Areas

27 © 2006 Progress Software Corporation27 DB-7: OpenEdge Database Performance Tuning Type I vs Type II Areas

28 © 2006 Progress Software Corporation28 DB-7: OpenEdge Database Performance Tuning Esoterica

29 © 2006 Progress Software Corporation29 DB-7: OpenEdge Database Performance Tuning Networking  Raise message size (-Mm) to 16k  Use Gigabit Ethernet  Configure Ethernet for FDX  Multiple brokers One for 4GL, one for SQL Others  Raise max servers (-Mn) and (-Mpb)  Lower clients per server (-Ma)

30 © 2006 Progress Software Corporation30 DB-7: OpenEdge Database Performance Tuning Temporary files (-T)  Local drives, not on network  Spread users over multiple disks

31 © 2006 Progress Software Corporation31 DB-7: OpenEdge Database Performance Tuning Use Shared Procedure Libraries  One copy of r-code for many users  Use saved memory for other things like higher -B  All sharers have to be on same machine Don’t need on client machines

32 © 2006 Progress Software Corporation32 DB-7: OpenEdge Database Performance Tuning Creating Records  Template holds default column values  Creating a record makes a copy of template CREATE cust  Fill in all column values immediately Use one ASSIGN Avoids an update later Avoids fragmentation if default record is very small

33 © 2006 Progress Software Corporation33 DB-7: OpenEdge Database Performance Tuning Linux File Systems ReiserFS results wildly erratic - don’t use !

34 © 2006 Progress Software Corporation34 DB-7: OpenEdge Database Performance Tuning Other filesystems Operating systemFile system SolarisVxFS or UFS AIXJFS or JFS2 HP-UXNOT HFS WindozeNTFS Linuxext3, XFS, JFS

35 © 2006 Progress Software Corporation35 DB-7: OpenEdge Database Performance Tuning Windows Tips (part 1)  Remove crapware use Ad-Aware or Spybot S&D use Firefox, NOT IE  Turn off services you don’t need –http://majorgeeks.com/page.php?id=12 startup items you don’t need  Black screensaver only  Get rid of Office (at least indexer)

36 © 2006 Progress Software Corporation36 DB-7: OpenEdge Database Performance Tuning Windows Tips (part 2)  NTFS filesystem Never FAT-32 or FAT-16  Increase NTFS cluster size format :/fs:ntfs /A:8k  Turn off short filenames file sharing virus scanner ! all GUI decorations  “Maximize Throughput for Network Applications”

37 © 2006 Progress Software Corporation37 DB-7: OpenEdge Database Performance Tuning SQL Tips  Add more indexes  Run UPDATE STATISTICS  Use ODBC and JDBC API’s well See DataDirect.com/developer for technical papers  Upgrade to 10.1

38 © 2006 Progress Software Corporation38 DB-7: OpenEdge Database Performance Tuning More Esoterica  Buy more memory - cheapest way to improve  Use 64-bit OpenEdge  Mount filesystems with noatime  Lock shared memory (-pinshm)  Use “deadline” i/o scheduler on Linux  We like 3ware controllers for mid-size boxen  Set shmmax to 134,217,728

39 © 2006 Progress Software Corporation39 DB-7: OpenEdge Database Performance Tuning Summary  Getting good database performance is easy

40 © 2006 Progress Software Corporation40 DB-7: OpenEdge Database Performance Tuning More info  My tuning guide on Conference CD  PEG (www.peg.com)  Dan Foreman’s guides (info at expo)  Related sessions: COMP–12: Load/Performance Testing Tools and Techniques DB–2: Tuning OpenEdge SQL: Boosting Your SQL Application Performance DB–5: OpenEdge Database Performance Made Easy DB–8: Highly Parallel Dump and Load DB–9: Pick an Index, Any Index...

41 © 2006 Progress Software Corporation41 DB-7: OpenEdge Database Performance Tuning Want Answers

42 © 2006 Progress Software Corporation42 DB-7: OpenEdge Database Performance Tuning


Download ppt "DB-7: OpenEdge® Database Performance Tuning Gus Björklund Wizard, Vice President Technology."

Similar presentations


Ads by Google