Performance Tuning By Samriti Uppal Dec 1 st, 2004.

Slides:



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

Kernel memory allocation
Segmentation and Paging Considerations
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 10 Performance Tuning.
Process Description and Control Module 1.0. Major Requirements of an Operating System Interleave the execution of several processes to maximize processor.
Operating System Support Focus on Architecture
Chapter 14 Chapter 14: Server Monitoring and Optimization.
Memory Management 2010.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 10: Collect and Analyze Performance Data.
Performance Analysis and Tuning Presented by Carol ThornborrowPresented by Carol Thornborrow.
Computer Organization and Architecture
PRASHANTHI NARAYAN NETTEM.
Page 1 © 2001 Hewlett-Packard Company Tools for Measuring System and Application Performance Introduction GlancePlus Introduction Glance Motif Glance Character.
The Origin of the VM/370 Time-sharing system Presented by Niranjan Soundararajan.
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
Layers and Views of a Computer System Operating System Services Program creation Program execution Access to I/O devices Controlled access to files System.
Basics of Operating Systems March 4, 2001 Adapted from Operating Systems Lecture Notes, Copyright 1997 Martin C. Rinard.
Page 1 © 2001 Hewlett-Packard Company Tools for Measuring System and Application Performance Introduction GlancePlus Introduction Glance Motif Glance Character.
Hjemmeeksamen 1 INF3190. Oppgave Develop a monitoring/administration tool which allows an administrator to use a client to monitor all processes running.
Process Description and Control Chapter 3. Major Requirements of an OS Interleave the execution of several processes to maximize processor utilization.
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.
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.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Lecture 19: Virtual Memory
4.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 4: Organizing a Disk for Data.
Cosc 2150: Computer Organization Chapter 6, Part 2 Virtual Memory.
®® Microsoft Windows 7 for Power Users Tutorial 9 Evaluating System Performance.
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
Chapter 101 Multiprocessor and Real- Time Scheduling Chapter 10.
11 MANAGING PERFORMANCE Chapter 16. Chapter 16: MANAGING PERFORMANCE2 OVERVIEW  Optimize memory, disk, and CPU performance  Monitor system performance.
30 October Agenda for Today Introduction and purpose of the course Introduction and purpose of the course Organization of a computer system Organization.
Lecture – Performance Performance management on UNIX.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Cosc 4750 Maintenance & Analysis. Maintenance Contracts Annual cost of 10%-12% of component’s list price. On-site maintenance –usually within hours.
Scott Ferguson Section 1
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Process-Concept.
CSC414 “Introduction to UNIX/ Linux” Lecture 2. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
Process Description and Control Chapter 3. Source Modified slides from Missouri U. of Science and Tech.
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
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
for all Hyperion video tutorial/Training/Certification/Material Essbase Optimization Techniques by Amit.
Performance Analysis. Computer Center, CS, NCTU 2 Help! My system is slow!  slow.pdf.
Chapter 11 System Performance Enhancement. Basic Operation of a Computer l Program is loaded into memory l Instruction is fetched from memory l Operands.
Virtual Memory By CS147 Maheshpriya Venkata. Agenda Review Cache Memory Virtual Memory Paging Segmentation Configuration Of Virtual Memory Cache Memory.
Introduction to Performance Tuning Chia-heng Tu PAS Lab Summer Workshop 2009 June 30,
Guide to Parallel Operating Systems with Windows 7 and Linux Chapter 10 Operating System Management.
Linux Command Tips.
Chapter 2 Memory and process management
Threads vs. Events SEDA – An Event Model 5204 – Operating Systems.
Memory Caches & TLB Virtual Memory
MCTS Guide to Microsoft Windows 7
Linux 202 Training Module Program and Process.
Performance Analysis pmli.
William Stallings Computer Organization and Architecture
Page Replacement.
Multiprocessor and Real-Time Scheduling
Chapter 2: Operating-System Structures
Operating Systems Lecture 1.
Performance Analysis.
CS703 - Advanced Operating Systems
Performance Analysis.
Chapter 2: Operating-System Structures
COMP755 Advanced Operating Systems
Presentation transcript:

Performance Tuning By Samriti Uppal Dec 1 st, 2004

What is performance Tuning? It is the adaptation of the speed of a computer system to the speed of the real world. The art of increasing performance for a specific application set.

Major elements of the system environment Process management Memory usage Interprocess communication I/O subsystems

Monitoring Your System In addition to obtaining information about your system when it is running poorly, it is also important for you to obtain information about your system when it is running well. By comparing the two sets of data, you may be able to pinpoint the area that is causing the performance problem.

Monitoring Tools Numerous system monitoring tools are available. You may have to use various tools in combination with each other in order to get an accurate picture of your system. The following sections describe how to use monitoring tools to identify the system component or subsystem that is causing a performance degradation.

Monitoring Processes - ps Command The ps command can be used to determine the current running processes, their state, and how they utilize system memory. An example of the ps command follows: # ps aux USER PID %CPU %MEM VSZ RSS TTY S STARTED TIME COMMAND chen M 256K p9 U 13:24:58 0:00.36 cp /vmunix /tmp root M 456K p9 R + 13:33:21 0:00.08 ps aux sorn M 552K p9 S + 13:25:01 0:00.05 vi met.ps root M 3.72 ?? S Nov 07 01:26:44 /usr/bin/X11/X -a root M 1.01 ?? R 16:55:16 0:24.79 /usr/bin/X11/dxpa sorn M 504K p5 S + 13:25:03 0:00.02 more sorn M 456K p5 S 13:14:14 0: csh (csh) root M 11.9 ?? R < Nov :26:13 [kernel idle] [1] [2] [3] [4] [5] [6]

Monitoring Virtual Memory and CPU Usage - vmstat Command vmstat reports virtual memory statistics of process, virtual memory, disk, and CPU activity for a specified time interval. example% vmstat 5 procs memory page disk faults cpu r b w swap free re mf pi p fr de sr s0 s1 s2 s3 in sy cs us sy id

Monitoring Disk I/O - iostat Command The iostat command reports I/O statistics for terminals, disks, and the CPU. # iostat 1 tty rz1 rz2 rz3 cpu tin tout bps tps bps tps bps tps us ni sy id

Monitoring the Network - netstat Command To check network statistics, use the netstat command. # netstat -i Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll ln DLI none ln ln red-net node sl0* sl1* lo lo loop localhost

Displaying NFS Statistics - nfsstat Command To check NFS statistics, use the nfsstat command. The ratio of timeouts to calls (which should not exceed 1 percent) is the most important thing to look for in the NFS statistics. A timeout-to-call ratio greater than 1 percent can have a significant negative impact on performance.

Tuning Subsystem Operations Performance tuning consists of performing several of the following tasks: Analyzing the work load on your system and determining which system components may need tuning Optimizing CPU use Tuning memory Tuning interprocess communications Tuning I/O

Analyzing Tuning Possibilities Keep the following tuning rules in mind: Avoid unnecessary changes. Cause the least disruption. Make the easy changes first. Make one change at a time. Know when to quit.

Optimizing CPU Utilization When applications are operating correctly but are experiencing CPU saturation (that is, a lack of available CPU cycles), your options for correcting the situation are limited. The best long-term solution is to add more memory, add an additional processor (on multiprocessor systems), or replace your system with a larger one.

Tuning Memory The memory subsystem is one of the first places where a performance problem can occur. Performance can be degraded when the virtual memory subsystem cannot keep up with the demand for pages. Memory tuning can be divided into the following two areas of concern: Tuning the UBC Tuning your virtual memory subsystem

Tuning Memory Some general solutions for reducing excessive paging and swapping are as follows: Reduce memory demands on the system by running fewer applications simultaneously. Use the at or batch command to run applications at night. Reduce the application's use of memory by using dynamically allocated memory instead of statically allocated memory. Also, use dynamically allocated memory more effectively, if possible. Add more physical memory. Reduce the amount of memory available for the UBC. Note that this may adversely affect I/O performance. Optimize the use of your swap space.

Tuning Interprocess Communication You may be able to improve IPC performance by tuning the following configuration attributes in the sysconfigtab file: msg-mnb (maximum number of bytes on queue) msg-tql (number of system message headers) You may also want to consider tuning several other IPC attributes in the sysconfigtab file. Ex msg-max, sem-mni, shm-max etc.

Tuning I/O I/O tuning can be divided into the following three areas of concern: File systems performance Network performance NFS performance

File systems performance You can improve disk I/O performance by changing file system fragment sizes and other parameters that control the layout of the file systems. Disk throughput is the gating performance factor for most applications. Data transfers to and from disk are much slower than data transfers involving the CPU or main memory. As a result, configuring and tuning disk subsystems to maximize the efficiency of I/O operations can have a critical impact on an application's performance.

File systems performance Improve performance by making some of the following adjustments : Use fast disks. Use many small disks instead of a few large ones. Reduce or stop paging and swapping by tuning the UBC or virtual memory. Run fewer applications simultaneously. Compress files to regain disk space. User LSM mirroring to improve read performance.

File systems performance Use quotas to limit users' disk space. Layout the file systems across multiple disks to spread the I/O load evenly. Spread out swap partitions across multiple disks.

Network performance Most resources used by the network subsystems are allocated and adjusted dynamically, so tuning is typically not an issue with the network itself. The one network subsystem resource that may require tuning is the number of network threads configured in your system. To adjust the number of threads configured in your system, modify the netisrthreads attribute in the sysconfigtab file.

NFS performance NFS tuning can be critically important because NFS is the heaviest user of the network. The Network File System (NFS) shares the unified buffer cache with the virtual memory subsystem and local file systems. Adding more disks on a server and spreading the I/O across spindles can greatly enhance NFS performance.

NFS performance NFS performance can be directly enhanced in the following ways: Adjust the number of nfsiod and nfsd daemons on client and server systems. For read-only file systems and slow network links, performance may be improved by changing the cache timeout limits. If fragment drops are a problem, use the mount command to set the size of the NFS read and write buffers to 1KB.