1 / 16

Performance Analysis and Tuning

Performance Analysis and Tuning. Presented by Carol Thornborrow. System Performance. User “perceived performance”. System performance is the efficiency which system resources respond to current demands on the system.

alaula
Télécharger la présentation

Performance Analysis and Tuning

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Performance Analysis and Tuning • Presented by Carol Thornborrow

  2. System Performance • User “perceived performance”

  3. System performance is the efficiency which system resources respond to current demands on the system. Service Level Agreement (SLA) - Agreement between management, the user community and the information technology staff. System Performance

  4. System Performance • What is “normal”? • Create a baseline for comparison.

  5. Monitoring • Resources which affect system performance • CPU • Memory • Disk I/O • Network I/O • Resources affect on system performance • Not enough of the resource • Allocation of the resource is being mismanaged

  6. Monitoring • Identifying bottlenecks • What is the problem? • Identify the Cause • What will it take to fix? • Is the problem fixed? • Reevaluate, start over • Monitoring Tools • OS utilities • vmstat, netstat • Vendor products • GlancePlus, SarCheck

  7. Monitoring - CPU • Overall utilization • vmstat on most systems • sar –u Solaris and HP-UX • Load Average • uptime • Per process CPU time • ps –elf on HP-UX, Solaris • ps –aux on Red Hat, Free BSD • top - real time • pstree • init-+-alarmd |-7*[kdeinit]

  8. vmstat 5 4 procs cpu r b w us sy id 1 0 0 3 5 92 0 0 0 0 1 99 0 0 0 0 1 99 0 0 0 2 0 98 r > 3-6/CPU us + sy > 80% sar –u 5 4 %usr %sys %wio %idle 0 0 0 100 0 1 1 98 0 0 0 100 0 0 0 100 Average 0 0 0 99 Monitoring - CPU

  9. Tuning - CPU • Manually change priority • System V, Free BSD • renice new nice# pid • Solaris also has • priocntl –s –p new-pri –i pid proc-id • Replace CPU • Add CPU • Redistribute load • At – run process at specific time • Batch – run processes sequentially • Idle CPU

  10. Monitoring - Memory • Active virtual memory • Solaris swap –l or sar -r • HP-UX swapinfo • Free BSD pstat -s • Red Hat swapon –s • Paging rate • vmstat • # of running processes • vmstat • Swaps • vmstat

  11. Monitoring - Memory • vmstat 5 4 r w swap free re po 0 0 509552 38512 7 0 0 0 445184 35600 0 0 0 0 445184 35600 0 0 0 0 445184 35600 0 0 • sar –r 5 4 16:03:06 freemem freeswap 16:03:11 4413 888080 16:03:16 4409 888080 16:03:21 4409 888080 16:03:26 4409 888080

  12. Tuning – Memory • Add more memory • Distribute swap space • Distribute jobs – at, batch • Virtual memory and paging • Free BSD sysctl • Increase vm.v_cache_min and/or vm.v_cache_max to favor fs buffer cache over user processes

  13. Avg size of transfers iostat dad0 kps tps 4 1 94 26 kps/tps = Kb/transfer % of disk utilization iostat –D ssd0 rps wps util 0 7 4.2 0 8 2.6 System V sar –d Need accounting turned on May affect performance Monitoring – Disk I/O

  14. Tuning – Disk I/O • Spread active files over several disks and controllers • Sequential files are contiguous and near outer edge of disk • Place randomly accessed files near center of disk • Place root system on own disk if possible • Disk striping • Purchase fast disks w fast controllers

  15. netstat –i Collisions > 5% of total calls ping nfsstat –c retrans > 5% of calls badxid = retrans -> server badxid < retrans -> network Spread the network load between servers Add more bandwidth Monitoring and Tuning Network I/O

More Related