Linux203Training Module System Mgmt.

Slides:



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

Sogang University Advanced Operating Systems (Linux Device Drivers) Advanced Operating Systems (Linux Device Drivers) Sang Gue Oh, Ph.D.
Controlling Processes & Periodic Processes WeeSan Lee
Operating systems This work is licensed under a Creative Commons Attribution-Noncommercial- Share Alike 3.0 License. Skills: none IT concepts: popular.
Using netstat for Performance Analysis
Introduction to Kernel
Performance Evaluation of Load Sharing Policies on a Beowulf Cluster James Nichols Marc Lemaire Advisor: Mark Claypool.
Processes and Resources
Lecture 1: Introduction CS170 Spring 2015 Chapter 1, the text book. T. Yang.
Operating Systems (CSCI2413) Lecture 3 Processes phones off (please)
Page 1 © 2001 Hewlett-Packard Company Tools for Measuring System and Application Performance Introduction GlancePlus Introduction Glance Motif Glance Character.
UNIX System Administration Handbook Chapter 4. Controlling Processes 3 rd Edition Evi Nemeth et al. Li Song CMSC691X Summer 2002.
Linux Installation and Administration – Lesson 5 Tutor: George Papamarkos Topic: Devices in Linux.
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.
C LIENT R EGISTRY OpenEMPI: Operations Support Training SYSNET International, Inc.
Fall 2011 Nassau Community College ITE153 – Operating Systems 1 Session 4 More Hands-on Commands.
Shoehorning Apache Onto Your Box System Sizing tips Sander Temme.
Virtuozzo Linux Advanced Q&A: deployment and optimization Andrey Moruga Product Manager May 9, 2007.
Managing Processes CSCI N321 – System and Network Administration Copyright © 2000, 2011 by Scott Orr and the Trustees of Indiana University.
The Linux /proc Filesystem CSE8343 – Fall 2001 Group A1 – Alex MacFarlane, Garrick Williamson, Brad Crabtree.
Chapter 4 Processes. Process: what is it? A program in execution A program in execution usually usually Can also have suspended or waiting processes Can.
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
System Troubleshooting TCS Network, System, and Load Monitoring TCS for Developers.
Acegene IT Co. Ltd.1 Linux 操作系统 系统优化 周炯上海艾基信息技术有限公司.
Linux Architecture Overview 1. Initialization Uboot – hardware init, loads kernel Kernel – remaining initialization, calls “init” Init – 1 st process,
Lecture – Performance Performance management on UNIX.
LINUX System : Lecture 7 Bong-Soo Sohn Lecture notes acknowledgement : The design of UNIX Operating System.
This slide deck is for LPI Academy instructors to use for lectures for LPI Academy courses. ©Copyright Network Development Group Module 11 Managing.
System Administration. Logging in as System Administrator System Admin login (aka superuser, aka root) –login id: root –Default PS1 prompt: # –Home directory:
Linux Processes Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Performance Analysis. Computer Center, CS, NCTU 2 Help! My system is slow!  slow.pdf.
Direct memory access. IO Command includes: buffer address buffer length read or write dada position in disk When IO complete, DMA sends an interrupt request.
Local Area Tracking system System Control Unit. Goals Configure Spartan 3 FPGA development board to boot and run uClinux OS Configure Spartan 3 FPGA development.
Guide to Parallel Operating Systems with Windows 7 and Linux Chapter 10 Operating System Management.
Overview A) Power on or reset B) 1st stage boot loader C) 2nd stage boot loader D) Operate system.
Linux I/O Tuning Anshul Gupta. 2 - Performance Gathering Tools -I/O Elevators -File System -Swap and Caches Agenda.
System Administration Performance Monitoring For a server, it is crucial to monitor the health of the machine You need not only real time data collection.
New flavors of pg_top Michael Paquier Tokyo 2013/07/13
Where'd all my memory go? Joshua Miller SCALE 12x – 22 FEB 2014.
Input/Output (I/O) Important OS function – control I/O
Linux Command Tips.
Introduction to Kernel
Kaun Banega Cavisson Champ
Linux 103 Training MOdule Basic System Mgmt.
Chapter 1: A Tour of Computer Systems
Proc File System Sadi Evren SEKER.
Basic Commands ls cp ls –l (in detail format) echo ls –a
Shoehorning Apache Onto Your Box
Modeling Page Replacement Algorithms
Chapter 4 – Introduction to Operating System Concepts
Linux 202 Training Module Program and Process.
Performance Analysis pmli.
Operating Systems Lecture 11.
Process Virtualization. Process Process is a program that has initiated its execution. A program is a passive entity; whereas a process is an active entity.
CIT 470: Advanced Network and System Administration
Operating Systems Lecture 5.
CHAPTER 8 ( , ) John Carelli, Instructor Kutztown University
COP 4343 Unix System Administration
Handles disk file 0000: array of file-offsets 0001: 0002: 0003: 0: …
Modeling Page Replacement Algorithms
Introduction to Operating Systems
Linux Architecture Overview.
LINUX System : Lecture 7 Lecture notes acknowledgement : The design of UNIX Operating System.
Processes David Ferry CSCI 3500 – Operating Systems
Performance Analysis.
Performance Analysis.
Process and Thread State Diagrams
Chapter 1: Introduction CSS503 Systems Programming
Process and Thread State Diagrams
Presentation transcript:

Linux203Training Module System Mgmt

This presentation will cover the following topics vmstat mpstat lsof uptime uname hostname

vmstat vmstat by default will display the memory usage (including swap). $ vmstat procs -----------memory---------- ---swap-- -----io---- --system-- --- --cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st 0 0 305416 260688 29160 2356920 2 2 4 1 0 0 6 1 92 2 0 vmstat output contains the following fields: Procs – r: Total number of processes waiting to run Procs – b: Total number of busy processes Memory – swpd: Used virtual memory Memory – free: Free virtual memory Memory – buff: Memory used as buffers Memory – cache: Memory used as cache. Swap – si: Memory swapped from disk (for every second) Swap – so: Memory swapped to disk (for every second) IO – bi: Blocks in. i.e blocks received from device (for every second) IO – bo: Blocks out. i.e blocks sent to the device (for every second) System – in: Interrupts per second System – cs: Context switches CPU – us, sy, id, wa, st: CPU user time, system time, idle time, wait time

To execute every 2 seconds for 10 times $ vmstat 2 10 procs -----------memory---------- ---swap-- ----- io---- --system-- -----cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 1 0 0 537144 182736 6789320 0 0 0 0 1 1 0 0 100 0 0 0 0 0 537004 182736 6789320 0 0 0 0 50 32 0 0 100 0 0 ..

mpstat mpstat – Display basic info By default mpstat displays CPU statistics $ mpstat Linux 2.6.35.13-92.CAV14.fc14.x86_64 (cavisson-server-ns1) 11/01/2012 _x86_64_ (4 CPU) 02:14:39 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle 02:14:39 PM all 0.87 0.00 2.73 0.22 0.00 0.01 0.00 0.00 96.17

Option -P ALL, displays all the individual CPUs (or Cores) along with its statistics $ mpstat -P ALL Linux 2.6.32-100.28.5.el6.x86_64 (dev-db) 07/09/2011 _x86_64_ (4 CPU) 10:28:04 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle 10:28:04 PM all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 99.99 10:28:04 PM 0 0.01 0.00 0.01 0.01 0.00 0.00 0.00 0.00 99.98 10:28:04 PM 1 0.00 0.00 0.01 0.00 0.00 0.00 0.00 0.00 99.98 10:28:04 PM 2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 10:28:04 PM 3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00

lsof List of open files # lsof COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME init 1 root cwd DIR 8,1 4096 2 / init 1 root txt REG 8,1 124704 917562 /sbin/init init 1 root 0u CHR 1,3 0t0 4369 /dev/null

List opened files under a directory # lsof +D /var/log/ COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME rsyslogd 488 syslog 1w REG 8,1 1151 268940 /var/log/syslog rsyslogd 488 syslog 2w REG 8,1 2405 269616 /var/log/auth.log

uptime Displays the total uptime for the computer. $uptime 12:36:49 up 5 days, 21 min, 17 users, load average: 0.00, 0.01, 0.05

uname Print name of current system. $]uname -arv Linux cavisson-server-ns1 2.6.35.13-92.CAV14.fc14.x86_64 #1 SMP Wed Sep 14 20:54:14 IST 2011 x86_64 x86_64 x86_64 GNU/Linux

hostname view system name (hostname) or assign a new name to system using hostname command. $]hostname cavisson-server-ns1