Tune System Performance - RHCSA (RH134).pdf

support8872 470 views 15 slides Sep 21, 2024
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

Slides on how to tune system performance - Part of RHCSA (RH134) syllabus


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

Basic Commands
1.Find tuned package:
Command: rpm -qa | grep tuned

2. Install tuned:
Command: yum install tuned

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