SlideShare a Scribd company logo
Using PEM to understand and
improve performance in Postgres:
Postgres Tuning Wizard and
Performance Diagnostics
Ashesh Vashi, Bruce Momjian, Marc Linster
Hosted by: Courtney Brown
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.2
• Slides and recording will be available in next 24 hours
• Submit questions via GotoWebinar – will be answering at end
• We will be sharing info about EDB and Postgres later
Welcome – Housekeeping Items
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.3
Webinar Series
Every other Monday at
8:00 AM PDT/ 11:00 AM EDT
16:00 BST/ 17:00 CET
June 3 2020
New Approaches to Integrating
Oracle and Postgres Database
Strategies
June 17 2020
How to Design for Database High
Availability
July 15 2020
Using PEM to understand and
improve performance in Postgres:
Postgres Tuning Wizard and
Performance Diagnostics
July 29 2020 How to Harness The Power of New
and Improved Features in
PostgreSQL 13
August 12 2020 EDB Replicate
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.4
• Introduction to PEM
• Performance Monitoring
• Database Tuning
• Tuning Wizard
• Performance Diagnostics
• EDB Wait States
• Demo
Agenda
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.5
Introduction to PEM
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.6
What can PEM do?
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.7
PEM Architecture
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.8
Market Landscape
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.9
Performance Monitoring
Monitoring Target Probes Metrics Type of monitored data
Host/Operating System 10 47 CPU Usage, Disk Busy Info, Disk Space, IO Analysis, Load Average, Memory Usage,
Network Statistics, OS Information, OS Statistics, Server Auto Discovery
Database Server/Instance 27 196 Background Writer Statistics, Blocked Session Information, Data and Log File
Analysis, Database Frozen XID, Database Size, Database Statistics, EDB Audit
Configuration, Failover Manager Cluster Info, Failover Manager Node Status,
Lock Information, Number of Prepared Transactions, Number of WAL Files,
Database, Tablespace, PG HBA Conf, Server Information, Server log
Configuration, Session Information, Session Waits, Settings, Streaming
Replication, Streaming Replication Database Conflicts, Streaming Replication Lag
Time, System Waits, Tablespace Size, User Information, WAL Archive Status
Database 15 90 Function Statistics, Index Size, Index Statistics, Materialized View Bloat,
Materialized View Frozen XID, Materialized View Size, Object Catalog: Extension,
Object Catalog: Schema, Slony Replication, SQL/Protect, Table Bloat, Table Frozen
XID, Table Size, Table Statistics, xDB Replication
Schema 6 26 Foreign Key, Function, Index, Sequence, Table, View
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.10
Instance Tuning
• Tuning Wizard
• Postgres Expert
• Capacity Manager (Capacity Planning)
Database Tuning
Workload/Schema Tuning
• Postgres Expert
• Explain plan analyzer (in the query tool)
• SQL Profiler
• Performance Diagnostics (Wait Events)
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.11
• Reviews the database server installation, and recommends a set of configuration options that will help tune
the installation best suited for your workload
• Machine Utilization
+ Dedicated, Work station, Developer workstation
• Workload
+ OLTP, Mixed, Data warehouse
• effective_cache_size, maintainance_work_mem, max_wal_size, min_wal_size, random_page_cost,
shared_buffers, wal_buffers, work_mem
Tuning Wizard
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.12
• An active session can be utilizing a CPU or waiting for an internal event/action to happen
• Wait Events (EDB Wait States)
• pg_stat_activity view - wait_event_type, wait_event
Performance Diagnostics
• LWLock
• Lock
• BufferPin
• Activity
• Extension
• Client
• IPC
• Timeout
• IO
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.13
● EDB Wait States Background Worker (EWSBW)
○ EDB Postgres Advanced Server 11+
○ Probes each of the running sessions at regular intervals
○ Collection information for every sessions
■ Database, User, Query, Wait Events
● Wait States Interface
○ edb_wait_states_data
○ edb_wait_states_queries
○ edb_wait_states_sessions
○ edb_wait_states_samples
EDB Wait States
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.14
DEMO
ONLY OPEN
SOURCE BASED
RDBMS IN
GARTNER MQ
EDB recognized 7 years in a row
on Gartner’s Magic Quadrant
15
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.
Customers working SMARTER, reducing RISK and being more PRODUCTIVE with EDB.
OVER 4,000 CUSTOMERS
U.S Customers
EMEA Customers APAC Customers
102
of the
Fortune 500
337
of the Forbes
Global 2000
EDB OPEN SOURCE LEADERSHIP
NAMED EDB OPEN SOURCE COMMITTERS
AND CONTRIBUTORS
CORE TEAM
● ● ●
MAJOR CONTRIBUTORS CONTRIBUTORS
Akshay
Joshi
Amul
Sul
Ashesh
Vashi
Dilip
Kumar
Jeevan
Ladhe
Mithun
Cy
Devrim
Gündüz
Amit
Kapila
Bruce
Momjian
Dave
Page
Robert
Haas
Ashutosh
Sharma
Rushabh
Lathia
- designates committers
EDB Postgres Database
24/7 Global Support
Professional Services Postgres Contributions
Tools & Innovation Security/performance
Thank You
EDB supercharges Postgres to help
our customers overcome these
challenges.

More Related Content

What's hot (20)

Database Dumps and Backups
Database Dumps and Backups
EDB
 
Best Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQL
EDB
 
Auditing and Monitoring PostgreSQL/EPAS
Auditing and Monitoring PostgreSQL/EPAS
EDB
 
Remote DBA Service: Powering your DBA needs
Remote DBA Service: Powering your DBA needs
EDB
 
Best Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQL
EDB
 
Beginner's Guide to High Availability for Postgres - French
Beginner's Guide to High Availability for Postgres - French
EDB
 
New and Improved Features in PostgreSQL 13
New and Improved Features in PostgreSQL 13
EDB
 
Keynote: The Postgres Ecosystem
Keynote: The Postgres Ecosystem
EDB
 
Migration DB2 to EDB - Project Experience
Migration DB2 to EDB - Project Experience
EDB
 
PostgreSQL 13 is Coming - Find Out What's New!
PostgreSQL 13 is Coming - Find Out What's New!
EDB
 
Szabaduljon ki az Oracle szorításából
Szabaduljon ki az Oracle szorításából
EDB
 
Webinar: Managing Postgres at Scale
Webinar: Managing Postgres at Scale
EDB
 
Ein Expertenleitfaden für die Migration von Legacy-Datenbanken zu PostgreSQL
Ein Expertenleitfaden für die Migration von Legacy-Datenbanken zu PostgreSQL
EDB
 
PostgreSQL as a Strategic Tool
PostgreSQL as a Strategic Tool
EDB
 
Large Table Partitioning with PostgreSQL and Django
Large Table Partitioning with PostgreSQL and Django
EDB
 
Break Free from Oracle
Break Free from Oracle
EDB
 
EDB Postgres Platform 11 Webinar
EDB Postgres Platform 11 Webinar
EDB
 
Making your PostgreSQL Database Highly Available
Making your PostgreSQL Database Highly Available
EDB
 
New enhancements for security and usability in EDB 13
New enhancements for security and usability in EDB 13
EDB
 
PostgreSQL to Accelerate Innovation
PostgreSQL to Accelerate Innovation
EDB
 
Database Dumps and Backups
Database Dumps and Backups
EDB
 
Best Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQL
EDB
 
Auditing and Monitoring PostgreSQL/EPAS
Auditing and Monitoring PostgreSQL/EPAS
EDB
 
Remote DBA Service: Powering your DBA needs
Remote DBA Service: Powering your DBA needs
EDB
 
Best Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQL
EDB
 
Beginner's Guide to High Availability for Postgres - French
Beginner's Guide to High Availability for Postgres - French
EDB
 
New and Improved Features in PostgreSQL 13
New and Improved Features in PostgreSQL 13
EDB
 
Keynote: The Postgres Ecosystem
Keynote: The Postgres Ecosystem
EDB
 
Migration DB2 to EDB - Project Experience
Migration DB2 to EDB - Project Experience
EDB
 
PostgreSQL 13 is Coming - Find Out What's New!
PostgreSQL 13 is Coming - Find Out What's New!
EDB
 
Szabaduljon ki az Oracle szorításából
Szabaduljon ki az Oracle szorításából
EDB
 
Webinar: Managing Postgres at Scale
Webinar: Managing Postgres at Scale
EDB
 
Ein Expertenleitfaden für die Migration von Legacy-Datenbanken zu PostgreSQL
Ein Expertenleitfaden für die Migration von Legacy-Datenbanken zu PostgreSQL
EDB
 
PostgreSQL as a Strategic Tool
PostgreSQL as a Strategic Tool
EDB
 
Large Table Partitioning with PostgreSQL and Django
Large Table Partitioning with PostgreSQL and Django
EDB
 
Break Free from Oracle
Break Free from Oracle
EDB
 
EDB Postgres Platform 11 Webinar
EDB Postgres Platform 11 Webinar
EDB
 
Making your PostgreSQL Database Highly Available
Making your PostgreSQL Database Highly Available
EDB
 
New enhancements for security and usability in EDB 13
New enhancements for security and usability in EDB 13
EDB
 
PostgreSQL to Accelerate Innovation
PostgreSQL to Accelerate Innovation
EDB
 

Similar to Using PEM to understand and improve performance in Postgres: Postgres Tuning Wizard and Performance Diagnostics (20)

EDB Postgres DBA Best Practices
EDB Postgres DBA Best Practices
EDB
 
EnterpriseDB's Best Practices for Postgres DBAs
EnterpriseDB's Best Practices for Postgres DBAs
EDB
 
Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA
EDB
 
5 Postgres DBA Tips
5 Postgres DBA Tips
EDB
 
Intro.to.pem webinar.slides-061913
Intro.to.pem webinar.slides-061913
EDB
 
Best Practices for Monitoring Postgres
Best Practices for Monitoring Postgres
EDB
 
Neuerungen in EDB Postgres 11
Neuerungen in EDB Postgres 11
EDB
 
Les nouveautés d'EDB Postgres 11
Les nouveautés d'EDB Postgres 11
EDB
 
The Art of Database Experiments – PostgresConf Silicon Valley 2018 / San Jose
The Art of Database Experiments – PostgresConf Silicon Valley 2018 / San Jose
Nikolay Samokhvalov
 
Postgres Enterprise Manager 4.0 Overview
Postgres Enterprise Manager 4.0 Overview
EDB
 
Enterprise PostgreSQL - EDB's answer to conventional Databases
Enterprise PostgreSQL - EDB's answer to conventional Databases
Ashnikbiz
 
Managing Postgres at Scale With Postgres Enterprise Manager
Managing Postgres at Scale With Postgres Enterprise Manager
EDB
 
How to Monitor Postgres Like a Pro!
How to Monitor Postgres Like a Pro!
EDB
 
Enterprise-class security with PostgreSQL - 2
Enterprise-class security with PostgreSQL - 2
Ashnikbiz
 
Introducing Postgres Enterprise Manager 5.0
Introducing Postgres Enterprise Manager 5.0
EDB
 
Expanding with EDB Postgres Advanced Server 9.5
Expanding with EDB Postgres Advanced Server 9.5
EDB
 
Architectural Health Check for Postgres
Architectural Health Check for Postgres
EDB
 
How to use postgresql.conf to configure and tune the PostgreSQL server
How to use postgresql.conf to configure and tune the PostgreSQL server
EDB
 
DBPLUS Performance Monitor for PostgeSQL
DBPLUS Performance Monitor for PostgeSQL
DBPLUS
 
Transform your DBMS to drive engagement innovation with Big Data
Transform your DBMS to drive engagement innovation with Big Data
Ashnikbiz
 
EDB Postgres DBA Best Practices
EDB Postgres DBA Best Practices
EDB
 
EnterpriseDB's Best Practices for Postgres DBAs
EnterpriseDB's Best Practices for Postgres DBAs
EDB
 
Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA
EDB
 
5 Postgres DBA Tips
5 Postgres DBA Tips
EDB
 
Intro.to.pem webinar.slides-061913
Intro.to.pem webinar.slides-061913
EDB
 
Best Practices for Monitoring Postgres
Best Practices for Monitoring Postgres
EDB
 
Neuerungen in EDB Postgres 11
Neuerungen in EDB Postgres 11
EDB
 
Les nouveautés d'EDB Postgres 11
Les nouveautés d'EDB Postgres 11
EDB
 
The Art of Database Experiments – PostgresConf Silicon Valley 2018 / San Jose
The Art of Database Experiments – PostgresConf Silicon Valley 2018 / San Jose
Nikolay Samokhvalov
 
Postgres Enterprise Manager 4.0 Overview
Postgres Enterprise Manager 4.0 Overview
EDB
 
Enterprise PostgreSQL - EDB's answer to conventional Databases
Enterprise PostgreSQL - EDB's answer to conventional Databases
Ashnikbiz
 
Managing Postgres at Scale With Postgres Enterprise Manager
Managing Postgres at Scale With Postgres Enterprise Manager
EDB
 
How to Monitor Postgres Like a Pro!
How to Monitor Postgres Like a Pro!
EDB
 
Enterprise-class security with PostgreSQL - 2
Enterprise-class security with PostgreSQL - 2
Ashnikbiz
 
Introducing Postgres Enterprise Manager 5.0
Introducing Postgres Enterprise Manager 5.0
EDB
 
Expanding with EDB Postgres Advanced Server 9.5
Expanding with EDB Postgres Advanced Server 9.5
EDB
 
Architectural Health Check for Postgres
Architectural Health Check for Postgres
EDB
 
How to use postgresql.conf to configure and tune the PostgreSQL server
How to use postgresql.conf to configure and tune the PostgreSQL server
EDB
 
DBPLUS Performance Monitor for PostgeSQL
DBPLUS Performance Monitor for PostgeSQL
DBPLUS
 
Transform your DBMS to drive engagement innovation with Big Data
Transform your DBMS to drive engagement innovation with Big Data
Ashnikbiz
 
Ad

More from EDB (20)

Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
EDB
 
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
EDB
 
Migre sus bases de datos Oracle a la nube
Migre sus bases de datos Oracle a la nube
EDB
 
EFM Office Hours - APJ - July 29, 2021
EFM Office Hours - APJ - July 29, 2021
EDB
 
Benchmarking Cloud Native PostgreSQL
Benchmarking Cloud Native PostgreSQL
EDB
 
Las Variaciones de la Replicación de PostgreSQL
Las Variaciones de la Replicación de PostgreSQL
EDB
 
NoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using PostgreSQL
EDB
 
Is There Anything PgBouncer Can’t Do?
Is There Anything PgBouncer Can’t Do?
EDB
 
Data Analysis with TensorFlow in PostgreSQL
Data Analysis with TensorFlow in PostgreSQL
EDB
 
Practical Partitioning in Production with Postgres
Practical Partitioning in Production with Postgres
EDB
 
A Deeper Dive into EXPLAIN
A Deeper Dive into EXPLAIN
EDB
 
IOT with PostgreSQL
IOT with PostgreSQL
EDB
 
A Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQL
EDB
 
Psql is awesome!
Psql is awesome!
EDB
 
EDB 13 - New Enhancements for Security and Usability - APJ
EDB 13 - New Enhancements for Security and Usability - APJ
EDB
 
Comment sauvegarder correctement vos données
Comment sauvegarder correctement vos données
EDB
 
Cloud Native PostgreSQL - Italiano
Cloud Native PostgreSQL - Italiano
EDB
 
Cloud Native PostgreSQL - APJ
Cloud Native PostgreSQL - APJ
EDB
 
EDB Postgres & Tools in a Smart City Project
EDB Postgres & Tools in a Smart City Project
EDB
 
Migrate Today: Proactive Steps to Unhook from Oracle
Migrate Today: Proactive Steps to Unhook from Oracle
EDB
 
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
EDB
 
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
EDB
 
Migre sus bases de datos Oracle a la nube
Migre sus bases de datos Oracle a la nube
EDB
 
EFM Office Hours - APJ - July 29, 2021
EFM Office Hours - APJ - July 29, 2021
EDB
 
Benchmarking Cloud Native PostgreSQL
Benchmarking Cloud Native PostgreSQL
EDB
 
Las Variaciones de la Replicación de PostgreSQL
Las Variaciones de la Replicación de PostgreSQL
EDB
 
NoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using PostgreSQL
EDB
 
Is There Anything PgBouncer Can’t Do?
Is There Anything PgBouncer Can’t Do?
EDB
 
Data Analysis with TensorFlow in PostgreSQL
Data Analysis with TensorFlow in PostgreSQL
EDB
 
Practical Partitioning in Production with Postgres
Practical Partitioning in Production with Postgres
EDB
 
A Deeper Dive into EXPLAIN
A Deeper Dive into EXPLAIN
EDB
 
IOT with PostgreSQL
IOT with PostgreSQL
EDB
 
A Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQL
EDB
 
Psql is awesome!
Psql is awesome!
EDB
 
EDB 13 - New Enhancements for Security and Usability - APJ
EDB 13 - New Enhancements for Security and Usability - APJ
EDB
 
Comment sauvegarder correctement vos données
Comment sauvegarder correctement vos données
EDB
 
Cloud Native PostgreSQL - Italiano
Cloud Native PostgreSQL - Italiano
EDB
 
Cloud Native PostgreSQL - APJ
Cloud Native PostgreSQL - APJ
EDB
 
EDB Postgres & Tools in a Smart City Project
EDB Postgres & Tools in a Smart City Project
EDB
 
Migrate Today: Proactive Steps to Unhook from Oracle
Migrate Today: Proactive Steps to Unhook from Oracle
EDB
 
Ad

Recently uploaded (20)

The State of Web3 Industry- Industry Report
The State of Web3 Industry- Industry Report
Liveplex
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Shashikant Jagtap
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
 
High Availability On-Premises FME Flow.pdf
High Availability On-Premises FME Flow.pdf
Safe Software
 
Edge-banding-machines-edgeteq-s-200-en-.pdf
Edge-banding-machines-edgeteq-s-200-en-.pdf
AmirStern2
 
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Safe Software
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
Oracle Cloud and AI Specialization Program
Oracle Cloud and AI Specialization Program
VICTOR MAESTRE RAMIREZ
 
Artificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdf
OnBoard
 
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
biswajitbanerjee38
 
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
Muhammad Rizwan Akram
 
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
SOFTTECHHUB
 
Your startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean account
angelo60207
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
The State of Web3 Industry- Industry Report
The State of Web3 Industry- Industry Report
Liveplex
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Shashikant Jagtap
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
 
High Availability On-Premises FME Flow.pdf
High Availability On-Premises FME Flow.pdf
Safe Software
 
Edge-banding-machines-edgeteq-s-200-en-.pdf
Edge-banding-machines-edgeteq-s-200-en-.pdf
AmirStern2
 
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Safe Software
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
Oracle Cloud and AI Specialization Program
Oracle Cloud and AI Specialization Program
VICTOR MAESTRE RAMIREZ
 
Artificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdf
OnBoard
 
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
biswajitbanerjee38
 
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
Muhammad Rizwan Akram
 
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
SOFTTECHHUB
 
Your startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean account
angelo60207
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 

Using PEM to understand and improve performance in Postgres: Postgres Tuning Wizard and Performance Diagnostics

  • 1. Using PEM to understand and improve performance in Postgres: Postgres Tuning Wizard and Performance Diagnostics Ashesh Vashi, Bruce Momjian, Marc Linster Hosted by: Courtney Brown
  • 2. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.2 • Slides and recording will be available in next 24 hours • Submit questions via GotoWebinar – will be answering at end • We will be sharing info about EDB and Postgres later Welcome – Housekeeping Items
  • 3. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.3 Webinar Series Every other Monday at 8:00 AM PDT/ 11:00 AM EDT 16:00 BST/ 17:00 CET June 3 2020 New Approaches to Integrating Oracle and Postgres Database Strategies June 17 2020 How to Design for Database High Availability July 15 2020 Using PEM to understand and improve performance in Postgres: Postgres Tuning Wizard and Performance Diagnostics July 29 2020 How to Harness The Power of New and Improved Features in PostgreSQL 13 August 12 2020 EDB Replicate
  • 4. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.4 • Introduction to PEM • Performance Monitoring • Database Tuning • Tuning Wizard • Performance Diagnostics • EDB Wait States • Demo Agenda
  • 5. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.5 Introduction to PEM
  • 6. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.6 What can PEM do?
  • 7. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.7 PEM Architecture
  • 8. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.8 Market Landscape
  • 9. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.9 Performance Monitoring Monitoring Target Probes Metrics Type of monitored data Host/Operating System 10 47 CPU Usage, Disk Busy Info, Disk Space, IO Analysis, Load Average, Memory Usage, Network Statistics, OS Information, OS Statistics, Server Auto Discovery Database Server/Instance 27 196 Background Writer Statistics, Blocked Session Information, Data and Log File Analysis, Database Frozen XID, Database Size, Database Statistics, EDB Audit Configuration, Failover Manager Cluster Info, Failover Manager Node Status, Lock Information, Number of Prepared Transactions, Number of WAL Files, Database, Tablespace, PG HBA Conf, Server Information, Server log Configuration, Session Information, Session Waits, Settings, Streaming Replication, Streaming Replication Database Conflicts, Streaming Replication Lag Time, System Waits, Tablespace Size, User Information, WAL Archive Status Database 15 90 Function Statistics, Index Size, Index Statistics, Materialized View Bloat, Materialized View Frozen XID, Materialized View Size, Object Catalog: Extension, Object Catalog: Schema, Slony Replication, SQL/Protect, Table Bloat, Table Frozen XID, Table Size, Table Statistics, xDB Replication Schema 6 26 Foreign Key, Function, Index, Sequence, Table, View
  • 10. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.10 Instance Tuning • Tuning Wizard • Postgres Expert • Capacity Manager (Capacity Planning) Database Tuning Workload/Schema Tuning • Postgres Expert • Explain plan analyzer (in the query tool) • SQL Profiler • Performance Diagnostics (Wait Events)
  • 11. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.11 • Reviews the database server installation, and recommends a set of configuration options that will help tune the installation best suited for your workload • Machine Utilization + Dedicated, Work station, Developer workstation • Workload + OLTP, Mixed, Data warehouse • effective_cache_size, maintainance_work_mem, max_wal_size, min_wal_size, random_page_cost, shared_buffers, wal_buffers, work_mem Tuning Wizard
  • 12. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.12 • An active session can be utilizing a CPU or waiting for an internal event/action to happen • Wait Events (EDB Wait States) • pg_stat_activity view - wait_event_type, wait_event Performance Diagnostics • LWLock • Lock • BufferPin • Activity • Extension • Client • IPC • Timeout • IO
  • 13. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.13 ● EDB Wait States Background Worker (EWSBW) ○ EDB Postgres Advanced Server 11+ ○ Probes each of the running sessions at regular intervals ○ Collection information for every sessions ■ Database, User, Query, Wait Events ● Wait States Interface ○ edb_wait_states_data ○ edb_wait_states_queries ○ edb_wait_states_sessions ○ edb_wait_states_samples EDB Wait States
  • 14. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.14 DEMO
  • 15. ONLY OPEN SOURCE BASED RDBMS IN GARTNER MQ EDB recognized 7 years in a row on Gartner’s Magic Quadrant 15 CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.
  • 16. Customers working SMARTER, reducing RISK and being more PRODUCTIVE with EDB. OVER 4,000 CUSTOMERS U.S Customers EMEA Customers APAC Customers 102 of the Fortune 500 337 of the Forbes Global 2000
  • 17. EDB OPEN SOURCE LEADERSHIP NAMED EDB OPEN SOURCE COMMITTERS AND CONTRIBUTORS CORE TEAM ● ● ● MAJOR CONTRIBUTORS CONTRIBUTORS Akshay Joshi Amul Sul Ashesh Vashi Dilip Kumar Jeevan Ladhe Mithun Cy Devrim Gündüz Amit Kapila Bruce Momjian Dave Page Robert Haas Ashutosh Sharma Rushabh Lathia - designates committers
  • 18. EDB Postgres Database 24/7 Global Support Professional Services Postgres Contributions Tools & Innovation Security/performance
  • 19. Thank You EDB supercharges Postgres to help our customers overcome these challenges.