Slides on how to tune system performance - Part of RHCSA (RH134) syllabus
Size: 704.62 KB
Language: en
Added: Sep 21, 2024
Slides: 15 pages
Slide Content
Tune System Performance
●Optimizing the performance of a computer system to
ensure it operates efficiently and effectively.
●Importance:
○Optimize resource utilization
○Improve user experience
○Meet Service Level Agreements (SLAs)
○Cost Efficiency
○Troubleshooting and diagnostics
System Performance Tuning
●system daemon (background process)
●Adjusts system settings and parameters to optimize
performance based on workload.
●Compatible with various Linux distributions.
●Tuning Profiles:
○Predefined configuration set to optimize performance for
various use cases.
○Example: throughput-performance, power-saving.
tuned
tuned profiles
Profile Name Description Use Case
balanced Balance between performance and power
consumption.
General-purpose use on
desktops or laptops.
throughput-perfor
mance
Optimizes system resources for high throughput. File servers or data
processing workloads
virtual-guest Optimizes performance for virtualized guest
environments,improves resource utilization.
Virtual Machines
latency-performa
nce
Emphasizes low latency and responsiveness,
reducing delays in processing and communication.
Interactive applications,
real-time processing tasks
web-server Optimizes system settings to handle high traffic
loads, improve response times, and enhance overall
web server performance.
Web Servers
3. Check/change tuned service status (active | inactive):
Command: systemctl status|enable|start tuned
4. List tuned profiles:
Command: tuned-adm list
5. Show active tuned profile:
Command: tuned-adm active
●Processes with higher priority are given more CPU time.
●Priority can be set at 40 different levels (-20 to 19).
●nice:
○To launch a new process with a specified priority.
○-20 being highest priority
○19 is lowest
●renice:
○Used to adjust priority of existing process.
●kill:
○ Used to terminate/kill processes.
Manage process priority
1. List active processes:
Command: top
2. Start process with a custom priority:
Command: nice -n 9 top
3. Modify priority of running process
Command: renice -n -18 PID
2. Start process with a custom priority:
Command: nice -n 9 top
3. Modify priority of running process
Command: renice -n -18 PID
2. Kill a process explicitly
Command: kill [Options] PID