Performance Analysis and Tuning Presented by Carol ThornborrowPresented by Carol Thornborrow.

Slides:



Advertisements
Similar presentations
Unix Systems Performance Tuning Project of COSC 513 Name: Qinghui Mu Instructor: Prof. Anvari.
Advertisements

Chapter 10 Operating Systems.
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 10 Performance Tuning.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CS-334: Computer.
Memory Design Example. Selecting Memory Chip Selecting SRAM Memory Chip.
Operating System Support Focus on Architecture
Performance Tuning By Samriti Uppal Dec 1 st, 2004.
Chapter 8 Operating System Support
1 Performance Analysis System is slow?!. 2 Performance analysis  Often you heard such conversation User complaints: system is slow! Please make it run.
Measuring Performance Chapter 12 CSE807. Performance Measurement To assist in guaranteeing Service Level Agreements For capacity planning For troubleshooting.
Computer Organization and Architecture
RESOURCE MANAGEMENT System Resources. What resources are managed in a computer system?
CS364 CH08 Operating System Support TECH Computer Science Operating System Overview Scheduling Memory Management Pentium II and PowerPC Memory Management.
Jiapeng Xiu Chapter 3 Memory Management Chapter 3 Memory Management —— Solaris Memory Monitor.
Layers and Views of a Computer System Operating System Services Program creation Program execution Access to I/O devices Controlled access to files System.
Page 1 © 2001 Hewlett-Packard Company Tools for Measuring System and Application Performance Introduction GlancePlus Introduction Glance Motif Glance Character.
Computer Organization and Architecture Operating System Support Chapter 8.
Basics of Operating Systems March 4, 2001 Adapted from Operating Systems Lecture Notes, Copyright 1997 Martin C. Rinard.
UNIX System Administration Handbook Chapter 4. Controlling Processes 3 rd Edition Evi Nemeth et al. Li Song CMSC691X Summer 2002.
Introduction Optimizing Application Performance with Pinpoint Accuracy What every IT Executive, Administrator & Developer Needs to Know.
MCTS Guide to Microsoft Windows 7
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Performance Monitoring.
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Performance Monitoring.
Review of Memory Management, Virtual Memory CS448.
Fall 2011 Nassau Community College ITE153 – Operating Systems 1 Session 4 More Hands-on Commands.
11 SYSTEM PERFORMANCE IN WINDOWS XP Chapter 12. Chapter 12: System Performance in Windows XP2 SYSTEM PERFORMANCE IN WINDOWS XP  Optimize Microsoft Windows.
Chapter 5 Operating System Support. Outline Operating system - Objective and function - types of OS Scheduling - Long term scheduling - Medium term scheduling.
Managing Processes CSCI N321 – System and Network Administration Copyright © 2000, 2011 by Scott Orr and the Trustees of Indiana University.
Ch. 4 Memory Mangement Parkinson’s law: “Programs expand to fill the memory available to hold them.”
Cosc 2150: Computer Organization Chapter 6, Part 2 Virtual Memory.
Hp education services education.hp.com 12 Performance Tools Version B.02 H4262S Module 2 Slides.
Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software.
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
CIS250 OPERATING SYSTEMS Memory Management Since we share memory, we need to manage it Memory manager only sees the address A program counter value indicates.
DBI313. MetricOLTPDWLog Read/Write mixMostly reads, smaller # of rows at a time Scan intensive, large portions of data at a time, bulk loading Mostly.
Hp education services education.hp.com 67 CPU Management Version B.02 H4262S Module 5 Slides.
Acegene IT Co. Ltd.1 Linux 操作系统 系统优化 周炯上海艾基信息技术有限公司.
Lecture – Performance Performance management on UNIX.
Cosc 4750 Maintenance & Analysis. Maintenance Contracts Annual cost of 10%-12% of component’s list price. On-site maintenance –usually within hours.
OSes: 3. OS Structs 1 Operating Systems v Objectives –summarise OSes from several perspectives Certificate Program in Software Development CSE-TC and CSIM,
A Measurement Based Memory Performance Evaluation of Streaming Media Servers Garba Isa Yau and Abdul Waheed Department of Computer Engineering King Fahd.
Infrastructure for Data Warehouses. Basics Of Data Access Data Store Machine Memory Buffer Memory Cache Data Store Buffer Bus Structure.
System Administration. Logging in as System Administrator System Admin login (aka superuser, aka root) –login id: root –Default PS1 prompt: # –Home directory:
CS 390 Unix Programming Environment
Performance Analysis. Computer Center, CS, NCTU 2 Help! My system is slow!  slow.pdf.
UNIX Operating System. A Brief Review of Computer System 1. The Hardware CPU, RAM, ROM, DISK, CD-ROM, Monitor, Graphics Card, Keyboard, Mouse, Printer,
Guide to Parallel Operating Systems with Windows 7 and Linux Chapter 10 Operating System Management.
Linux I/O Tuning Anshul Gupta. 2 - Performance Gathering Tools -I/O Elevators -File System -Swap and Caches Agenda.
New flavors of pg_top Michael Paquier Tokyo 2013/07/13
Linux Command Tips.
Chapter 2 Memory and process management
Linux203Training Module System Mgmt.
MCTS Guide to Microsoft Windows 7
Modeling Page Replacement Algorithms
Chapter 4 – Introduction to Operating System Concepts
Linux 202 Training Module Program and Process.
Performance Analysis pmli.
William Stallings Computer Organization and Architecture
CIT 470: Advanced Network and System Administration
So far… Text RO …. printf() RW link printf Linking, loading
Modeling Page Replacement Algorithms
Tools.
Chapter 9: Virtual Memory
Troubleshooting Techniques(*)
Tools.
Performance Analysis Chapter 25.
Performance Analysis.
Performance Analysis.
Presentation transcript:

Performance Analysis and Tuning Presented by Carol ThornborrowPresented by Carol Thornborrow

System Performance User “perceived performance”

System Performance System performance is the efficiency which system resources respond to current demands on the system.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 What is “normal”?What is “normal”? Create a baseline for comparison.Create a baseline for comparison.

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

Monitoring Identifying bottlenecksIdentifying bottlenecks –What is the problem? –Identify the Cause –What will it take to fix? –Is the problem fixed? –Reevaluate, start over Monitoring ToolsMonitoring Tools –OS utilities vmstat, netstatvmstat, netstat –Vendor products GlancePlus, SarCheckGlancePlus, SarCheck

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

Monitoring - CPU vmstat 5 4vmstat 5 4 procs cpu r b w us sy id r > 3-6/CPU -us + sy > 80% sar –u 5 4 %usr %sys %wio %idle Average

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

Monitoring - Memory Active virtual memoryActive virtual memory –Solaris swap –l or sar -r –HP-UX swapinfo –Free BSDpstat -s –Red Hatswapon –s Paging ratePaging rate –vmstat # of running processes# of running processes –vmstat SwapsSwaps –vmstat

Monitoring - Memory vmstat 5 4vmstat 5 4 r w swap free re po sar –r 5 4sar –r :03:06 freemem freeswap 16:03: :03: :03: :03:

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

Monitoring – Disk I/O Avg size of transfersAvg size of transfers iostat iostat dad0 dad0 kps tps kps tps kps/tps = Kb/transfer kps/tps = Kb/transfer % of disk utilization% of disk utilization iostat –D iostat –D ssd0 ssd0 rps wps util rps wps util System V –sar –d Need accounting turned on May affect performance

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

Monitoring and Tuning Network I/O netstat –inetstat –i –Collisions > 5% of total calls pingping nfsstat –cnfsstat –c –retrans > 5% of calls badxid = retrans - > serverbadxid = retrans - > server badxid networkbadxid network Spread the network load between servers Add more bandwidth