CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Performance Monitoring.

Slides:



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

Chapter 7 – Transport Layer Protocols
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Debugging.
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 10 Performance Tuning.
Using netstat for Performance Analysis
Review: Operating System Manages all system resources ALU Memory I/O Files Objectives: Security Efficiency Convenience.
Home: Phones OFF Please Unix Kernel Parminder Singh Kang Home:
Performance Tuning By Samriti Uppal Dec 1 st, 2004.
Performance Evaluation of Load Sharing Policies on a Beowulf Cluster James Nichols Marc Lemaire Advisor: Mark Claypool.
Performance Analysis and Tuning Presented by Carol ThornborrowPresented by Carol Thornborrow.
Measuring Performance Chapter 12 CSE807. Performance Measurement To assist in guaranteeing Service Level Agreements For capacity planning For troubleshooting.
1 I/O Management in Representative Operating Systems.
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.
Hjemmeeksamen 1 INF3190. Oppgave Develop a monitoring/administration tool which allows an administrator to use a client to monitor all processes running.
UNIX System Administration Handbook Chapter 4. Controlling Processes 3 rd Edition Evi Nemeth et al. Li Song CMSC691X Summer 2002.
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Help Desks.
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Help Desks.
MCTS Guide to Microsoft Windows 7
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Performance Monitoring.
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.
Managing Processes CSCI N321 – System and Network Administration Copyright © 2000, 2011 by Scott Orr and the Trustees of Indiana University.
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.
The Transmission Control Protocol (TCP) Application Services (Telnet, FTP, , WWW) Reliable Stream Transport (TCP) Connectionless Packet Delivery.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
System Troubleshooting TCS Network, System, and Load Monitoring TCS for Developers.
DBI313. MetricOLTPDWLog Read/Write mixMostly reads, smaller # of rows at a time Scan intensive, large portions of data at a time, bulk loading Mostly.
CS414 Review Session.
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Change and Configuration Management.
Acegene IT Co. Ltd.1 Linux 操作系统 系统优化 周炯上海艾基信息技术有限公司.
Lecture – Performance Performance management on UNIX.
Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.
Cosc 4750 Maintenance & Analysis. Maintenance Contracts Annual cost of 10%-12% of component’s list price. On-site maintenance –usually within hours.
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Disaster Recovery.
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Change and Configuration Management.
Processes CSCI 4534 Chapter 4. Introduction Early computer systems allowed one program to be executed at a time –The program had complete control of the.
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration System Monitoring.
Process Description and Control Chapter 3. Source Modified slides from Missouri U. of Science and Tech.
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:
ACCESS CONTROL. Components of a Process  Address space  Set of data structures within the kernel - process’s address space map - current status - execution.
Processes 2 Introduction to Operating Systems: Module 4.
CSC414 “Introduction to UNIX/ Linux” Lecture 3
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Services.
Guide to Parallel Operating Systems with Windows 7 and Linux Chapter 10 Operating System Management.
Windows Server 2003 { First Steps and Administration} Benedikt Riedel MCSE + Messaging
Linux I/O Tuning Anshul Gupta. 2 - Performance Gathering Tools -I/O Elevators -File System -Swap and Caches Agenda.
Linux Command Tips.
CIT 470: Advanced Network and System Administration
Linux203Training Module System Mgmt.
Informatica PowerCenter Performance Tuning Tips
MCTS Guide to Microsoft Windows 7
Modeling Page Replacement Algorithms
Unix Process Management
A Guide to Unix Using Linux Fourth Edition
CIT 470: Advanced Network and System Administration
Module 2.2 COP4600 – Operating Systems Richard Newman
CIT 470: Advanced Network and System Administration
COP 4343 Unix System Administration
Process & its States Lecture 5.
Modeling Page Replacement Algorithms
Process Description and Control
CPU scheduling decisions may take place when a process:
Controlling Processes
Performance Analysis Chapter 25.
Performance Analysis.
CIT 470: Advanced Network and System Administration
Presentation transcript:

CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Performance Monitoring

CIT 470: Advanced Network and System AdministrationSlide #2 Topics 1.Performance monitoring. 2.Performance tuning. 3.CPU 4.Memory 5.Disk 6.Network

CIT 470: Advanced Network and System AdministrationSlide #3 Performance Monitoring Identify which aspect of performance Latency: delay until initial access. Throughput: rate of transfer/processing. Identify which system component CPU Memory Disk Network

CIT 470: Advanced Network and System AdministrationSlide #4 Performance Tuning Process 1.Learn the customer’s problem. Identify specifically what’s wrong. 2.Find the problem’s cause and fix it. 1.When does the problem occur? 2.Has anything about the system changed? 3.What critical resource is affecting performance? 3.Have the right tools. Historical monitoring data will show what’s normal and identify any trends.

CIT 470: Advanced Network and System AdministrationSlide #5 Experimenter Effect Monitoring the system affects performance. Monitoring tools use system resources. If you’ve consistently monitored system, then monitoring won’t alter system performance.

CIT 470: Advanced Network and System AdministrationSlide #6 Performance Problem Solutions 1.Get more of needed resource. Ex: Upgrade processor, use striped disk array. 2.Reduce system requirements. Ex: Kill processes, move services to other hosts. 3.Eliminate inefficiency and waste. Ex: Produce a static home page every 15 minutes instead of regenerating each access. 4.Ration resource usage. Ex: Set process priorities with renice. Ex: Limit process resource usage with limit.

CIT 470: Advanced Network and System AdministrationSlide #7 Monitoring Processes uptime Provides aggregate data about system load. ps Shows running processes with CPU, mem usage. top Updated list of running processes + summaries. vmstat Summary data about processes and CPU usage.

CIT 470: Advanced Network and System AdministrationSlide #8 Uptime Uptime provides the following data How long system has been running. Number of users logged in. Average number of runnable processes. In last 1, 5, 15 minutes. Want a load average under 3. Uptime example > uptime 17:40 up 126 days, 8:03, 6 users, load average: 1.40, 1.03, 0.55

CIT 470: Advanced Network and System AdministrationSlide #9 vmstat Number of Runnable and Blocked processes. Memory (virtual, free, buffered, cached) Blocks/second transferred in (bi) and out (bo) Interrupts/sec (in) and context switches/sec (cs) CPU usage by user, system, idle, and waiting. > vmstat 5 4 procs memory swap io system cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa

CIT 470: Advanced Network and System AdministrationSlide #10 Identifying CPU Shortages 1.Short-term CPU spikes are normal. 2.Consistently high number of runnable processes (r) in vmstat. 3.Consistent high total CPU usage (sy+us). 4.High system time compared to user time and high context switches indicates system is thrashing between processes instead of doing user work.

CIT 470: Advanced Network and System AdministrationSlide #11 Changing Process Priorities Nice values Positive values lower priorities. Negative values increase priorities. If you know a process will be a CPU hog, nice +5 command_name If you detect a CPU hog after it’s started, renice 5 PID

CIT 470: Advanced Network and System AdministrationSlide #12 Managing Processes with kill TERM (default) Terminates process execution (Ctrl-c). Processes can catch or ignore signal. KILL (9) Terminates process execution. Processes cannot catch or ignore. Processes waiting on I/O will not die. STOP Suspends process execution until SIGCONT (Ctrl-z). Useful for moving CPU hog out of way temporarily.

CIT 470: Advanced Network and System AdministrationSlide #13 Imposing Limits on Processes CPU timeulimit –t secs Maximum file sizeulimit –f KB Maximum data segmentulimit –d KB Maximum stack sizeulimit –s KB Maximum physical memulimit –m KB Maximum core sizeulimit –c KB Maximum number procsulimit –u n Maximum virtual memulimit –v KB

CIT 470: Advanced Network and System AdministrationSlide #14 Monitoring Memory Use free to see how memory is used. System will use most free memory for caching. System will swap out inactive processes. Don’t worry until free < 5% of total memory. Use vmstat to detect paging activity. Page out (so) rate greater than 0 consistently. High page in (si) rate, as system uses the paging facility to load programs into memory.

CIT 470: Advanced Network and System AdministrationSlide #15 Managing Memory 1.Improving paging capacity. Add new swapfiles with swapon. Add new swap partitions. 2.Improving paging performance. Use swap partitions instead of swap files. Distribute swap resources across disks. 3.Migrate memory hogs to another host. 4.Add more memory.

CIT 470: Advanced Network and System AdministrationSlide #16 Monitoring Disk I/O Use iostat to get per disk statistics. Transactions per second (tps). Blocks read/written per second. Managing disk performance problems. Distribute heavily used data across disks/ctrlers. Get more or faster disks. Use RAID or LVM striping.

CIT 470: Advanced Network and System AdministrationSlide #17 iostat > iostat 2 Linux (zim) 03/26/2007 avg-cpu: %user %nice %system %iowait %steal %idle Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn hde hdh hdc avg-cpu: %user %nice %system %iowait %steal %idle Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn hde hdh hdc

CIT 470: Advanced Network and System AdministrationSlide #18 Managing Disk Capacity Detecting disk resource usage. List all partition usage with df –h Identify high usage directories with du Summary data: du –s Highest usage directories: du -k /|sort –rn Use find to detect disk hogs. Use find –size to search for big files. Use –atime +X to identify files that haven’t been used in X days.

CIT 470: Advanced Network and System AdministrationSlide #19 Managing Disk Shortages 1.Add more disks. 2.Move files to remote fileservers. 3.Eliminate unnecessary files. 4.Compress large infrequently used files. 5.Impose disk quotas on users. Soft limit: can be violated temporarily. Hard limit: cannot be violated.

CIT 470: Advanced Network and System AdministrationSlide #20 Network Statistics > netstat -s Tcp: active connections openings passive connection openings 9 failed connection attempts 6195 connection resets received 5 connections established segments received segments send out segments retransmited 1389 bad segments received resets sent Ip: total packets received 6 with invalid headers 28 with invalid addresses 0 forwarded 0 incoming packets discarded incoming packets delivered requests sent out Udp: packets received 336 packets to unknown port received. 6 packet receive errors packets sent

CIT 470: Advanced Network and System AdministrationSlide #21 References 1.Mark Burgess, Principles of System and Network Administration, Wiley, Aeleen Frisch, Essential System Administration, 3 rd edition, O’Reilly, Mike Loukides and Gian-Paolo D. Musumeci, System Performance Tuning, 2 nd edition, O’Reilly, Evi Nemeth et al, UNIX System Administration Handbook, 3 rd edition, Prentice Hall, 2001.