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

Slides:



Advertisements
Similar presentations
I/O Management and Disk Scheduling
Advertisements

CHAPTER 2 PROCESSOR SCHEDULING PART I By U ğ ur HALICI.
The Components There are three main components of inDepth Lite, inDepth and inDepth+ Real Time Component Reporting Package Configuration Tools.
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 10 Performance Tuning.
Diagnostics. Module Objectives By the end of this module participants will be able to: Use diagnostic commands to troubleshoot and monitor performance.
Using netstat for Performance Analysis
Chapter 14 Chapter 14: Server Monitoring and Optimization.
Chapter 11 - Monitoring Server Performance1 Ch. 11 – Monitoring Server Performance MIS 431 – created Spring 2006.
Home: Phones OFF Please Unix Kernel Parminder Singh Kang Home:
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 10: Collect and Analyze Performance Data.
Performance Tuning By Samriti Uppal Dec 1 st, 2004.
OS Spring’03 Introduction Operating Systems Spring 2003.
Device Management.
Measuring Performance Chapter 12 CSE807. Performance Measurement To assist in guaranteeing Service Level Agreements For capacity planning For troubleshooting.
1 Software Testing and Quality Assurance Lecture 40 – Software Quality Assurance.
11 MONITORING MICROSOFT WINDOWS SERVER 2003 Chapter 3.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 14 Server and Network Monitoring.
Chapter 11: Maintaining and Optimizing Windows Vista
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Chapter Ten Performance Tuning. Objectives Create a performance baseline Create a performance baseline Understand the performance and monitoring tools.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
Hands-On Microsoft Windows Server 2008 Chapter 11 Server and Network Monitoring.
Page 1 © 2001 Hewlett-Packard Company Tools for Measuring System and Application Performance Introduction GlancePlus Introduction Glance Motif Glance Character.
Copyright 2007, Information Builders. Slide 1 Performance and Tuning Tips Mark Nesson/Vashti Ragoonath October 2008.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Database Performance Tuning and Query Optimization.
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.
1 I/O Management and Disk Scheduling Chapter Categories of I/O Devices Human readable Used to communicate with the user Printers Video display terminals.
11 SYSTEM PERFORMANCE IN WINDOWS XP Chapter 12. Chapter 12: System Performance in Windows XP2 SYSTEM PERFORMANCE IN WINDOWS XP  Optimize Microsoft Windows.
Composition and Evolution of Operating Systems Introduction to Operating Systems: Module 2.
Computing and the Web Operating Systems. Overview n What is an Operating System n Booting the Computer n User Interfaces n Files and File Management n.
1 Performance Evaluation of Computer Systems and Networks Introduction, Outlines, Class Policy Instructor: A. Ghasemi Many thanks to Dr. Behzad Akbari.
Processes and OS basics. RHS – SOC 2 OS Basics An Operating System (OS) is essentially an abstraction of a computer As a user or programmer, I do not.
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.
6 Memory Management and Processor Management Management of Resources Measure of Effectiveness – On most modern computers, the operating system serves.
Troubleshooting and Performance
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
11 MANAGING PERFORMANCE Chapter 16. Chapter 16: MANAGING PERFORMANCE2 OVERVIEW  Optimize memory, disk, and CPU performance  Monitor system performance.
Overview Managing a DHCP Database Monitoring DHCP
OPERATING SYSTEMS Lecture 3: we will explore the role of the operating system in a computer Networks and Communication Department 1.
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.
© Dennis Shasha, Alberto Lerner, Philippe Bonnet 2004 DBMS Performance Monitoring.
Computer Systems Week 14: Memory Management Amanda Oddie.
Monitoring and Managing Server Performance. Server Monitoring To become familiar with the server’s performance – typical behavior Prevent problems before.
System Administration. Logging in as System Administrator System Admin login (aka superuser, aka root) –login id: root –Default PS1 prompt: # –Home directory:
Computer Organization Instruction Set Architecture (ISA) Instruction Set Architecture (ISA), or simply Architecture, of a computer is the.
Network management Network management refers to the activities, methods, procedures, and tools that pertain to the operation, administration, maintenance,
Module 14 Monitoring and Maintaining Windows Server® 2008 Servers.
Page Buffering, I. Pages to be replaced are kept in main memory for a while to guard against poorly performing replacement algorithms such as FIFO Two.
Introduction to Performance Testing Performance testing is the process of determining the speed or effectiveness of a computer, network, software program.
1 Chapter Overview Monitoring Access to Shared Folders Creating and Sharing Local and Remote Folders Monitoring Network Users Using Offline Folders and.
Page 1 Monitoring, Optimization, and Troubleshooting Lecture 10 Hassan Shuja 11/30/2004.
Performance Analysis. Computer Center, CS, NCTU 2 Help! My system is slow!  slow.pdf.
7.1 Operating Systems. 7.2 A computer is a system composed of two major components: hardware and software. Computer hardware is the physical equipment.
CHAPTER 3 Router CLI Command Line Interface. Router User Interface User and privileged modes User mode --Typical tasks include those that check the router.
Guide to Parallel Operating Systems with Windows 7 and Linux Chapter 10 Operating System Management.
Hands-On Microsoft Windows Server 2008
Performance Analysis pmli.
Boost Linux Performance with Enhancements from Oracle
Migration Strategies – Business Desktop Deployment (BDD) Overview
Operating Systems CPU Scheduling.
Linux Architecture Overview.
Performance Analysis.
Performance Analysis.
COMP755 Advanced Operating Systems
In Today’s Class.. General Kernel Responsibilities Kernel Organization
Chapter 13: I/O Systems “The two main jobs of a computer are I/O and [CPU] processing. In many cases, the main job is I/O, and the [CPU] processing is.
Presentation transcript:

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

Performance Tuning Performance tuning is a process of observing the operations of a system and making adjustments to different components based on those observations. As a result we get an overall more efficient system.

What is system performance? In a broader sense, system performance refers to how well the computer resources accomplish the work they are designed to do. The performance of any computer system may be defined by two criteria: Response time Throughput

Key factors Hardware Operating system Application software Users Changes over time

Managing system performance Monitoring usage of system resources Selecting tools to measure system performance Diagnosing problems from the results of measurement Tuning the operating system and application parameters Upgrading the hardware resources of the system Planning for the optimal performance

Bottlenecks A resource is a bottleneck, if the size of a request exceeds the available resource. In other words, a bottleneck is a limitation of system performance due to the inadequacy of a hardware or software component, or of the systems organization.

Two ways to solve a bottleneck increasing the size of available resource decreasing the size of the request

Guidelines in tuning a real system Never tune at random Tune one area at a time Change only one parameter at a time Always use at least two tools Experience is the best tool Know when to say stop

Tuning steps Step 1: Get current measurements Step 2: Find current bottleneck Step 3: Remove it Step 4: Make new measurements Step 5: If required performance is not achieved go to step 1 Step 6: Stop for the time being.

System Resources CPU Memory Disks and disk controllers Busses Networking Operating system

Test Tools Tools for CPU Utilization Tools for Memory Utilization Tools for Disk Utilization Tools for Network Utilization

Tools for CPU Utilization - 1 mpstat: mpstat reports per-processor statistics in tabular form. Each row of the table represents the activity of one processor. The first table summarizes all activity since boot; each subsequent table summarizes activity for the preceding interval. All values are rates (events per second) unless otherwise noted.

Tools for CPU Utilization - 2 iostat: The iostat utility iteratively reports terminal, disk and other I/O activities, as well as CPU utilisation. The –c option of iostat is useful to report the percentage of time the CPU has spent in user mode, in system mode, waiting for I/O and idling.

Tools for CPU Utilization - 3 Sar: System Activity reports are also a good tool to see the resources utilization of a system. sar can be used to analyze all the system resources. The –u option gives the CPU utilization. Again constant high percentage under %usr column means system is CPU bound.

Tools for CPU Utilization - 4 Top: Top is a good free-ware tool available on net. This tool shows the top processes on a system using system resources. This includes total system-wide memory and CPU usage and break-up of these resources being used by every process.

Tools for CPU Utilization – 5 Use vmstat 5 to confirm the CPU bottleneck. Things to look for is procs column, which shows how many processes are running, waiting for I/O or other activity like lock or sleep. The r column includes processes that are running on the CPU. r>0 means that adding CPU power can be profitable. Where as CPU column has similar columns us sy and id and has same meaning as in system activity report (sar). If there is no idle time that means system is CPU bound.

Tools for Memory Utilization - 1 vmstat: vmstat can be used to see the virtual memory usage. If there is any paging or swapping being done by the system. This is a good tool to see if a system is memory bound.

Tools for Memory Utilization - 2 sar: System Activity Report can be used to see if swapping is being done by the system. Use sar –w to see if there is any swapping going on. Some swapping and paging is normal but too many swap-in and swap-outs can be an indicator of low memory. sar –g also reports number of pages per second scanned by the paging daemon (pgscan/s). If this value is high, the page daemon is spending a lot of time checking for the free memory.

Tools for Memory Utilization - 3 The best RAM shortage indicator is the scan rate (sr) output from vmastat. A scan rate of above 200 pages per second for long periods of time indicates memory shortage. Excessive paging (pi and po) is also an indicator of low memory.

Tools for Disk Utilization - 1 Use iostat –x. The wait column shows the queue length, that is, the average number of transactions waiting for service. The %w column shows the percentage of time the queue is not empty; that is, the percent of time there are transactions waiting for service. If a system spends a good percentage of time for I/O, this could indicate a disk bottleneck. High %b and svc_t are also an indication of disk I/O bottleneck. Careful configuration, thatis, spreading the load across devices can improve response time.

Tools for Disk Utilization - 2 vmstat Whenever there are blocked process, all CPU idle time is treated as wait for I/O time. If number of blocked processes; that is, the number of process under b column, exceed the number of processes in run queue, under r column. This shows disk sub-system bottleneck.

Tools for Network Utilization - 1 ntop: This is a tool with the similar interface as top. It provides detailed network utilization for each computer on local network. We can write filter to see traffic for specific hosts. Detailed network traffic statistics available from this tool.

Tools for Network Utilization - 2 netstat: netstat with –i option gives the incoming packets, outgoing packets, collisions and errors for each network interface on the system. So this can also be used to see the traffic being generated on the system.

Viewing and setting Tuning Parameters in Solaris sysdef: provides a list of approximately 60 of the most commonly used tuning parameters adb: The kernel degugger, enables to look and alter the valuesof tuning parameters. adb and crash utility allow the inspection of the running system ndd: Used to look at and change the settings of network device driver and protocol stack.