Solaris Day7
Solaris Day7
Performance tuning ensures the efficient utilization of system resources, minimizes bottlenecks, and
optimizes workload handling. This involves monitoring, diagnosing, and adjusting various system
parameters to achieve optimal performance.
1. uptime Command:
uptime
2. vmstat:
vmstat 5
Key columns:
3. prstat:
prstat -c
Tuning Parameters
1. Kernel Parameters:
2. Dynamic Reconfiguration:
1
o Example: Increase TCP connection backlog:
Identifying Bottlenecks
1. CPU Bottlenecks:
mpstat 5
2. Memory Bottlenecks:
iostat -xn 5
4. Network Bottlenecks:
netstat -i
tail -f /var/adm/messages
Memory Management
o Modify parameters like maxpgio and minfree in /etc/system for memory tuning.
o Example:
2
set minfree = 1024
Swap Management
swap -s # Summary
swap -l # Detailed swap partition info
2. Add Swap Space:
mkfile 1g /swapfile
swap -a /swapfile
o Verify:
swap -l
1. iostat Command:
iostat -xn 5
Key metrics:
2. dtrace:
3
2. RAID Configurations:
4. Disk Scheduling:
o Optimize I/O scheduling policies for specific workloads using ZFS or SVM.
Scenario
An airline reservation system faces performance degradation during peak hours. Users report slow
response times for booking transactions.
Solution
o Use prstat and vmstat to identify high CPU and memory usage by booking processes.
mkfile 2g /swapfile
swap -a /swapfile
pbind -b 1 <PID>
5. Proactive Monitoring:
Conclusion
System performance tuning in Solaris involves continuous monitoring and adjustments. By optimizing
parameters like CPU, memory, and disk I/O, and leveraging tools like prstat, vmstat, and dtrace,
administrators can ensure high availability and responsiveness of critical systems like airline
reservation platforms.