SlideShare a Scribd company logo
1 of 34
Download to read offline
Architect, Enterprise and Cloud Manageability
Oracle America
John Beresniewicz
Data visualization research experiments using ASH data
#ASHviz
Our mission is to help people
see data in new ways, discover insights,
unlock endless possibilities.
The following is intended to outline our general product direction. It is intended for information
purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any
material, code, or functionality, and should not be relied upon in making purchasing decisions. The
development, release, timing, and pricing of any features or functionality described for Oracle’s
products may change and remains at the sole discretion of Oracle Corporation.
Safe harbor statement
Copyright © 2020, Oracle and/or its affiliates3
Copyright © 2020, Oracle and/or its affiliates4
Two decades of Oracle performance visualization
Savant Diagnostic Center for Oracle
• “What’s going on?”
Oracle Enterprise Manager
• Performance Page
• Top Activity
• ASH Analytics
ASH is the mother lode
• System-wide in scope
• Fine grained detail
Background
Copyright © 2020, Oracle and/or its affiliates5
Expose ASH secrets using data visualization
Investigate event count estimation in particular
Develop facility with various data viz constructs
Purpose
Copyright © 2020, Oracle and/or its affiliates6
ASH dump file
• Raw production data snapshot
RStudio
• R development IDE
tidyverse
• R packages for data science
ggplot
• High quality data visualization
Data and tools
Real data and high quality free
tools enable rapid progress
Copyright © 2020, Oracle and/or its affiliates7
4 csv files from 4-node RAC ASH dump
• Oracle 10.2 database circa 2004
Production OLTP workload
V$EVENT_NAME data
• mapping event ID to name and waitclass name
Imported, curated, packaged for re-use
ASH data
Copyright © 2020, Oracle and/or its affiliates8
ashDF
• Raw csv ASH dump data from 4 RAC instances
• Curated for analysis
Events
• Split wait events out from ashDF
Core data frames
ashDF <- ashdat::ASHDUMP1
Events <- ashDF %>% filter( TIME_WAITED >0 )
Copyright © 2020, Oracle and/or its affiliates9
SAMPLE_TIME: 6 digits after secs
• microsecond time deltas
Almost all columns are Factors
214K sample rows from 4 instances
Added columns:
• MINIT (for minute summaries)
• STATE (cpu, IO, wait)
• STATE_CLASS (cpu or waitclass)
• EST_COUNT (event count estimate)
str(ashDF)
Copyright © 2020, Oracle and/or its affiliates10
Full-featured IDE
Integrated with tidyverse
Multiple project file types
• R script
• R Notebook
• R Markdown
• R Presentation
R development: Rstudio
Copyright © 2020, Oracle and/or its affiliates11
A Hadley Wickham creation
Collection of convenience packages for R programming
• Data science and visualization
Common philosophy and interface patterns
Designed to work together consistently
Data wrangling: tidyverse
install.packages(“tidyverse”)
dplyr
tibble
forcats
lubridate
ggplot2
Copyright © 2020, Oracle and/or its affiliates12
www.tidyverse.org
“The tidyverse is an opinionated collection of R packages
designed for data science. All packages share an underlying
design philosophy, grammar, and data structures.”
Copyright © 2020, Oracle and/or its affiliates13
R data pipeline
Samples <- ashDF %>%
# trim
select(INSTANCE_NUMBER, SAMPLE_TIME, SAMPLE_ID) %>%
# compute by instance
group_by(INSTANCE_NUMBER) %>%
# unique samples
distinct(SAMPLE_TIME, SAMPLE_ID) %>%
# get previous sample time
mutate(PREV_TIME = lag(SAMPLE_TIME, order_by = SAMPLE_ID)) %>%
# compute sample time deltas in milliseconds
mutate(DIFF_MSECS = 1000 *
as.numeric(difftime(SAMPLE_TIME, PREV_TIME, units = "secs")))
Copyright © 2020, Oracle and/or its affiliates14
Based on Wilkinson’s layered “Grammar of Graphics”
Plot in layers composed of:
• Data (data frame)
• Statistical transform (stat_count)
• Geometric objects (geom_histogram)
• Coordinates, faceting, position
Supports progressive iteration, refinement and composition
Many nice extension packages (gganimate, ggraph)
Visualizing data: ggplot2
Copyright © 2020, Oracle and/or its affiliates15
Data Frame
• Essentially a table wrapped into an object with special properties
Aesthetics
• Map data variables to graphical attributes: x, y, color, size
Geoms
• Geometric objects to render using the aesthetics
Faceting
• Subdivide plot into multiple sub-plots (e.g. by instance)
Plot components
Copyright © 2020, Oracle and/or its affiliates16
ggplot examples
d4 <- ashDF %>% group_by(MINIT, STATE) %>% summarize(AAS = n()/60)
#
p <- ggplot(d4, aes(x = MINIT, y = AAS, fill = STATE))
#
p + geom_area()
ggplot(data = Events,
aes(x = EVENT_ID, y = log10(TIME_WAITED))) +
geom_boxplot() +
geom_hline(yintercept = c(3,6), color = "red") +
scale_x_discrete(labels=NULL)
Copyright © 2020, Oracle and/or its affiliates | Confidential: Internal/Restricted/Highly Restricted17
Aesthetics and scales
• Faceting
• Filtering
• Log scales
• Point sizes
• Alpha values
• Zoom
• Colour
Geoms
• Line charts
• Histograms
• Dot plots / bubble charts
• Box-whisker plots
• Density and violin plots
• Polar coordinates
Tidy data
• Pipe
• Mutate
• Filter
• Group_by
Techniques used
Copyright © 2020, Oracle and/or its affiliates18
Tidyverse:
• https://www.tidyverse.org
• https://rstudio.com
Details about ASH mechanism:
• ASH Architecture and Advanced Usage
ASHviz article series on LinkedIn:
• https://www.linkedin.com/in/john-beresniewicz-986b0/detail/recent-activity/posts/
Google / Stackoverflow
Resources
Copyright © 2020, Oracle and/or its affiliates19
Decide on a target objective
• What is hiding in ASH to reveal?
Imagine visualizations for exposing objective
• Map to geoms
Create data frame for plotting
• Apply stats or mutations to ashDF
Plot data with geom
• Evaluate effectiveness
Tweak plot parameters, change geoms
ASHviz process
Decide
Imagine
CreatePlot
Tweak
Copyright © 2020, Oracle and/or its affiliates20
• Active sessions over time
• ASH sampler timing consistency
• Event latency point clouds
• Event latency distributions
• Mapping DB time to sessions and SQL
Investigations
Copyright © 2020, Oracle and/or its affiliates21
highlight gallery
Copyright © 2020, Oracle and/or its affiliates22
Copyright © 2020, Oracle and/or its affiliates23
Copyright © 2020, Oracle and/or its affiliates24
Copyright © 2020, Oracle and/or its affiliates25
Copyright © 2020, Oracle and/or its affiliates26
Copyright © 2020, Oracle and/or its affiliates27
Copyright © 2020, Oracle and/or its affiliates28
Copyright © 2020, Oracle and/or its affiliates29
Copyright © 2020, Oracle and/or its affiliates30 Copyright © 2020, Oracle and/or its affiliates68
Copyright © 2020, Oracle and/or its affiliates31
32
End
Copyright © 2020, Oracle and/or its affiliates33
@JBeresniewicz
john.beresniewicz@oracle.com
Thank you
ASHviz Research Using Oracle ASH Data

More Related Content

What's hot

Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsEnkitec
 
How to find what is making your Oracle database slow
How to find what is making your Oracle database slowHow to find what is making your Oracle database slow
How to find what is making your Oracle database slowSolarWinds
 
Earl Shaffer Oracle Performance Tuning pre12c 11g AWR uses
Earl Shaffer Oracle Performance Tuning pre12c 11g AWR usesEarl Shaffer Oracle Performance Tuning pre12c 11g AWR uses
Earl Shaffer Oracle Performance Tuning pre12c 11g AWR usesoramanc
 
Whitepaper: Mining the AWR repository for Capacity Planning and Visualization
Whitepaper: Mining the AWR repository for Capacity Planning and VisualizationWhitepaper: Mining the AWR repository for Capacity Planning and Visualization
Whitepaper: Mining the AWR repository for Capacity Planning and VisualizationKristofferson A
 
Advanced tips for making Oracle databases faster
Advanced tips for making Oracle databases fasterAdvanced tips for making Oracle databases faster
Advanced tips for making Oracle databases fasterSolarWinds
 
Oracle database performance tuning
Oracle database performance tuningOracle database performance tuning
Oracle database performance tuningYogiji Creations
 
VirtaThon 2011 - Mining the AWR
VirtaThon 2011 - Mining the AWRVirtaThon 2011 - Mining the AWR
VirtaThon 2011 - Mining the AWRKristofferson A
 
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...Kristofferson A
 
Whitepaper: Where did my CPU go?
Whitepaper: Where did my CPU go?Whitepaper: Where did my CPU go?
Whitepaper: Where did my CPU go?Kristofferson A
 
Oracle Database Performance Tuning Basics
Oracle Database Performance Tuning BasicsOracle Database Performance Tuning Basics
Oracle Database Performance Tuning Basicsnitin anjankar
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsCarlos Sierra
 
Oracle Performance Tuning Training | Oracle Performance Tuning
Oracle Performance Tuning Training | Oracle Performance TuningOracle Performance Tuning Training | Oracle Performance Tuning
Oracle Performance Tuning Training | Oracle Performance TuningOracleTrainings
 
Oracle db performance tuning
Oracle db performance tuningOracle db performance tuning
Oracle db performance tuningSimon Huang
 
Top 10 tips for Oracle performance (Updated April 2015)
Top 10 tips for Oracle performance (Updated April 2015)Top 10 tips for Oracle performance (Updated April 2015)
Top 10 tips for Oracle performance (Updated April 2015)Guy Harrison
 
Oracle Database : Addressing a performance issue the drilldown approach
Oracle Database : Addressing a performance issue the drilldown approachOracle Database : Addressing a performance issue the drilldown approach
Oracle Database : Addressing a performance issue the drilldown approachLaurent Leturgez
 
Top 10 tips for Oracle performance
Top 10 tips for Oracle performanceTop 10 tips for Oracle performance
Top 10 tips for Oracle performanceGuy Harrison
 
Oracle sql high performance tuning
Oracle sql high performance tuningOracle sql high performance tuning
Oracle sql high performance tuningGuy Harrison
 
OOUG - Oracle Performance Tuning with AAS
OOUG - Oracle Performance Tuning with AASOOUG - Oracle Performance Tuning with AAS
OOUG - Oracle Performance Tuning with AASKyle Hailey
 
Contract-oriented PLSQL Programming
Contract-oriented PLSQL ProgrammingContract-oriented PLSQL Programming
Contract-oriented PLSQL ProgrammingJohn Beresniewicz
 

What's hot (20)

Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
 
How to find what is making your Oracle database slow
How to find what is making your Oracle database slowHow to find what is making your Oracle database slow
How to find what is making your Oracle database slow
 
Earl Shaffer Oracle Performance Tuning pre12c 11g AWR uses
Earl Shaffer Oracle Performance Tuning pre12c 11g AWR usesEarl Shaffer Oracle Performance Tuning pre12c 11g AWR uses
Earl Shaffer Oracle Performance Tuning pre12c 11g AWR uses
 
Whitepaper: Mining the AWR repository for Capacity Planning and Visualization
Whitepaper: Mining the AWR repository for Capacity Planning and VisualizationWhitepaper: Mining the AWR repository for Capacity Planning and Visualization
Whitepaper: Mining the AWR repository for Capacity Planning and Visualization
 
Advanced tips for making Oracle databases faster
Advanced tips for making Oracle databases fasterAdvanced tips for making Oracle databases faster
Advanced tips for making Oracle databases faster
 
Oracle database performance tuning
Oracle database performance tuningOracle database performance tuning
Oracle database performance tuning
 
VirtaThon 2011 - Mining the AWR
VirtaThon 2011 - Mining the AWRVirtaThon 2011 - Mining the AWR
VirtaThon 2011 - Mining the AWR
 
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
 
AAS Deeper Meaning
AAS Deeper MeaningAAS Deeper Meaning
AAS Deeper Meaning
 
Whitepaper: Where did my CPU go?
Whitepaper: Where did my CPU go?Whitepaper: Where did my CPU go?
Whitepaper: Where did my CPU go?
 
Oracle Database Performance Tuning Basics
Oracle Database Performance Tuning BasicsOracle Database Performance Tuning Basics
Oracle Database Performance Tuning Basics
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
 
Oracle Performance Tuning Training | Oracle Performance Tuning
Oracle Performance Tuning Training | Oracle Performance TuningOracle Performance Tuning Training | Oracle Performance Tuning
Oracle Performance Tuning Training | Oracle Performance Tuning
 
Oracle db performance tuning
Oracle db performance tuningOracle db performance tuning
Oracle db performance tuning
 
Top 10 tips for Oracle performance (Updated April 2015)
Top 10 tips for Oracle performance (Updated April 2015)Top 10 tips for Oracle performance (Updated April 2015)
Top 10 tips for Oracle performance (Updated April 2015)
 
Oracle Database : Addressing a performance issue the drilldown approach
Oracle Database : Addressing a performance issue the drilldown approachOracle Database : Addressing a performance issue the drilldown approach
Oracle Database : Addressing a performance issue the drilldown approach
 
Top 10 tips for Oracle performance
Top 10 tips for Oracle performanceTop 10 tips for Oracle performance
Top 10 tips for Oracle performance
 
Oracle sql high performance tuning
Oracle sql high performance tuningOracle sql high performance tuning
Oracle sql high performance tuning
 
OOUG - Oracle Performance Tuning with AAS
OOUG - Oracle Performance Tuning with AASOOUG - Oracle Performance Tuning with AAS
OOUG - Oracle Performance Tuning with AAS
 
Contract-oriented PLSQL Programming
Contract-oriented PLSQL ProgrammingContract-oriented PLSQL Programming
Contract-oriented PLSQL Programming
 

Similar to ASHviz Research Using Oracle ASH Data

Introduction to Amazon Athena
Introduction to Amazon AthenaIntroduction to Amazon Athena
Introduction to Amazon AthenaSungmin Kim
 
Streaming Solutions for Real time problems
Streaming Solutions for Real time problemsStreaming Solutions for Real time problems
Streaming Solutions for Real time problemsAbhishek Gupta
 
Scaling up with Cisco Big Data: Data + Science = Data Science
Scaling up with Cisco Big Data: Data + Science = Data ScienceScaling up with Cisco Big Data: Data + Science = Data Science
Scaling up with Cisco Big Data: Data + Science = Data ScienceeRic Choo
 
How we evolved data pipeline at Celtra and what we learned along the way
How we evolved data pipeline at Celtra and what we learned along the wayHow we evolved data pipeline at Celtra and what we learned along the way
How we evolved data pipeline at Celtra and what we learned along the wayGrega Kespret
 
2021 04-20 apache arrow and its impact on the database industry.pptx
2021 04-20  apache arrow and its impact on the database industry.pptx2021 04-20  apache arrow and its impact on the database industry.pptx
2021 04-20 apache arrow and its impact on the database industry.pptxAndrew Lamb
 
Node.js and the MySQL Document Store
Node.js and the MySQL Document StoreNode.js and the MySQL Document Store
Node.js and the MySQL Document StoreRui Quelhas
 
Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...
Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...
Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...DataStax
 
Microsoft R Server for Data Sciencea
Microsoft R Server for Data ScienceaMicrosoft R Server for Data Sciencea
Microsoft R Server for Data ScienceaData Science Thailand
 
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)Trivadis
 
IBM Cloud Native Day April 2021: Serverless Data Lake
IBM Cloud Native Day April 2021: Serverless Data LakeIBM Cloud Native Day April 2021: Serverless Data Lake
IBM Cloud Native Day April 2021: Serverless Data LakeTorsten Steinbach
 
6° Sessione - Ambiti applicativi nella ricerca di tecnologie statistiche avan...
6° Sessione - Ambiti applicativi nella ricerca di tecnologie statistiche avan...6° Sessione - Ambiti applicativi nella ricerca di tecnologie statistiche avan...
6° Sessione - Ambiti applicativi nella ricerca di tecnologie statistiche avan...Jürgen Ambrosi
 
xPatterns on Spark, Shark, Mesos, Tachyon
xPatterns on Spark, Shark, Mesos, TachyonxPatterns on Spark, Shark, Mesos, Tachyon
xPatterns on Spark, Shark, Mesos, TachyonClaudiu Barbura
 
Azure Data.pptx
Azure Data.pptxAzure Data.pptx
Azure Data.pptxFedoRam1
 
What's New in Apache Hive 3.0?
What's New in Apache Hive 3.0?What's New in Apache Hive 3.0?
What's New in Apache Hive 3.0?DataWorks Summit
 
What's New in Apache Hive 3.0 - Tokyo
What's New in Apache Hive 3.0 - TokyoWhat's New in Apache Hive 3.0 - Tokyo
What's New in Apache Hive 3.0 - TokyoDataWorks Summit
 
Enterprise guide to building a Data Mesh
Enterprise guide to building a Data MeshEnterprise guide to building a Data Mesh
Enterprise guide to building a Data MeshSion Smith
 
Etosha - Data Asset Manager : Status and road map
Etosha - Data Asset Manager : Status and road mapEtosha - Data Asset Manager : Status and road map
Etosha - Data Asset Manager : Status and road mapDr. Mirko Kämpf
 
Cepta The Future of Data with Power BI
Cepta The Future of Data with Power BICepta The Future of Data with Power BI
Cepta The Future of Data with Power BIKellyn Pot'Vin-Gorman
 

Similar to ASHviz Research Using Oracle ASH Data (20)

Spark etl
Spark etlSpark etl
Spark etl
 
Introduction to Amazon Athena
Introduction to Amazon AthenaIntroduction to Amazon Athena
Introduction to Amazon Athena
 
Streaming Solutions for Real time problems
Streaming Solutions for Real time problemsStreaming Solutions for Real time problems
Streaming Solutions for Real time problems
 
Scaling up with Cisco Big Data: Data + Science = Data Science
Scaling up with Cisco Big Data: Data + Science = Data ScienceScaling up with Cisco Big Data: Data + Science = Data Science
Scaling up with Cisco Big Data: Data + Science = Data Science
 
How we evolved data pipeline at Celtra and what we learned along the way
How we evolved data pipeline at Celtra and what we learned along the wayHow we evolved data pipeline at Celtra and what we learned along the way
How we evolved data pipeline at Celtra and what we learned along the way
 
2021 04-20 apache arrow and its impact on the database industry.pptx
2021 04-20  apache arrow and its impact on the database industry.pptx2021 04-20  apache arrow and its impact on the database industry.pptx
2021 04-20 apache arrow and its impact on the database industry.pptx
 
Node.js and the MySQL Document Store
Node.js and the MySQL Document StoreNode.js and the MySQL Document Store
Node.js and the MySQL Document Store
 
Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...
Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...
Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...
 
Microsoft R Server for Data Sciencea
Microsoft R Server for Data ScienceaMicrosoft R Server for Data Sciencea
Microsoft R Server for Data Sciencea
 
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
 
IBM Cloud Native Day April 2021: Serverless Data Lake
IBM Cloud Native Day April 2021: Serverless Data LakeIBM Cloud Native Day April 2021: Serverless Data Lake
IBM Cloud Native Day April 2021: Serverless Data Lake
 
6° Sessione - Ambiti applicativi nella ricerca di tecnologie statistiche avan...
6° Sessione - Ambiti applicativi nella ricerca di tecnologie statistiche avan...6° Sessione - Ambiti applicativi nella ricerca di tecnologie statistiche avan...
6° Sessione - Ambiti applicativi nella ricerca di tecnologie statistiche avan...
 
xPatterns on Spark, Shark, Mesos, Tachyon
xPatterns on Spark, Shark, Mesos, TachyonxPatterns on Spark, Shark, Mesos, Tachyon
xPatterns on Spark, Shark, Mesos, Tachyon
 
Oracle OpenWorld 2014 Review Part Four - PaaS Middleware
Oracle OpenWorld 2014 Review Part Four - PaaS MiddlewareOracle OpenWorld 2014 Review Part Four - PaaS Middleware
Oracle OpenWorld 2014 Review Part Four - PaaS Middleware
 
Azure Data.pptx
Azure Data.pptxAzure Data.pptx
Azure Data.pptx
 
What's New in Apache Hive 3.0?
What's New in Apache Hive 3.0?What's New in Apache Hive 3.0?
What's New in Apache Hive 3.0?
 
What's New in Apache Hive 3.0 - Tokyo
What's New in Apache Hive 3.0 - TokyoWhat's New in Apache Hive 3.0 - Tokyo
What's New in Apache Hive 3.0 - Tokyo
 
Enterprise guide to building a Data Mesh
Enterprise guide to building a Data MeshEnterprise guide to building a Data Mesh
Enterprise guide to building a Data Mesh
 
Etosha - Data Asset Manager : Status and road map
Etosha - Data Asset Manager : Status and road mapEtosha - Data Asset Manager : Status and road map
Etosha - Data Asset Manager : Status and road map
 
Cepta The Future of Data with Power BI
Cepta The Future of Data with Power BICepta The Future of Data with Power BI
Cepta The Future of Data with Power BI
 

Recently uploaded

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

ASHviz Research Using Oracle ASH Data

  • 1. Architect, Enterprise and Cloud Manageability Oracle America John Beresniewicz Data visualization research experiments using ASH data #ASHviz
  • 2. Our mission is to help people see data in new ways, discover insights, unlock endless possibilities.
  • 3. The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, timing, and pricing of any features or functionality described for Oracle’s products may change and remains at the sole discretion of Oracle Corporation. Safe harbor statement Copyright © 2020, Oracle and/or its affiliates3
  • 4. Copyright © 2020, Oracle and/or its affiliates4 Two decades of Oracle performance visualization Savant Diagnostic Center for Oracle • “What’s going on?” Oracle Enterprise Manager • Performance Page • Top Activity • ASH Analytics ASH is the mother lode • System-wide in scope • Fine grained detail Background
  • 5. Copyright © 2020, Oracle and/or its affiliates5 Expose ASH secrets using data visualization Investigate event count estimation in particular Develop facility with various data viz constructs Purpose
  • 6. Copyright © 2020, Oracle and/or its affiliates6 ASH dump file • Raw production data snapshot RStudio • R development IDE tidyverse • R packages for data science ggplot • High quality data visualization Data and tools Real data and high quality free tools enable rapid progress
  • 7. Copyright © 2020, Oracle and/or its affiliates7 4 csv files from 4-node RAC ASH dump • Oracle 10.2 database circa 2004 Production OLTP workload V$EVENT_NAME data • mapping event ID to name and waitclass name Imported, curated, packaged for re-use ASH data
  • 8. Copyright © 2020, Oracle and/or its affiliates8 ashDF • Raw csv ASH dump data from 4 RAC instances • Curated for analysis Events • Split wait events out from ashDF Core data frames ashDF <- ashdat::ASHDUMP1 Events <- ashDF %>% filter( TIME_WAITED >0 )
  • 9. Copyright © 2020, Oracle and/or its affiliates9 SAMPLE_TIME: 6 digits after secs • microsecond time deltas Almost all columns are Factors 214K sample rows from 4 instances Added columns: • MINIT (for minute summaries) • STATE (cpu, IO, wait) • STATE_CLASS (cpu or waitclass) • EST_COUNT (event count estimate) str(ashDF)
  • 10. Copyright © 2020, Oracle and/or its affiliates10 Full-featured IDE Integrated with tidyverse Multiple project file types • R script • R Notebook • R Markdown • R Presentation R development: Rstudio
  • 11. Copyright © 2020, Oracle and/or its affiliates11 A Hadley Wickham creation Collection of convenience packages for R programming • Data science and visualization Common philosophy and interface patterns Designed to work together consistently Data wrangling: tidyverse install.packages(“tidyverse”) dplyr tibble forcats lubridate ggplot2
  • 12. Copyright © 2020, Oracle and/or its affiliates12 www.tidyverse.org “The tidyverse is an opinionated collection of R packages designed for data science. All packages share an underlying design philosophy, grammar, and data structures.”
  • 13. Copyright © 2020, Oracle and/or its affiliates13 R data pipeline Samples <- ashDF %>% # trim select(INSTANCE_NUMBER, SAMPLE_TIME, SAMPLE_ID) %>% # compute by instance group_by(INSTANCE_NUMBER) %>% # unique samples distinct(SAMPLE_TIME, SAMPLE_ID) %>% # get previous sample time mutate(PREV_TIME = lag(SAMPLE_TIME, order_by = SAMPLE_ID)) %>% # compute sample time deltas in milliseconds mutate(DIFF_MSECS = 1000 * as.numeric(difftime(SAMPLE_TIME, PREV_TIME, units = "secs")))
  • 14. Copyright © 2020, Oracle and/or its affiliates14 Based on Wilkinson’s layered “Grammar of Graphics” Plot in layers composed of: • Data (data frame) • Statistical transform (stat_count) • Geometric objects (geom_histogram) • Coordinates, faceting, position Supports progressive iteration, refinement and composition Many nice extension packages (gganimate, ggraph) Visualizing data: ggplot2
  • 15. Copyright © 2020, Oracle and/or its affiliates15 Data Frame • Essentially a table wrapped into an object with special properties Aesthetics • Map data variables to graphical attributes: x, y, color, size Geoms • Geometric objects to render using the aesthetics Faceting • Subdivide plot into multiple sub-plots (e.g. by instance) Plot components
  • 16. Copyright © 2020, Oracle and/or its affiliates16 ggplot examples d4 <- ashDF %>% group_by(MINIT, STATE) %>% summarize(AAS = n()/60) # p <- ggplot(d4, aes(x = MINIT, y = AAS, fill = STATE)) # p + geom_area() ggplot(data = Events, aes(x = EVENT_ID, y = log10(TIME_WAITED))) + geom_boxplot() + geom_hline(yintercept = c(3,6), color = "red") + scale_x_discrete(labels=NULL)
  • 17. Copyright © 2020, Oracle and/or its affiliates | Confidential: Internal/Restricted/Highly Restricted17 Aesthetics and scales • Faceting • Filtering • Log scales • Point sizes • Alpha values • Zoom • Colour Geoms • Line charts • Histograms • Dot plots / bubble charts • Box-whisker plots • Density and violin plots • Polar coordinates Tidy data • Pipe • Mutate • Filter • Group_by Techniques used
  • 18. Copyright © 2020, Oracle and/or its affiliates18 Tidyverse: • https://www.tidyverse.org • https://rstudio.com Details about ASH mechanism: • ASH Architecture and Advanced Usage ASHviz article series on LinkedIn: • https://www.linkedin.com/in/john-beresniewicz-986b0/detail/recent-activity/posts/ Google / Stackoverflow Resources
  • 19. Copyright © 2020, Oracle and/or its affiliates19 Decide on a target objective • What is hiding in ASH to reveal? Imagine visualizations for exposing objective • Map to geoms Create data frame for plotting • Apply stats or mutations to ashDF Plot data with geom • Evaluate effectiveness Tweak plot parameters, change geoms ASHviz process Decide Imagine CreatePlot Tweak
  • 20. Copyright © 2020, Oracle and/or its affiliates20 • Active sessions over time • ASH sampler timing consistency • Event latency point clouds • Event latency distributions • Mapping DB time to sessions and SQL Investigations
  • 21. Copyright © 2020, Oracle and/or its affiliates21 highlight gallery
  • 22. Copyright © 2020, Oracle and/or its affiliates22
  • 23. Copyright © 2020, Oracle and/or its affiliates23
  • 24. Copyright © 2020, Oracle and/or its affiliates24
  • 25. Copyright © 2020, Oracle and/or its affiliates25
  • 26. Copyright © 2020, Oracle and/or its affiliates26
  • 27. Copyright © 2020, Oracle and/or its affiliates27
  • 28. Copyright © 2020, Oracle and/or its affiliates28
  • 29. Copyright © 2020, Oracle and/or its affiliates29
  • 30. Copyright © 2020, Oracle and/or its affiliates30 Copyright © 2020, Oracle and/or its affiliates68
  • 31. Copyright © 2020, Oracle and/or its affiliates31
  • 33. Copyright © 2020, Oracle and/or its affiliates33 @JBeresniewicz john.beresniewicz@oracle.com Thank you