SlideShare a Scribd company logo
Slide 1 of 16
Code Optimization and Performance Tuning Using Intel VTune
In this session, you will learn to:
Use the Tuning Assistant
Objectives
Slide 2 of 16
Code Optimization and Performance Tuning Using Intel VTune
Tuning assistant is a tool that provides with information that
enables you to tune the performance of your application and
the way it uses system resources.
Using Tuning Assistant
Slide 3 of 16
Code Optimization and Performance Tuning Using Intel VTune
Once the optimization goals are clear, you can tune your
application at the following three levels:
System-level tuning
Application-level tuning
Microarchitecture-level tuning
Understanding the Tuning Methodology
Slide 4 of 16
Code Optimization and Performance Tuning Using Intel VTune
System-level tuning:
Helps in optimizing the utilization of system resources.
Speeds up the performance of the application by improving the
way application interacts with the system.
Is significant for input/output (I/O) intensive applications. The
performance of these applications depends on the
performance of the I/O system that provides the I/O service.
Can be achieved by using the counter monitor feature of
VTune Performance Analyzer.
Understanding the Tuning Methodology (Contd.)
Slide 5 of 16
Code Optimization and Performance Tuning Using Intel VTune
Application-level tuning:
Helps in reducing the execution time of an application.
Can be performed by improving the algorithms of the
application, implementing threads, and by using Application
Programming Interfaces (APIs) and primitives.
Can be achieved by identifying the code snippets that have a
high impact on the performance of the application.
Helps in identifying the code snippets by using the sampling or
call graph feature of the VTune Performance Analyzer.
Understanding the Tuning Methodology (Contd.)
Slide 6 of 16
Code Optimization and Performance Tuning Using Intel VTune
Microarchitecture-level tuning:
Increases the performance of an application by improving the
way an application runs on the processor.
Can be used with processor-intensive applications
If an application is not processor-intensive, then you should first
improve processor utilization by using system-level and
application-level tuning.
Can be achieved by using the sampling feature of VTune
Performance Analyzer.
Understanding the Tuning Methodology (Contd.)
Slide 7 of 16
Code Optimization and Performance Tuning Using Intel VTune
Just a minute
Which level of tuning methodology will you use for
I/O-intensive application?
Which level of tuning methodology will you use for a
process-intensive application?
Which level of tuning methodology will you use to reduce
the execution time of an application?
Answer:
System-level tuning
Microarchitecture-level tuning
Application-level tuning
Slide 8 of 16
Code Optimization and Performance Tuning Using Intel VTune
It is a good practice to start tuning an application at the
system-level to avoid any system-level bottlenecks.
Once you ensure that the processor utilization is high, then
you can focus on removing the application-level bottlenecks
followed by microarchitecture-level bottlenecks.
If you are not sure about the specific goals, then you should
follow the following sequence in order to achieve the best
performance of an application in the shortest possible time:
System-level
Application-level
Microarchitecture-level
Tuning Methodology for Specific Goals
Slide 9 of 16
Code Optimization and Performance Tuning Using Intel VTune
There are three main strategies to improve the performance
of an application.
Each strategy affects processor utilization in a different way:
Balancing I/O and computation
Improving the threading model
Improving the efficiency of computation
Tuning Methodology for Specific Goals (Contd.)
►
This strategy enables you to speed up the
application when the processor utilization is
low.
In this case, you need to make changes at
the system-level and the application-level.
►
This strategy enables you to:
Add multithreading to a single threaded
application
Improve the threading model of a
multithreaded application
It enables you to make effective use of
system resources.
In this case, you need to make changes at
the application-level.
►
This strategy enables you to speed up the
application by accomplishing the same amount of
work using less computations.
In this case, you need to make changes at the
application-level and microarchitecture-level
Slide 10 of 16
Code Optimization and Performance Tuning Using Intel VTune
Tuning assistant:
Helps you to get more insight into the performance issues in an
application and identify the hotspots where performance can
be improved.
Provides you with the possible solutions to remove or avoid a
performance issue.
Provides tuning advice for codes, processes, or time ranges
that you select in the source, sampling, or counter monitor
views.
Launching Tuning Assistant
Slide 11 of 16
Code Optimization and Performance Tuning Using Intel VTune
The different types of advice that tuning assistant can
provide are:
Sampling-based advice
Counter monitor-based advice
Source-based tuning advice
Static assembly penalties
Launching Tuning Assistant (Contd.)
Slide 12 of 16
Code Optimization and Performance Tuning Using Intel VTune
Activity: Launching the Tuning Assistant
Problem Statement:
Chris has developed an application in C# that creates a list of
natural numbers and displays their sum. However, on
execution, the application runs very slowly. To analyze
performance of his application, Chris decides to analyze his
application using the counter monitor feature of Intel VTune
Performance Analyzer and use Tuning Assistant to identify the
performance issues and propose possible solutions for the
issues. Help Chris perform the required task.
Slide 13 of 16
Code Optimization and Performance Tuning Using Intel VTune
Activity: Launching the Tuning Assistant (Contd.)
Solution
To analyze counter data and use Tuning Assistant to identify
system-related performance issues and propose possible
solutions for the issues, you need to perform the following
tasks:
1. Collect counter monitor data.
2. Launch Tuning Assistant.
Slide 14 of 16
Code Optimization and Performance Tuning Using Intel VTune
Activity: Launching the Tuning Assistant (Contd.)
Solution
The information that tuning assistant provides are as follows:
Insight
Relevance scale
Tuning assistant advice
Workload
Slide 15 of 16
Code Optimization and Performance Tuning Using Intel VTune
In this session, you learned that:
The Tuning Assistant tool of VTune Performance Analyzer
tunes the performance of applications.
You can tune the application at the following three levels:
System-Level tuning
Application-Level tuning
Microarchitecture-Level tuning
It is a good practice to start tuning an application at the system
level instead of microarchitecture level.
Three main strategies to improve the performance of an
application are:
Balancing I/O and computation
Improving the threading model
Improving the efficiency of computation
Summary
Slide 16 of 16
Code Optimization and Performance Tuning Using Intel VTune
The tuning assistant helps you to get more insight into the
performance issues in an application and identify the hotspots
where performance can be improved.
The different types of advice that Tuning Assistant can
generate are:
Sampling-based advice
Counter monitor-based advice
Source-based tuning advice
Static assembly penalties
Summary

More Related Content

Viewers also liked

05 asp.net session07
05 asp.net session0705 asp.net session07
05 asp.net session07
Vivek chan
 
09 intel v_tune_session_13
09 intel v_tune_session_1309 intel v_tune_session_13
09 intel v_tune_session_13
Vivek chan
 
Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant
Vivek chan
 
Net framework session01
Net framework session01Net framework session01
Net framework session01
Vivek chan
 
08 asp.net session11
08 asp.net session1108 asp.net session11
08 asp.net session11
Vivek chan
 
14 asp.net session20
14 asp.net session2014 asp.net session20
14 asp.net session20
Vivek chan
 
Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant
Vivek chan
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17
Vivek chan
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
Vivek chan
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23
Vivek chan
 
Net framework session02
Net framework session02Net framework session02
Net framework session02
Vivek chan
 
Wireless Communication via Mobile Phone Using DTMF
Wireless Communication via Mobile Phone Using DTMF Wireless Communication via Mobile Phone Using DTMF
Wireless Communication via Mobile Phone Using DTMF
Vivek chan
 
Series Parallel Circuit presentation for schools and kids
Series Parallel Circuit presentation for schools and kidsSeries Parallel Circuit presentation for schools and kids
Series Parallel Circuit presentation for schools and kids
Vivek chan
 
Complete C programming Language Course
Complete C programming Language CourseComplete C programming Language Course
Complete C programming Language Course
Vivek chan
 
CyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & SubnettingCyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & Subnetting
Vivek chan
 

Viewers also liked (15)

05 asp.net session07
05 asp.net session0705 asp.net session07
05 asp.net session07
 
09 intel v_tune_session_13
09 intel v_tune_session_1309 intel v_tune_session_13
09 intel v_tune_session_13
 
Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant
 
Net framework session01
Net framework session01Net framework session01
Net framework session01
 
08 asp.net session11
08 asp.net session1108 asp.net session11
08 asp.net session11
 
14 asp.net session20
14 asp.net session2014 asp.net session20
14 asp.net session20
 
Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23
 
Net framework session02
Net framework session02Net framework session02
Net framework session02
 
Wireless Communication via Mobile Phone Using DTMF
Wireless Communication via Mobile Phone Using DTMF Wireless Communication via Mobile Phone Using DTMF
Wireless Communication via Mobile Phone Using DTMF
 
Series Parallel Circuit presentation for schools and kids
Series Parallel Circuit presentation for schools and kidsSeries Parallel Circuit presentation for schools and kids
Series Parallel Circuit presentation for schools and kids
 
Complete C programming Language Course
Complete C programming Language CourseComplete C programming Language Course
Complete C programming Language Course
 
CyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & SubnettingCyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & Subnetting
 

Similar to 07 intel v_tune_session_10

07 intel v_tune_session_10
07 intel v_tune_session_1007 intel v_tune_session_10
07 intel v_tune_session_10Niit Care
 
Intel VTune
Intel VTuneIntel VTune
Intel VTune
Vikram Singh Saini
 
08 intel v_tune_session_11
08 intel v_tune_session_1108 intel v_tune_session_11
08 intel v_tune_session_11Niit Care
 
02 intel v_tune_session_02
02 intel v_tune_session_0202 intel v_tune_session_02
02 intel v_tune_session_02
Vivek chan
 
04 intel v_tune_session_05
04 intel v_tune_session_0504 intel v_tune_session_05
04 intel v_tune_session_05
Vivek chan
 
10 intel v_tune_session_14
10 intel  v_tune_session_1410 intel  v_tune_session_14
10 intel v_tune_session_14Niit Care
 
06 intel v_tune_session_08
06 intel v_tune_session_0806 intel v_tune_session_08
06 intel v_tune_session_08Niit Care
 
Zero breakdown solution for lg_taehwa
Zero breakdown solution for lg_taehwaZero breakdown solution for lg_taehwa
Zero breakdown solution for lg_taehwa
Vaibhav Sharma
 
EEP301: Ca06 sample
EEP301: Ca06 sampleEEP301: Ca06 sample
EEP301: Ca06 sample
Umang Gupta
 
04 intel v_tune_session_05
04 intel v_tune_session_0504 intel v_tune_session_05
04 intel v_tune_session_05Niit Care
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
Amit Gandhi
 
Princeton-NJ-Meetup-Troubleshooting-with-AnyPoint-Monitoring
Princeton-NJ-Meetup-Troubleshooting-with-AnyPoint-MonitoringPrinceton-NJ-Meetup-Troubleshooting-with-AnyPoint-Monitoring
Princeton-NJ-Meetup-Troubleshooting-with-AnyPoint-Monitoring
Sravan Lingam
 
325711-001US-secured-old
325711-001US-secured-old325711-001US-secured-old
325711-001US-secured-oldManoj Punamia
 
Mutation testing vs. regression testing
Mutation testing vs. regression testingMutation testing vs. regression testing
Mutation testing vs. regression testing
IJLT EMAS
 
L 01(sm)(ia&c) ((ee)nptel)
L 01(sm)(ia&c) ((ee)nptel)L 01(sm)(ia&c) ((ee)nptel)
L 01(sm)(ia&c) ((ee)nptel)
kabi1972
 
Graphical user Interface for Universal Testing Machine using Qt
Graphical user Interface for Universal Testing Machine using QtGraphical user Interface for Universal Testing Machine using Qt
Graphical user Interface for Universal Testing Machine using Qt
IRJET Journal
 
Microsoft az-204 download free demo at dumps cafe
Microsoft az-204 download free demo at dumps cafeMicrosoft az-204 download free demo at dumps cafe
Microsoft az-204 download free demo at dumps cafe
JeannieHeldt
 
Debug, Analyze and Optimize Games with Intel Tools
Debug, Analyze and Optimize Games with Intel Tools Debug, Analyze and Optimize Games with Intel Tools
Debug, Analyze and Optimize Games with Intel Tools
Matteo Valoriani
 
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Codemotion
 
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Codemotion
 

Similar to 07 intel v_tune_session_10 (20)

07 intel v_tune_session_10
07 intel v_tune_session_1007 intel v_tune_session_10
07 intel v_tune_session_10
 
Intel VTune
Intel VTuneIntel VTune
Intel VTune
 
08 intel v_tune_session_11
08 intel v_tune_session_1108 intel v_tune_session_11
08 intel v_tune_session_11
 
02 intel v_tune_session_02
02 intel v_tune_session_0202 intel v_tune_session_02
02 intel v_tune_session_02
 
04 intel v_tune_session_05
04 intel v_tune_session_0504 intel v_tune_session_05
04 intel v_tune_session_05
 
10 intel v_tune_session_14
10 intel  v_tune_session_1410 intel  v_tune_session_14
10 intel v_tune_session_14
 
06 intel v_tune_session_08
06 intel v_tune_session_0806 intel v_tune_session_08
06 intel v_tune_session_08
 
Zero breakdown solution for lg_taehwa
Zero breakdown solution for lg_taehwaZero breakdown solution for lg_taehwa
Zero breakdown solution for lg_taehwa
 
EEP301: Ca06 sample
EEP301: Ca06 sampleEEP301: Ca06 sample
EEP301: Ca06 sample
 
04 intel v_tune_session_05
04 intel v_tune_session_0504 intel v_tune_session_05
04 intel v_tune_session_05
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
 
Princeton-NJ-Meetup-Troubleshooting-with-AnyPoint-Monitoring
Princeton-NJ-Meetup-Troubleshooting-with-AnyPoint-MonitoringPrinceton-NJ-Meetup-Troubleshooting-with-AnyPoint-Monitoring
Princeton-NJ-Meetup-Troubleshooting-with-AnyPoint-Monitoring
 
325711-001US-secured-old
325711-001US-secured-old325711-001US-secured-old
325711-001US-secured-old
 
Mutation testing vs. regression testing
Mutation testing vs. regression testingMutation testing vs. regression testing
Mutation testing vs. regression testing
 
L 01(sm)(ia&c) ((ee)nptel)
L 01(sm)(ia&c) ((ee)nptel)L 01(sm)(ia&c) ((ee)nptel)
L 01(sm)(ia&c) ((ee)nptel)
 
Graphical user Interface for Universal Testing Machine using Qt
Graphical user Interface for Universal Testing Machine using QtGraphical user Interface for Universal Testing Machine using Qt
Graphical user Interface for Universal Testing Machine using Qt
 
Microsoft az-204 download free demo at dumps cafe
Microsoft az-204 download free demo at dumps cafeMicrosoft az-204 download free demo at dumps cafe
Microsoft az-204 download free demo at dumps cafe
 
Debug, Analyze and Optimize Games with Intel Tools
Debug, Analyze and Optimize Games with Intel Tools Debug, Analyze and Optimize Games with Intel Tools
Debug, Analyze and Optimize Games with Intel Tools
 
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
 
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
Debug, Analyze and Optimize Games with Intel Tools - Matteo Valoriani - Codem...
 

More from Vivek chan

Deceptive Marketing.pdf
Deceptive Marketing.pdfDeceptive Marketing.pdf
Deceptive Marketing.pdf
Vivek chan
 
brain controled wheel chair.pdf
brain controled wheel chair.pdfbrain controled wheel chair.pdf
brain controled wheel chair.pdf
Vivek chan
 
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Vivek chan
 
Manav dharma shashtra tatha shashan paddati munshiram jigyasu
Manav dharma shashtra tatha shashan paddati   munshiram jigyasuManav dharma shashtra tatha shashan paddati   munshiram jigyasu
Manav dharma shashtra tatha shashan paddati munshiram jigyasu
Vivek chan
 
Self driving and connected cars fooling sensors and tracking drivers
Self driving and connected cars fooling sensors and tracking driversSelf driving and connected cars fooling sensors and tracking drivers
Self driving and connected cars fooling sensors and tracking drivers
Vivek chan
 
EEG Acquisition Device to Control Wheelchair Using Thoughts
EEG Acquisition Device to Control Wheelchair Using ThoughtsEEG Acquisition Device to Control Wheelchair Using Thoughts
EEG Acquisition Device to Control Wheelchair Using Thoughts
Vivek chan
 
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Vivek chan
 
Net framework session03
Net framework session03Net framework session03
Net framework session03
Vivek chan
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
Vivek chan
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01
Vivek chan
 
15 asp.net session22
15 asp.net session2215 asp.net session22
15 asp.net session22
Vivek chan
 
13 asp.net session19
13 asp.net session1913 asp.net session19
13 asp.net session19
Vivek chan
 
11 asp.net session16
11 asp.net session1611 asp.net session16
11 asp.net session16
Vivek chan
 
10 asp.net session14
10 asp.net session1410 asp.net session14
10 asp.net session14
Vivek chan
 
09 asp.net session13
09 asp.net session1309 asp.net session13
09 asp.net session13
Vivek chan
 
07 asp.net session10
07 asp.net session1007 asp.net session10
07 asp.net session10
Vivek chan
 
06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08
Vivek chan
 

More from Vivek chan (17)

Deceptive Marketing.pdf
Deceptive Marketing.pdfDeceptive Marketing.pdf
Deceptive Marketing.pdf
 
brain controled wheel chair.pdf
brain controled wheel chair.pdfbrain controled wheel chair.pdf
brain controled wheel chair.pdf
 
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
 
Manav dharma shashtra tatha shashan paddati munshiram jigyasu
Manav dharma shashtra tatha shashan paddati   munshiram jigyasuManav dharma shashtra tatha shashan paddati   munshiram jigyasu
Manav dharma shashtra tatha shashan paddati munshiram jigyasu
 
Self driving and connected cars fooling sensors and tracking drivers
Self driving and connected cars fooling sensors and tracking driversSelf driving and connected cars fooling sensors and tracking drivers
Self driving and connected cars fooling sensors and tracking drivers
 
EEG Acquisition Device to Control Wheelchair Using Thoughts
EEG Acquisition Device to Control Wheelchair Using ThoughtsEEG Acquisition Device to Control Wheelchair Using Thoughts
EEG Acquisition Device to Control Wheelchair Using Thoughts
 
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
 
Net framework session03
Net framework session03Net framework session03
Net framework session03
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01
 
15 asp.net session22
15 asp.net session2215 asp.net session22
15 asp.net session22
 
13 asp.net session19
13 asp.net session1913 asp.net session19
13 asp.net session19
 
11 asp.net session16
11 asp.net session1611 asp.net session16
11 asp.net session16
 
10 asp.net session14
10 asp.net session1410 asp.net session14
10 asp.net session14
 
09 asp.net session13
09 asp.net session1309 asp.net session13
09 asp.net session13
 
07 asp.net session10
07 asp.net session1007 asp.net session10
07 asp.net session10
 
06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08
 

Recently uploaded

2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 

Recently uploaded (20)

2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 

07 intel v_tune_session_10

  • 1. Slide 1 of 16 Code Optimization and Performance Tuning Using Intel VTune In this session, you will learn to: Use the Tuning Assistant Objectives
  • 2. Slide 2 of 16 Code Optimization and Performance Tuning Using Intel VTune Tuning assistant is a tool that provides with information that enables you to tune the performance of your application and the way it uses system resources. Using Tuning Assistant
  • 3. Slide 3 of 16 Code Optimization and Performance Tuning Using Intel VTune Once the optimization goals are clear, you can tune your application at the following three levels: System-level tuning Application-level tuning Microarchitecture-level tuning Understanding the Tuning Methodology
  • 4. Slide 4 of 16 Code Optimization and Performance Tuning Using Intel VTune System-level tuning: Helps in optimizing the utilization of system resources. Speeds up the performance of the application by improving the way application interacts with the system. Is significant for input/output (I/O) intensive applications. The performance of these applications depends on the performance of the I/O system that provides the I/O service. Can be achieved by using the counter monitor feature of VTune Performance Analyzer. Understanding the Tuning Methodology (Contd.)
  • 5. Slide 5 of 16 Code Optimization and Performance Tuning Using Intel VTune Application-level tuning: Helps in reducing the execution time of an application. Can be performed by improving the algorithms of the application, implementing threads, and by using Application Programming Interfaces (APIs) and primitives. Can be achieved by identifying the code snippets that have a high impact on the performance of the application. Helps in identifying the code snippets by using the sampling or call graph feature of the VTune Performance Analyzer. Understanding the Tuning Methodology (Contd.)
  • 6. Slide 6 of 16 Code Optimization and Performance Tuning Using Intel VTune Microarchitecture-level tuning: Increases the performance of an application by improving the way an application runs on the processor. Can be used with processor-intensive applications If an application is not processor-intensive, then you should first improve processor utilization by using system-level and application-level tuning. Can be achieved by using the sampling feature of VTune Performance Analyzer. Understanding the Tuning Methodology (Contd.)
  • 7. Slide 7 of 16 Code Optimization and Performance Tuning Using Intel VTune Just a minute Which level of tuning methodology will you use for I/O-intensive application? Which level of tuning methodology will you use for a process-intensive application? Which level of tuning methodology will you use to reduce the execution time of an application? Answer: System-level tuning Microarchitecture-level tuning Application-level tuning
  • 8. Slide 8 of 16 Code Optimization and Performance Tuning Using Intel VTune It is a good practice to start tuning an application at the system-level to avoid any system-level bottlenecks. Once you ensure that the processor utilization is high, then you can focus on removing the application-level bottlenecks followed by microarchitecture-level bottlenecks. If you are not sure about the specific goals, then you should follow the following sequence in order to achieve the best performance of an application in the shortest possible time: System-level Application-level Microarchitecture-level Tuning Methodology for Specific Goals
  • 9. Slide 9 of 16 Code Optimization and Performance Tuning Using Intel VTune There are three main strategies to improve the performance of an application. Each strategy affects processor utilization in a different way: Balancing I/O and computation Improving the threading model Improving the efficiency of computation Tuning Methodology for Specific Goals (Contd.) ► This strategy enables you to speed up the application when the processor utilization is low. In this case, you need to make changes at the system-level and the application-level. ► This strategy enables you to: Add multithreading to a single threaded application Improve the threading model of a multithreaded application It enables you to make effective use of system resources. In this case, you need to make changes at the application-level. ► This strategy enables you to speed up the application by accomplishing the same amount of work using less computations. In this case, you need to make changes at the application-level and microarchitecture-level
  • 10. Slide 10 of 16 Code Optimization and Performance Tuning Using Intel VTune Tuning assistant: Helps you to get more insight into the performance issues in an application and identify the hotspots where performance can be improved. Provides you with the possible solutions to remove or avoid a performance issue. Provides tuning advice for codes, processes, or time ranges that you select in the source, sampling, or counter monitor views. Launching Tuning Assistant
  • 11. Slide 11 of 16 Code Optimization and Performance Tuning Using Intel VTune The different types of advice that tuning assistant can provide are: Sampling-based advice Counter monitor-based advice Source-based tuning advice Static assembly penalties Launching Tuning Assistant (Contd.)
  • 12. Slide 12 of 16 Code Optimization and Performance Tuning Using Intel VTune Activity: Launching the Tuning Assistant Problem Statement: Chris has developed an application in C# that creates a list of natural numbers and displays their sum. However, on execution, the application runs very slowly. To analyze performance of his application, Chris decides to analyze his application using the counter monitor feature of Intel VTune Performance Analyzer and use Tuning Assistant to identify the performance issues and propose possible solutions for the issues. Help Chris perform the required task.
  • 13. Slide 13 of 16 Code Optimization and Performance Tuning Using Intel VTune Activity: Launching the Tuning Assistant (Contd.) Solution To analyze counter data and use Tuning Assistant to identify system-related performance issues and propose possible solutions for the issues, you need to perform the following tasks: 1. Collect counter monitor data. 2. Launch Tuning Assistant.
  • 14. Slide 14 of 16 Code Optimization and Performance Tuning Using Intel VTune Activity: Launching the Tuning Assistant (Contd.) Solution The information that tuning assistant provides are as follows: Insight Relevance scale Tuning assistant advice Workload
  • 15. Slide 15 of 16 Code Optimization and Performance Tuning Using Intel VTune In this session, you learned that: The Tuning Assistant tool of VTune Performance Analyzer tunes the performance of applications. You can tune the application at the following three levels: System-Level tuning Application-Level tuning Microarchitecture-Level tuning It is a good practice to start tuning an application at the system level instead of microarchitecture level. Three main strategies to improve the performance of an application are: Balancing I/O and computation Improving the threading model Improving the efficiency of computation Summary
  • 16. Slide 16 of 16 Code Optimization and Performance Tuning Using Intel VTune The tuning assistant helps you to get more insight into the performance issues in an application and identify the hotspots where performance can be improved. The different types of advice that Tuning Assistant can generate are: Sampling-based advice Counter monitor-based advice Source-based tuning advice Static assembly penalties Summary