actian hybrid data conference - hybrid data management ...€¦ · actian hybrid data conference...

22
Actian Hybrid Data Conference 2018 London

Upload: others

Post on 06-Aug-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Actian Hybrid DataConference2018 London

Page 2: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

ActianHybrid DataConference2018 London

Turbocharge Your Zen and PSQL Performance

Bill Bach

President, Goldstar Software Inc.

Page 3: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Actian Zen Background

Page 4: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

What is Actian Zen?

Actian Zen, formerly known as Actian PSQL, formerly known as Pervasive PSQL, formerly known as Pervasive.SQL, formerly known as Btrieve:

• Stores data for a wide variety of software solutions, in every vertical market imaginable

• Offers high speed, low overhead, database access to applications

• Provides both transactional (NoSQL) and relational (SQL) access models, giving developers the right tool for the job

• Requires no DBA to configure or manage, reducing operational costs

4 © 2018 Actian Corporation

Page 5: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

What About Previous Versions?

Zen has a VERY long history. Here are some previous versions:• Pervasive.SQL 2000i: End of Support: July 1, 2004• Pervasive.SQL V8: End of Support December 31, 2006• Pervasive PSQL v9: End of Support: January 1, 2010• Pervasive PSQL Summit v10: End of Support: March 1, 2012• Actian PSQL v11: End of Support: July 1, 2016• Actian PSQL v12: Supported Through July 1, 2019• Actian Zen v13: Current product, Released June 2017!

5 © 2018 Actian Corporation

Page 6: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Benefits of Zen v13

Most Compelling New Features in v13 for End Users:• PSQL Reporting Engine: Offloads SQL workload from main

database server, providing horizontal scalability• New Cache Management Functions: Pre-loads (or purges) cache

blocks, optimizing engine performance after a restart• Active Directory Security Integration: Simplifies SQL security by

leveraging AD groups, simplifying implementation further

6 © 2018 Actian Corporation

Page 7: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Benefits of Zen v13

Most Compelling New Features in v13 for Developers:• New SDK’s and API’s: Simplifies development learning curve

and provides access from scripting languages (e.g. Python)• New Developer Features: Adds TRY_CAST and TRY_CONVERT in

SQL, & the new LIKE syntax on GetNextExtended operations • New Platforms: Adds Windows Nano Server, Raspberry Pi, and

Android environments to existing Windows, Mac and Linux solutions

7 © 2018 Actian Corporation

Page 8: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Curbing Performance Anxiety

Page 9: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Factors Impacting Performance▪Server Hardware ▪Server Operating System▪Database Engine and Files▪Network Communications▪Workstation Hardware▪Workstation Operating System▪Application Design and Total Work-Load

9 © 2018 Actian Corporation

Page 10: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Hardware Performance

▪CPU Clock Speed▪Number of Cores▪System Memory (RAM)▪Hard Disk Drives–Drive Speed (RPM)–Drive Throughput–RAID Configuration–Consider SSD for Boot

▪High Speed NIC with TOE

10 © 2018 Actian Corporation and Goldstar Software Inc.

Page 11: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Operating System Performance

▪Consider RAM Disk for Temp Files▪Consider AntiVirus Exclusions▪Disable Unneeded Services▪Disable OS-Level Firewalls▪Set High Performance Mode!–Check BIOS Power Configuration–Check Control Panel, Power Options–Verify with CPU_Z

11 © 2018 Actian Corporation and Goldstar Software Inc.

Page 12: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Database Engine Performance

▪Use the 64-bit Database Engine▪Use Lots of RAM for L1 Cache (Up to data size)▪Disable L2 Cache (The OS Can Mess With It!)▪Segregate Test Databases onto Test Servers▪Rebuild Data Files for 16K Pages–rbldcli –f95 –p16384 –c *.*

▪Pre-Load Data Cache After Reboot–BUTIL –CACHE <filename> with Zen v13–BTRVLOAD *.* /T100 for PSQL v12 or Older(www.goldstarsoftware.com/btrvload.asp)

12 © 2018 Actian Corporation and Goldstar Software Inc.

Page 13: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Network Performance

▪Use Wired Ethernet, Not Wireless!▪Use Quality Cat5e Cables (or Better)▪Key Is Latency, not Bandwidth!–Minimize Workstation→Server Distance/Time–Check Latency with Wireshark–If Latency is High, Use RDP/Citrix

13 © 2018 Actian Corporation and Goldstar Software Inc.

Page 14: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Application Performance

▪Mainly Controlled by Software Developers▪More Data = More Work; Archive if Possible!▪Use Extended Operations Where Needed▪System Can Be Affected by Large SQL Reports–Consider Using New Reporting Engine in Zen v13▪SQL Query Optimization Is a MUST!–All JOINs Should Use an Index–Look for an Index for WHERE Clauses–Avoid ORDER BY (when possible)–Avoid Temp Tables (when possible)

14 © 2018 Actian Corporation and Goldstar Software Inc.

Page 15: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Common Causes of Slowness

Page 16: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Common Causes of Slowness

▪Cause: CPU Running Slower than Rated Speed▪Verify: Run CPU_Z Test Tool

https://www.cpuid.com/softwares/cpu-z.html

▪Solve: Check BIOS Settings–Disable Power Management

▪Solve: Check OS Settings–Set to High Performance

16 © 2018 Actian Corporation and Goldstar Software Inc.

Page 17: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Common Causes of Slowness

▪Cause: Insufficient Cache Memory▪Verify: Review PerfMon Counter for L1 Cache Usage %▪Verify: Review PerfMon Ctr for L1 Cache Misses/Sec▪Solve: Increase Database Engine L1 Cache (If Possible)▪Solve: Pre-Load Cache

17 © 2018 Actian Corporation and Goldstar Software Inc.

Page 18: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Common Causes of Slowness

▪Cause: L2 Cache Thrashing▪Verify: Excessive Page Faults Seen in Task Manager▪Solve: Disable L2 Cache in Config

18 © 2018 Actian Corporation and Goldstar Software Inc.

Page 19: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Common Causes of Slowness

▪Cause: Slow Disk Subsystem▪Verify: Use Process Monitor to See Disk Access Times▪Solve: Reconfigure Disks or Replace Server!

19 © 2018 Actian Corporation and Goldstar Software Inc.

Page 20: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Common Causes of Slowness

▪Cause: Excessive Network Latency▪Verify: Capture Network Traffic with Wireshark▪Solve: Redesign Network to Cut Latency

20 © 2018 Actian Corporation and Goldstar Software Inc.

Page 21: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Need More Help?Other Questions?

End User Services▪ Engine Installation & Patching

▪ Server Performance Reviews

▪ Data File Recovery Services

▪ Database Backup Verification

▪ Disaster Recovery Replication

▪ Data Replication to Vector for Analyticsand Reporting

▪ Administrative Tools

21

Developer Services▪ Application Analysis

▪ Database Call Optimization

▪ Developer Kickstart Session

▪ SQL Query Optimization

▪ Support Team Training

Training Classes▪ PSQL Service & Support

▪ Advanced Network Troubleshooting for PSQL

▪ DataExchange Implementation

▪ Customized Training

▪ On-Site Sessions Available

© 2018 Actian Corporation

Page 22: Actian Hybrid Data Conference - Hybrid Data Management ...€¦ · Actian Hybrid Data Conference 2018 London Turbocharge Your Zen and PSQL Performance Bill Bach President, Goldstar

Thank you!