SlideShare uma empresa Scribd logo
1 de 29
RED HAT CONFIDENTIAL | pvn@redhat.com1
Paul V. Novarese
Sr. Technical Account
Manager
11 September 2014
Performance: Observe and Tune
RED HAT CONFIDENTIAL | pvn@redhat.com2
What can we do out of the box?
RED HAT CONFIDENTIAL | pvn@redhat.com3
What is “tuned”?
Tuning profile delivery mechanism
Red Hat ships tuned profiles that improve performance
for many workloads...hopefully yours!
RED HAT CONFIDENTIAL | pvn@redhat.com4
Tuned: Storage Performance Boost
RED HAT CONFIDENTIAL | pvn@redhat.com5
tuned Profile Summary: RHEL6
RED HAT CONFIDENTIAL | pvn@redhat.com6
Tuned: Updates for RHEL7

Installed by default!

Profiles automatically set based on install type:

Desktop/Workstation: balanced

Server/HPC: throughput-performance

Single tuned.conf file

Optional hook/callout capability

Inheritance (cf. httpd.conf)

Profiles updated for RHEL 7 features (obv)
RED HAT CONFIDENTIAL | pvn@redhat.com7
tuned Throughput Profiles: RHEL 7
RED HAT CONFIDENTIAL | pvn@redhat.com8
tuned Latency Profiles: RHEL 7
RED HAT CONFIDENTIAL | pvn@redhat.com9
tuned Virt Profiles: RHEL 7
RED HAT CONFIDENTIAL | pvn@redhat.com10
Let's get our hands dirty...
Tuning Strategies:
Bang for your Buck
RED HAT CONFIDENTIAL | pvn@redhat.com11
Problem Statements

Bad
– It's slow
– Make it go faster

Better
– We expect 37 gigaflups/year but we only see 24
– We have a bottleneck to a particular LUN in the SAN
RED HAT CONFIDENTIAL | pvn@redhat.com12
Turn bad statements into good statements

Determine victory conditions

Get data

Look at data

Tweak

GOTO 10
RED HAT CONFIDENTIAL | pvn@redhat.com13
Questions to ask

What's actually slow?

How do we know it's slow?

What is the expectation and what is that based on?

What is actually needed to “win”?

What changed?

How long has it been slow?

Gradual or sudden change?

Are there patterns? (same time every day?)

Can you do something to (temporarily) recover?

What evidence do you have? (sar, iostat, etc?)
RED HAT CONFIDENTIAL | pvn@redhat.com14
Identify bottlenecks

CPU

Memory

IO

Network

Application

Firmware
RED HAT CONFIDENTIAL | pvn@redhat.com15
Basic IO Tuning Strategy
Multiple HBAs
– Install (eg) device-mapper-multipath
– Default settings in /usr/share/doc/device-mapper-multipath-
0.4.7/multipath.conf.defaults
Understand storage features / limitations
– Maximum random and sequential read and writes per port
– Maximum random and sequential read and writes for the controller
Low level I/O numbers
– Tools to use dd , aiod , aio-stress, IOzone
– Run I/O representative of the database implementation
I/O Schedulers
– CFQ, Deadline, AS, Noop
RED HAT CONFIDENTIAL | pvn@redhat.com16
IO Schedulers
4 tunable I/O Schedulers
– CFQ – elevator=cfq. Completely Fair Queuing default, balanced,
fair for multiple luns, adaptors, smp servers
– NOOP – elevator=noop. No-operation (uses FIFO) in kernel, simple,
low cpu overhead, leave opt to ramdisk, raid cntrl etc.
– Deadline – elevator=deadline. Optimize for run-time-like behavior,
low latency per IO, balance issues with large IO luns/controllers.
Batches IO ops to produce predictable latencies.
– Anticipatory – elevator=as. Inserts delays to help stack aggregate
IO, best on system w/ limited physical IO – SATA
Changing I/O Schedulers
– echo deadline > /sys/block/<sdx>/queue/scheduler
– Append 'elevator=' to end of kernel line
RED HAT CONFIDENTIAL | pvn@redhat.com17
Basic CPU Tuning Strategy
Limit CPU access
– One or more processes can consume all cpu cycles
– Completely Fair Scheduler (CFS) in RHEL6 uses scheduler groups to assign
different weights to each group
– Configure cgroups and set cpu.shares for each group
Manually balance interrupts
– cat /proc/interrupts to see how interrupts are distributed to each cpu
– Edit /etc/sysconfig/irqbalance and set IRQBALANCE_BANNED_CPUS=
– As an alternative, echo 1 > /proc/irq/142/smp_affinity
Pin processes to a specific CPU
– Taskset (non-NUMA)
– Numactl
– Cgroups
Utilize real-time scheduling (nice, MRG)
RED HAT CONFIDENTIAL | pvn@redhat.com18
Basic VM Tuning Strategy
Huge Pages
– 2MB huge page size
– Set value in /etc/sysctl.conf (vm.nr_hugepages)
– Benefits - https://access.redhat.com/knowledge/solutions/2592
– Enabling - https://access.redhat.com/knowledge/solutions/46326
– Transparent Huge Pages
https://access.redhat.com/knowledge/solutions/46111
NUMA
– Localized memory access for certain workloads improves performance
Swap
– Set value of vm.swappiness (Default 60) – lower number is better for
interactive applications and avoids swapping as much as possible
RED HAT CONFIDENTIAL | pvn@redhat.com19
VM Tuning Frequent Fliers
●
/proc/sys/vm/swappiness
●
Should I swap or drop cache?
●
/proc/sys/vm/min_free_kbytes
●
Be careful adjusting this! Extremes are bad.
●
/proc/sys/vm/dirty_ratio
●
/proc/sys/vm/dirty_background_ratio
●
/proc/sys/vm/vfs_cache_pressure
RED HAT CONFIDENTIAL | pvn@redhat.com20
80/20 Rule

More like 95/5

At some point our time and effort is best spent
elsewhere
RED HAT CONFIDENTIAL | pvn@redhat.com21
What tools can we use?
sar
iostat
perf - Userspace tool to read CPU counters and kernel
tracepoints
Performance Co-Pilot (pcp) – new in RHEL 7
RED HAT CONFIDENTIAL | pvn@redhat.com22
Divider SlideTools
RED HAT CONFIDENTIAL | pvn@redhat.com23
Tradition: start with sar
●
Built-in
●
Collects stats for all four major system components (cpu,
memory, IO, network)
●
Data can be easily graphed
●
Data collection frequency can be easily changed
●
RHEL 6 sar metadata is different than RHEL 5 - you cannot use
RHEL 6 sar to read RHEL 5 sar files.
RED HAT CONFIDENTIAL | pvn@redhat.com24
Collectl
●
More complex, but more powerful
●
Can handle NFS, Slab data, and sub-second intervals
(i.e. -i .25)
●
Very low overhead (<.1% cpu usage) when run in
daemon mode (-D)
●
Send data to another server using socket mode (-A)
●
Infiniband support
RED HAT CONFIDENTIAL | pvn@redhat.com25
/proc
/proc/
– meminfo
– slabinfo
– cpuinfo
– pid<#>/maps
– vmstat(RHEL4 & RHEL5)
– zoneinfo(RHEL5)
– sysrq-trigger
RED HAT CONFIDENTIAL | pvn@redhat.com26
Performance Co-Pilot (pcp)
●
New in RHEL 7, 6.6(b)
●
Available in EPEL for RHEL 5, 6
●
Replaces legacy performance tools
●
Designed for enterprises
●
Distributed
●
Automation
●
Extensible plug-in architecture
RED HAT CONFIDENTIAL | pvn@redhat.com27
pcp Concept
RED HAT CONFIDENTIAL | pvn@redhat.com28
Other Helpful Utilities
RED HAT CONFIDENTIAL | pvn@redhat.com29
Divider Slide
Questions?
pvn@redhat.com

Mais conteúdo relacionado

Mais procurados

Kernel Recipes 2019 - BPF at Facebook
Kernel Recipes 2019 - BPF at FacebookKernel Recipes 2019 - BPF at Facebook
Kernel Recipes 2019 - BPF at FacebookAnne Nicolas
 
Modern Linux Tracing Landscape
Modern Linux Tracing LandscapeModern Linux Tracing Landscape
Modern Linux Tracing LandscapeKernel TLV
 
Kernel Recipes 2015: Kernel packet capture technologies
Kernel Recipes 2015: Kernel packet capture technologiesKernel Recipes 2015: Kernel packet capture technologies
Kernel Recipes 2015: Kernel packet capture technologiesAnne Nicolas
 
The Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast StorageThe Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast StorageKernel TLV
 
Kernel Recipes 2015: Speed up your kernel development cycle with QEMU
Kernel Recipes 2015: Speed up your kernel development cycle with QEMUKernel Recipes 2015: Speed up your kernel development cycle with QEMU
Kernel Recipes 2015: Speed up your kernel development cycle with QEMUAnne Nicolas
 
Kernel Recipes 2016 - Speeding up development by setting up a kernel build farm
Kernel Recipes 2016 - Speeding up development by setting up a kernel build farmKernel Recipes 2016 - Speeding up development by setting up a kernel build farm
Kernel Recipes 2016 - Speeding up development by setting up a kernel build farmAnne Nicolas
 
Container Performance Analysis
Container Performance AnalysisContainer Performance Analysis
Container Performance AnalysisBrendan Gregg
 
Firewalld : A New Interface to Your Netfilter Stack
Firewalld : A New Interface to Your Netfilter StackFirewalld : A New Interface to Your Netfilter Stack
Firewalld : A New Interface to Your Netfilter StackMahmoud Shiri Varamini
 
Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)
Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)
Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)Anne Nicolas
 
USENIX ATC 2017 Performance Superpowers with Enhanced BPF
USENIX ATC 2017 Performance Superpowers with Enhanced BPFUSENIX ATC 2017 Performance Superpowers with Enhanced BPF
USENIX ATC 2017 Performance Superpowers with Enhanced BPFBrendan Gregg
 
Systems@Scale 2021 BPF Performance Getting Started
Systems@Scale 2021 BPF Performance Getting StartedSystems@Scale 2021 BPF Performance Getting Started
Systems@Scale 2021 BPF Performance Getting StartedBrendan Gregg
 
Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016Brendan Gregg
 
From printk to QEMU: Xen/Linux Kernel debugging
From printk to QEMU: Xen/Linux Kernel debuggingFrom printk to QEMU: Xen/Linux Kernel debugging
From printk to QEMU: Xen/Linux Kernel debuggingThe Linux Foundation
 
LISA2019 Linux Systems Performance
LISA2019 Linux Systems PerformanceLISA2019 Linux Systems Performance
LISA2019 Linux Systems PerformanceBrendan Gregg
 
New Ways to Find Latency in Linux Using Tracing
New Ways to Find Latency in Linux Using TracingNew Ways to Find Latency in Linux Using Tracing
New Ways to Find Latency in Linux Using TracingScyllaDB
 
Performance Tuning EC2 Instances
Performance Tuning EC2 InstancesPerformance Tuning EC2 Instances
Performance Tuning EC2 InstancesBrendan Gregg
 
Kernel Recipes 2015: Solving the Linux storage scalability bottlenecks
Kernel Recipes 2015: Solving the Linux storage scalability bottlenecksKernel Recipes 2015: Solving the Linux storage scalability bottlenecks
Kernel Recipes 2015: Solving the Linux storage scalability bottlenecksAnne Nicolas
 
How Netflix Tunes EC2 Instances for Performance
How Netflix Tunes EC2 Instances for PerformanceHow Netflix Tunes EC2 Instances for Performance
How Netflix Tunes EC2 Instances for PerformanceBrendan Gregg
 

Mais procurados (20)

Kernel Recipes 2019 - BPF at Facebook
Kernel Recipes 2019 - BPF at FacebookKernel Recipes 2019 - BPF at Facebook
Kernel Recipes 2019 - BPF at Facebook
 
Modern Linux Tracing Landscape
Modern Linux Tracing LandscapeModern Linux Tracing Landscape
Modern Linux Tracing Landscape
 
Kernel Recipes 2015: Kernel packet capture technologies
Kernel Recipes 2015: Kernel packet capture technologiesKernel Recipes 2015: Kernel packet capture technologies
Kernel Recipes 2015: Kernel packet capture technologies
 
Linux Kernel Debugging
Linux Kernel DebuggingLinux Kernel Debugging
Linux Kernel Debugging
 
The Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast StorageThe Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast Storage
 
Kernel Recipes 2015: Speed up your kernel development cycle with QEMU
Kernel Recipes 2015: Speed up your kernel development cycle with QEMUKernel Recipes 2015: Speed up your kernel development cycle with QEMU
Kernel Recipes 2015: Speed up your kernel development cycle with QEMU
 
Kernel Recipes 2016 - Speeding up development by setting up a kernel build farm
Kernel Recipes 2016 - Speeding up development by setting up a kernel build farmKernel Recipes 2016 - Speeding up development by setting up a kernel build farm
Kernel Recipes 2016 - Speeding up development by setting up a kernel build farm
 
Container Performance Analysis
Container Performance AnalysisContainer Performance Analysis
Container Performance Analysis
 
Firewalld : A New Interface to Your Netfilter Stack
Firewalld : A New Interface to Your Netfilter StackFirewalld : A New Interface to Your Netfilter Stack
Firewalld : A New Interface to Your Netfilter Stack
 
Xen Debugging
Xen DebuggingXen Debugging
Xen Debugging
 
Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)
Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)
Kernel Recipes 2016 - Understanding a Real-Time System (more than just a kernel)
 
USENIX ATC 2017 Performance Superpowers with Enhanced BPF
USENIX ATC 2017 Performance Superpowers with Enhanced BPFUSENIX ATC 2017 Performance Superpowers with Enhanced BPF
USENIX ATC 2017 Performance Superpowers with Enhanced BPF
 
Systems@Scale 2021 BPF Performance Getting Started
Systems@Scale 2021 BPF Performance Getting StartedSystems@Scale 2021 BPF Performance Getting Started
Systems@Scale 2021 BPF Performance Getting Started
 
Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016
 
From printk to QEMU: Xen/Linux Kernel debugging
From printk to QEMU: Xen/Linux Kernel debuggingFrom printk to QEMU: Xen/Linux Kernel debugging
From printk to QEMU: Xen/Linux Kernel debugging
 
LISA2019 Linux Systems Performance
LISA2019 Linux Systems PerformanceLISA2019 Linux Systems Performance
LISA2019 Linux Systems Performance
 
New Ways to Find Latency in Linux Using Tracing
New Ways to Find Latency in Linux Using TracingNew Ways to Find Latency in Linux Using Tracing
New Ways to Find Latency in Linux Using Tracing
 
Performance Tuning EC2 Instances
Performance Tuning EC2 InstancesPerformance Tuning EC2 Instances
Performance Tuning EC2 Instances
 
Kernel Recipes 2015: Solving the Linux storage scalability bottlenecks
Kernel Recipes 2015: Solving the Linux storage scalability bottlenecksKernel Recipes 2015: Solving the Linux storage scalability bottlenecks
Kernel Recipes 2015: Solving the Linux storage scalability bottlenecks
 
How Netflix Tunes EC2 Instances for Performance
How Netflix Tunes EC2 Instances for PerformanceHow Netflix Tunes EC2 Instances for Performance
How Netflix Tunes EC2 Instances for Performance
 

Destaque

FPGA Applications in Finance
FPGA Applications in FinanceFPGA Applications in Finance
FPGA Applications in Financezpektral
 
TMPA-2015: FPGA-Based Low Latency Sponsored Access
TMPA-2015: FPGA-Based Low Latency Sponsored AccessTMPA-2015: FPGA-Based Low Latency Sponsored Access
TMPA-2015: FPGA-Based Low Latency Sponsored AccessIosif Itkin
 
Writing and testing high frequency trading engines in java
Writing and testing high frequency trading engines in javaWriting and testing high frequency trading engines in java
Writing and testing high frequency trading engines in javaPeter Lawrey
 
Extent3 turquoise equity_trading_2012
Extent3 turquoise equity_trading_2012Extent3 turquoise equity_trading_2012
Extent3 turquoise equity_trading_2012extentconf Tsoy
 
Extent3 exactpro testing_of_hft_gui
Extent3 exactpro testing_of_hft_guiExtent3 exactpro testing_of_hft_gui
Extent3 exactpro testing_of_hft_guiextentconf Tsoy
 
When the OS gets in the way
When the OS gets in the wayWhen the OS gets in the way
When the OS gets in the wayMark Price
 
Linux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old SecretsLinux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old SecretsBrendan Gregg
 
Spy hard, challenges of 100G deep packet inspection on x86 platform
Spy hard, challenges of 100G deep packet inspection on x86 platformSpy hard, challenges of 100G deep packet inspection on x86 platform
Spy hard, challenges of 100G deep packet inspection on x86 platformRedge Technologies
 
AMD and the new “Zen” High Performance x86 Core at Hot Chips 28
AMD and the new “Zen” High Performance x86 Core at Hot Chips 28AMD and the new “Zen” High Performance x86 Core at Hot Chips 28
AMD and the new “Zen” High Performance x86 Core at Hot Chips 28AMD
 
Linux Performance Analysis and Tools
Linux Performance Analysis and ToolsLinux Performance Analysis and Tools
Linux Performance Analysis and ToolsBrendan Gregg
 

Destaque (12)

Tuned
TunedTuned
Tuned
 
FPGA Applications in Finance
FPGA Applications in FinanceFPGA Applications in Finance
FPGA Applications in Finance
 
TMPA-2015: FPGA-Based Low Latency Sponsored Access
TMPA-2015: FPGA-Based Low Latency Sponsored AccessTMPA-2015: FPGA-Based Low Latency Sponsored Access
TMPA-2015: FPGA-Based Low Latency Sponsored Access
 
Writing and testing high frequency trading engines in java
Writing and testing high frequency trading engines in javaWriting and testing high frequency trading engines in java
Writing and testing high frequency trading engines in java
 
Extent3 turquoise equity_trading_2012
Extent3 turquoise equity_trading_2012Extent3 turquoise equity_trading_2012
Extent3 turquoise equity_trading_2012
 
Extent3 exactpro testing_of_hft_gui
Extent3 exactpro testing_of_hft_guiExtent3 exactpro testing_of_hft_gui
Extent3 exactpro testing_of_hft_gui
 
When the OS gets in the way
When the OS gets in the wayWhen the OS gets in the way
When the OS gets in the way
 
Linux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old SecretsLinux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old Secrets
 
Spy hard, challenges of 100G deep packet inspection on x86 platform
Spy hard, challenges of 100G deep packet inspection on x86 platformSpy hard, challenges of 100G deep packet inspection on x86 platform
Spy hard, challenges of 100G deep packet inspection on x86 platform
 
FPGA CEP Appliance
FPGA CEP ApplianceFPGA CEP Appliance
FPGA CEP Appliance
 
AMD and the new “Zen” High Performance x86 Core at Hot Chips 28
AMD and the new “Zen” High Performance x86 Core at Hot Chips 28AMD and the new “Zen” High Performance x86 Core at Hot Chips 28
AMD and the new “Zen” High Performance x86 Core at Hot Chips 28
 
Linux Performance Analysis and Tools
Linux Performance Analysis and ToolsLinux Performance Analysis and Tools
Linux Performance Analysis and Tools
 

Semelhante a Performance: Observe and Tune

SUSE Expert Days 2017 FUJITSU
SUSE Expert Days 2017 FUJITSUSUSE Expert Days 2017 FUJITSU
SUSE Expert Days 2017 FUJITSUSUSE España
 
TUT18972: Unleash the power of Ceph across the Data Center
TUT18972: Unleash the power of Ceph across the Data CenterTUT18972: Unleash the power of Ceph across the Data Center
TUT18972: Unleash the power of Ceph across the Data CenterEttore Simone
 
Shak larry-jeder-perf-and-tuning-summit14-part1-final
Shak larry-jeder-perf-and-tuning-summit14-part1-finalShak larry-jeder-perf-and-tuning-summit14-part1-final
Shak larry-jeder-perf-and-tuning-summit14-part1-finalTommy Lee
 
Extending OpenShift Origin: Build Your Own Cartridge with Bill DeCoste of Red...
Extending OpenShift Origin: Build Your Own Cartridge with Bill DeCoste of Red...Extending OpenShift Origin: Build Your Own Cartridge with Bill DeCoste of Red...
Extending OpenShift Origin: Build Your Own Cartridge with Bill DeCoste of Red...OpenShift Origin
 
Accelerating Ceph with RDMA and NVMe-oF
Accelerating Ceph with RDMA and NVMe-oFAccelerating Ceph with RDMA and NVMe-oF
Accelerating Ceph with RDMA and NVMe-oFinside-BigData.com
 
Ceph, Now and Later: Our Plan for Open Unified Cloud Storage
Ceph, Now and Later: Our Plan for Open Unified Cloud StorageCeph, Now and Later: Our Plan for Open Unified Cloud Storage
Ceph, Now and Later: Our Plan for Open Unified Cloud StorageSage Weil
 
Leveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN PerformanceLeveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN Performancebrettallison
 
Session 7362 Handout 427 0
Session 7362 Handout 427 0Session 7362 Handout 427 0
Session 7362 Handout 427 0jln1028
 
Optimization_of_Virtual_Machines_for_High_Performance
Optimization_of_Virtual_Machines_for_High_PerformanceOptimization_of_Virtual_Machines_for_High_Performance
Optimization_of_Virtual_Machines_for_High_PerformanceStorPool Storage
 
Optimization of OpenNebula VMs for Higher Performance - Boyan Krosnov
Optimization of OpenNebula VMs for Higher Performance - Boyan KrosnovOptimization of OpenNebula VMs for Higher Performance - Boyan Krosnov
Optimization of OpenNebula VMs for Higher Performance - Boyan KrosnovOpenNebula Project
 
Linux Desktop Automation
Linux Desktop AutomationLinux Desktop Automation
Linux Desktop AutomationRui Lapa
 
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...Nelson Calero
 
Nagios Conference 2011 - Daniel Wittenberg - Scaling Nagios At A Giant Insur...
Nagios Conference 2011 - Daniel Wittenberg -  Scaling Nagios At A Giant Insur...Nagios Conference 2011 - Daniel Wittenberg -  Scaling Nagios At A Giant Insur...
Nagios Conference 2011 - Daniel Wittenberg - Scaling Nagios At A Giant Insur...Nagios
 
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...Nagios
 
Achieving the Ultimate Performance with KVM
Achieving the Ultimate Performance with KVMAchieving the Ultimate Performance with KVM
Achieving the Ultimate Performance with KVMDevOps.com
 

Semelhante a Performance: Observe and Tune (20)

R12.2 dba
R12.2 dbaR12.2 dba
R12.2 dba
 
SUSE Expert Days 2017 FUJITSU
SUSE Expert Days 2017 FUJITSUSUSE Expert Days 2017 FUJITSU
SUSE Expert Days 2017 FUJITSU
 
TUT18972: Unleash the power of Ceph across the Data Center
TUT18972: Unleash the power of Ceph across the Data CenterTUT18972: Unleash the power of Ceph across the Data Center
TUT18972: Unleash the power of Ceph across the Data Center
 
2012 ah vegas top10 tips from aruba tac
2012 ah vegas   top10 tips from aruba tac2012 ah vegas   top10 tips from aruba tac
2012 ah vegas top10 tips from aruba tac
 
Shak larry-jeder-perf-and-tuning-summit14-part1-final
Shak larry-jeder-perf-and-tuning-summit14-part1-finalShak larry-jeder-perf-and-tuning-summit14-part1-final
Shak larry-jeder-perf-and-tuning-summit14-part1-final
 
Extending OpenShift Origin: Build Your Own Cartridge with Bill DeCoste of Red...
Extending OpenShift Origin: Build Your Own Cartridge with Bill DeCoste of Red...Extending OpenShift Origin: Build Your Own Cartridge with Bill DeCoste of Red...
Extending OpenShift Origin: Build Your Own Cartridge with Bill DeCoste of Red...
 
Accelerating Ceph with RDMA and NVMe-oF
Accelerating Ceph with RDMA and NVMe-oFAccelerating Ceph with RDMA and NVMe-oF
Accelerating Ceph with RDMA and NVMe-oF
 
Ceph, Now and Later: Our Plan for Open Unified Cloud Storage
Ceph, Now and Later: Our Plan for Open Unified Cloud StorageCeph, Now and Later: Our Plan for Open Unified Cloud Storage
Ceph, Now and Later: Our Plan for Open Unified Cloud Storage
 
Leveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN PerformanceLeveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN Performance
 
OpenPOWER Webinar
OpenPOWER Webinar OpenPOWER Webinar
OpenPOWER Webinar
 
Session 7362 Handout 427 0
Session 7362 Handout 427 0Session 7362 Handout 427 0
Session 7362 Handout 427 0
 
Optimization_of_Virtual_Machines_for_High_Performance
Optimization_of_Virtual_Machines_for_High_PerformanceOptimization_of_Virtual_Machines_for_High_Performance
Optimization_of_Virtual_Machines_for_High_Performance
 
Optimization of OpenNebula VMs for Higher Performance - Boyan Krosnov
Optimization of OpenNebula VMs for Higher Performance - Boyan KrosnovOptimization of OpenNebula VMs for Higher Performance - Boyan Krosnov
Optimization of OpenNebula VMs for Higher Performance - Boyan Krosnov
 
Linux Desktop Automation
Linux Desktop AutomationLinux Desktop Automation
Linux Desktop Automation
 
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
 
PROSE
PROSEPROSE
PROSE
 
Nagios Conference 2011 - Daniel Wittenberg - Scaling Nagios At A Giant Insur...
Nagios Conference 2011 - Daniel Wittenberg -  Scaling Nagios At A Giant Insur...Nagios Conference 2011 - Daniel Wittenberg -  Scaling Nagios At A Giant Insur...
Nagios Conference 2011 - Daniel Wittenberg - Scaling Nagios At A Giant Insur...
 
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
 
Achieving the Ultimate Performance with KVM
Achieving the Ultimate Performance with KVMAchieving the Ultimate Performance with KVM
Achieving the Ultimate Performance with KVM
 
Technical track 1: arcserve UDP deep dvie
Technical track 1: arcserve UDP deep dvieTechnical track 1: arcserve UDP deep dvie
Technical track 1: arcserve UDP deep dvie
 

Último

MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...masabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
tonesoftg
tonesoftgtonesoftg
tonesoftglanshi9
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Hararemasabamasaba
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Bert Jan Schrijver
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfkalichargn70th171
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in sowetomasabamasaba
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2
 

Último (20)

MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 

Performance: Observe and Tune

  • 1. RED HAT CONFIDENTIAL | pvn@redhat.com1 Paul V. Novarese Sr. Technical Account Manager 11 September 2014 Performance: Observe and Tune
  • 2. RED HAT CONFIDENTIAL | pvn@redhat.com2 What can we do out of the box?
  • 3. RED HAT CONFIDENTIAL | pvn@redhat.com3 What is “tuned”? Tuning profile delivery mechanism Red Hat ships tuned profiles that improve performance for many workloads...hopefully yours!
  • 4. RED HAT CONFIDENTIAL | pvn@redhat.com4 Tuned: Storage Performance Boost
  • 5. RED HAT CONFIDENTIAL | pvn@redhat.com5 tuned Profile Summary: RHEL6
  • 6. RED HAT CONFIDENTIAL | pvn@redhat.com6 Tuned: Updates for RHEL7  Installed by default!  Profiles automatically set based on install type:  Desktop/Workstation: balanced  Server/HPC: throughput-performance  Single tuned.conf file  Optional hook/callout capability  Inheritance (cf. httpd.conf)  Profiles updated for RHEL 7 features (obv)
  • 7. RED HAT CONFIDENTIAL | pvn@redhat.com7 tuned Throughput Profiles: RHEL 7
  • 8. RED HAT CONFIDENTIAL | pvn@redhat.com8 tuned Latency Profiles: RHEL 7
  • 9. RED HAT CONFIDENTIAL | pvn@redhat.com9 tuned Virt Profiles: RHEL 7
  • 10. RED HAT CONFIDENTIAL | pvn@redhat.com10 Let's get our hands dirty... Tuning Strategies: Bang for your Buck
  • 11. RED HAT CONFIDENTIAL | pvn@redhat.com11 Problem Statements  Bad – It's slow – Make it go faster  Better – We expect 37 gigaflups/year but we only see 24 – We have a bottleneck to a particular LUN in the SAN
  • 12. RED HAT CONFIDENTIAL | pvn@redhat.com12 Turn bad statements into good statements  Determine victory conditions  Get data  Look at data  Tweak  GOTO 10
  • 13. RED HAT CONFIDENTIAL | pvn@redhat.com13 Questions to ask  What's actually slow?  How do we know it's slow?  What is the expectation and what is that based on?  What is actually needed to “win”?  What changed?  How long has it been slow?  Gradual or sudden change?  Are there patterns? (same time every day?)  Can you do something to (temporarily) recover?  What evidence do you have? (sar, iostat, etc?)
  • 14. RED HAT CONFIDENTIAL | pvn@redhat.com14 Identify bottlenecks  CPU  Memory  IO  Network  Application  Firmware
  • 15. RED HAT CONFIDENTIAL | pvn@redhat.com15 Basic IO Tuning Strategy Multiple HBAs – Install (eg) device-mapper-multipath – Default settings in /usr/share/doc/device-mapper-multipath- 0.4.7/multipath.conf.defaults Understand storage features / limitations – Maximum random and sequential read and writes per port – Maximum random and sequential read and writes for the controller Low level I/O numbers – Tools to use dd , aiod , aio-stress, IOzone – Run I/O representative of the database implementation I/O Schedulers – CFQ, Deadline, AS, Noop
  • 16. RED HAT CONFIDENTIAL | pvn@redhat.com16 IO Schedulers 4 tunable I/O Schedulers – CFQ – elevator=cfq. Completely Fair Queuing default, balanced, fair for multiple luns, adaptors, smp servers – NOOP – elevator=noop. No-operation (uses FIFO) in kernel, simple, low cpu overhead, leave opt to ramdisk, raid cntrl etc. – Deadline – elevator=deadline. Optimize for run-time-like behavior, low latency per IO, balance issues with large IO luns/controllers. Batches IO ops to produce predictable latencies. – Anticipatory – elevator=as. Inserts delays to help stack aggregate IO, best on system w/ limited physical IO – SATA Changing I/O Schedulers – echo deadline > /sys/block/<sdx>/queue/scheduler – Append 'elevator=' to end of kernel line
  • 17. RED HAT CONFIDENTIAL | pvn@redhat.com17 Basic CPU Tuning Strategy Limit CPU access – One or more processes can consume all cpu cycles – Completely Fair Scheduler (CFS) in RHEL6 uses scheduler groups to assign different weights to each group – Configure cgroups and set cpu.shares for each group Manually balance interrupts – cat /proc/interrupts to see how interrupts are distributed to each cpu – Edit /etc/sysconfig/irqbalance and set IRQBALANCE_BANNED_CPUS= – As an alternative, echo 1 > /proc/irq/142/smp_affinity Pin processes to a specific CPU – Taskset (non-NUMA) – Numactl – Cgroups Utilize real-time scheduling (nice, MRG)
  • 18. RED HAT CONFIDENTIAL | pvn@redhat.com18 Basic VM Tuning Strategy Huge Pages – 2MB huge page size – Set value in /etc/sysctl.conf (vm.nr_hugepages) – Benefits - https://access.redhat.com/knowledge/solutions/2592 – Enabling - https://access.redhat.com/knowledge/solutions/46326 – Transparent Huge Pages https://access.redhat.com/knowledge/solutions/46111 NUMA – Localized memory access for certain workloads improves performance Swap – Set value of vm.swappiness (Default 60) – lower number is better for interactive applications and avoids swapping as much as possible
  • 19. RED HAT CONFIDENTIAL | pvn@redhat.com19 VM Tuning Frequent Fliers ● /proc/sys/vm/swappiness ● Should I swap or drop cache? ● /proc/sys/vm/min_free_kbytes ● Be careful adjusting this! Extremes are bad. ● /proc/sys/vm/dirty_ratio ● /proc/sys/vm/dirty_background_ratio ● /proc/sys/vm/vfs_cache_pressure
  • 20. RED HAT CONFIDENTIAL | pvn@redhat.com20 80/20 Rule  More like 95/5  At some point our time and effort is best spent elsewhere
  • 21. RED HAT CONFIDENTIAL | pvn@redhat.com21 What tools can we use? sar iostat perf - Userspace tool to read CPU counters and kernel tracepoints Performance Co-Pilot (pcp) – new in RHEL 7
  • 22. RED HAT CONFIDENTIAL | pvn@redhat.com22 Divider SlideTools
  • 23. RED HAT CONFIDENTIAL | pvn@redhat.com23 Tradition: start with sar ● Built-in ● Collects stats for all four major system components (cpu, memory, IO, network) ● Data can be easily graphed ● Data collection frequency can be easily changed ● RHEL 6 sar metadata is different than RHEL 5 - you cannot use RHEL 6 sar to read RHEL 5 sar files.
  • 24. RED HAT CONFIDENTIAL | pvn@redhat.com24 Collectl ● More complex, but more powerful ● Can handle NFS, Slab data, and sub-second intervals (i.e. -i .25) ● Very low overhead (<.1% cpu usage) when run in daemon mode (-D) ● Send data to another server using socket mode (-A) ● Infiniband support
  • 25. RED HAT CONFIDENTIAL | pvn@redhat.com25 /proc /proc/ – meminfo – slabinfo – cpuinfo – pid<#>/maps – vmstat(RHEL4 & RHEL5) – zoneinfo(RHEL5) – sysrq-trigger
  • 26. RED HAT CONFIDENTIAL | pvn@redhat.com26 Performance Co-Pilot (pcp) ● New in RHEL 7, 6.6(b) ● Available in EPEL for RHEL 5, 6 ● Replaces legacy performance tools ● Designed for enterprises ● Distributed ● Automation ● Extensible plug-in architecture
  • 27. RED HAT CONFIDENTIAL | pvn@redhat.com27 pcp Concept
  • 28. RED HAT CONFIDENTIAL | pvn@redhat.com28 Other Helpful Utilities
  • 29. RED HAT CONFIDENTIAL | pvn@redhat.com29 Divider Slide Questions? pvn@redhat.com