Visão Geral
O curso Linux Performance Tuning and Analysis apresenta uma abordagem avançada e prática para monitoramento, análise, diagnóstico e otimização de desempenho de sistemas operacionais Linux em ambientes corporativos e de missão crítica.
Durante o treinamento, os participantes aprofundarão seus conhecimentos sobre a arquitetura interna do Linux, funcionamento do kernel, gerenciamento de processos, escalonamento de CPU, gerenciamento de memória, subsistemas de armazenamento, sistemas de arquivos e pilha de rede.
Serão apresentadas metodologias profissionais de identificação de gargalos, incluindo o método USE (Utilization, Saturation and Errors), permitindo analisar sistematicamente a utilização dos recursos computacionais e identificar problemas que afetam o desempenho de servidores e aplicações.
O treinamento também aborda ferramentas avançadas de monitoramento, observabilidade, instrumentação e profiling, incluindo top, vmstat, iostat, mpstat, sar, Performance Co-Pilot (PCP), SystemTap, Linux perf, strace e ltrace.
Os participantes desenvolverão competências para executar benchmarks, analisar métricas históricas, investigar processos e aplicações, identificar gargalos de CPU, memória, disco e rede e aplicar técnicas de otimização por meio de parâmetros do kernel, sysctl e perfis automatizados com tuned.
As atividades práticas serão realizadas em laboratórios Linux individualizados, reproduzindo cenários de infraestrutura corporativa, permitindo que os participantes apliquem técnicas de diagnóstico e otimização em situações próximas às encontradas em ambientes de produção.
Conteúdo Programatico
Module 1 – Linux Performance Tuning Fundamentals and USE Method
- Introduction to Linux performance analysis and optimization
- Performance tuning principles and methodologies
- Understanding utilization, saturation and errors
- Applying the USE Method to identify system bottlenecks
- Performance baselines and workload characterization
- Performance analysis strategies for enterprise environments
- Practical lab: Identifying performance bottlenecks using the USE Method
Module 2 – Linux Internals and System Architecture
- Linux kernel architecture and system components
- Kernel space and user space architecture
- System calls and process execution
- Process management and scheduling fundamentals
- CPU architecture and interrupt handling
- Memory management architecture
- Storage and I/O subsystem fundamentals
- Linux system architecture and performance dependencies
Module 3 – Linux Userspace Architecture and Process Analysis
- Linux userspace architecture and execution environment
- Process lifecycle and resource consumption
- Process scheduling and priority management
- Monitoring processes using ps, top and htop
- Process inspection using pmap
- System call analysis using strace
- Library call analysis using ltrace
- Identifying resource-intensive processes and applications
Module 4 – Linux Logging and System Diagnostics
- Linux logging architecture and administration
- rsyslog configuration and log management
- systemd journal and journalctl
- Kernel messages and diagnostic information
- Log analysis for performance troubleshooting
- Identifying errors, warnings and resource-related events
- Practical lab: Investigating performance issues through system logs
Module 5 – Linux Performance Monitoring and Troubleshooting
- Linux performance monitoring architecture
- CPU utilization and load average analysis
- Memory utilization, swap and paging analysis
- Storage I/O monitoring and latency analysis
- Network performance monitoring
- Monitoring with vmstat, iostat and mpstat
- Historical performance analysis using sar
- Performance bottleneck identification and troubleshooting
- Practical lab: Diagnosing CPU, memory, disk and network bottlenecks
Module 6 – Linux Benchmarking and Performance Testing
- Benchmarking methodologies and performance baselines
- System workload characterization
- Disk performance testing with Bonnie++
- Network performance testing with iperf
- Application and system benchmarking
- Performance testing with Phoronix Test Suite
- Benchmark result interpretation and comparison
- Practical lab: Benchmarking Linux infrastructure resources
Module 7 – Linux Kernel Instrumentation with SystemTap
- Introduction to Linux kernel instrumentation
- SystemTap architecture and operational concepts
- Kernel probes and event instrumentation
- Monitoring kernel activities and system events
- Analyzing process and application behavior
- Identifying performance issues through kernel instrumentation
- Practical lab: Investigating Linux kernel performance using SystemTap
Module 8 – Performance Co-Pilot (PCP)
- Performance Co-Pilot architecture and components
- Installing and configuring PCP
- Performance metrics and Performance Metrics Domain Agents
- Distributed performance monitoring
- Historical metric collection and analysis
- Performance inference and monitoring rules
- Performance trend analysis and reporting
- Practical lab: Configuring centralized performance monitoring with PCP
Module 9 – Remote Performance Monitoring with SNMP
- Introduction to SNMP architecture and monitoring
- SNMP agents and management components
- Configuring SNMP services on Linux
- Collecting remote performance metrics
- Monitoring distributed Linux infrastructure
- Integrating remote metrics into monitoring environments
- Practical lab: Remote Linux performance metric collection
Module 10 – Application Profiling and Linux perf
- Introduction to application profiling
- Linux perf architecture and capabilities
- CPU profiling and performance counters
- Process and application performance analysis
- Identifying CPU-intensive execution paths
- Analyzing stack traces and profiling data
- Flamegraph generation and interpretation
- Practical lab: Application profiling and CPU bottleneck investigation
Module 11 – Linux Kernel Tuning and Performance Optimization
- Linux kernel tuning architecture and principles
- CPU scheduling and scheduler parameters
- Memory management and virtual memory optimization
- NUMA architecture and memory allocation optimization
- Huge Pages configuration and optimization
- Disk I/O schedulers and storage performance
- Filesystem performance parameters
- Linux network stack optimization
- Kernel parameter configuration using sysctl
- Automated performance optimization using tuned
- Workload-specific tuning profiles
- Practical lab: Kernel tuning and performance optimization
Module 12 – Advanced Performance Troubleshooting and Optimization Project
- Advanced Linux performance troubleshooting methodology
- Correlating CPU, memory, storage and network metrics
- Root cause analysis of performance degradation
- Performance optimization for enterprise workloads
- Performance validation after system tuning
- Development of performance baselines and technical reports
- Final Hands-On: Diagnosis, tuning and optimization of a Linux server under workload