Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.

Slides:



Advertisements
Similar presentations
FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5.
Advertisements

Chapter 9: Understanding System Initialization The Complete Guide To Linux System Administration.
The Web Warrior Guide to Web Design Technologies
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 10 Performance Tuning.
Optimizing Windows Vista Performance Lesson 10. Skills Matrix Technology SkillObjective DomainObjective # Introducing ReadyBoostTroubleshoot performance.
Troubleshooting.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 8: Troubleshooting Storage Devices and Display Devices.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
Chapter 14 Chapter 14: Server Monitoring and Optimization.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 10: Collect and Analyze Performance Data.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 1 Introduction to Managing the SUSE Linux Enterprise Server.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 14 Server and Network Monitoring.
Guide to Linux Installation and Administration, 2e1 Chapter 12 Printing in Linux.
Guide to Linux Installation and Administration, 2e1 Chapter 6 Using the Shell and Text Files.
Linux+ Guide to Linux Certification, Second Edition
Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ (Course 3060) Section 2 Use the Linux Desktop.
Check Disk. Disk Defragmenter Using Disk Defragmenter Effectively Run Disk Defragmenter when the computer will receive the least usage. Educate users.
Guide to Linux Installation and Administration, 2e1 Chapter 13 Backing Up System Data.
Chapter 11 Advanced NOS Administration 11.1 Backups 11.2 Drive Mapping 11.3 Partition and Processes Management 11.4 Monitoring Resources 11.5 Analyzing.
1 Using Compressed Files and Folders Applications and operating systems read and write to compressed files. NTFS uncompresses the file before making it.
Hands-On Microsoft Windows Server 2008 Chapter 11 Server and Network Monitoring.
Windows Server 2008 Chapter 11 Last Update
1 Chapter Overview Monitoring Server Performance Monitoring Shared Resources Microsoft Windows 2000 Auditing.
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Linux Operations and Administration
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Hands-On Microsoft Windows Server 2008
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.
MCTS Guide to Microsoft Windows 7
Guide to Linux Installation and Administration, 2e 1 Chapter 9 Preparing for Emergencies.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 14 Managing and Troubleshooting Windows 2000.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
University of Management & Technology 1 Operating Systems & Utility Programs.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
CMPF124 Personal Productivity with Information Technology Chapter 1 – Part 4 Introduction To Windows Operating Systems Basic Windows Admin Introduction.
Module 2 Part IV Introduction To Windows Operating Systems Basic Windows Admin Introduction To Windows Operating Systems Basic Windows Admin.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
TELE 301 Lecture 10: Scheduled … 1 Overview Last Lecture –Post installation This Lecture –Scheduled tasks and log management Next Lecture –DNS –Readings:
Linux+ Guide to Linux Certification, Third Edition
®® Microsoft Windows 7 for Power Users Tutorial 9 Evaluating System Performance.
1 Objectives Manage and install new file systems.
Chapter Eight Exploring the UNIX Utilities. 2 Lesson A Using the UNIX Utilities.
Guide to Linux Installation and Administration, 2e1 Chapter 7 The Role of the System Administrator.
SUSE Linux Enterprise Desktop Administration Chapter 6 Manage Software.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 6 Manage Linux Processes and Services.
Troubleshooting and Performance
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
Lecture – Performance Performance management on UNIX.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.
Ch11: Syslog and Logfiles Presented by: Apichana Thiantanawat 06/11/02.
1 Periodic Processes and the cron Daemon The cron daemon is where all timed events are initiated. The cron system is serviced by the cron daemon. What.
Optimizing Windows Vista Performance Lesson 10. Skills Matrix Technology SkillObjective DomainObjective # Introducing ReadyBoostTroubleshoot performance.
CSC190 Introduction to Computing Operating Systems and Utility Programs.
Chapter 8: Installing Linux The Complete Guide To Linux System Administration.
BABCA Software Operating Systems (OS) aka Systems Software A set of instructions that coordinate all the activities among computer hardware resources.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 6A Operating System Basics PART I.
Chapter Eight Exploring the UNIX Utilities. 2 Lesson A Using the UNIX Utilities.
CSC414 “Introduction to UNIX/ Linux” Lecture 3
Materi managing user & groups, file system Managing Software Packages and File Systems The Complete Guide to Linux System Administration Chapter 10.
Materi configure & building kernels System And Kernel Management The Complete Guide to Linux System Administration Chapter 13.
Web Server Administration Chapter 11 Monitoring and Analyzing the Web Environment.
Guide to Parallel Operating Systems with Windows 7 and Linux Chapter 10 Operating System Management.
Guide to Linux Installation and Administration, 2e
MCTS Guide to Microsoft Windows 7
SUSE Linux Enterprise Desktop Administration
Presentation transcript:

Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources

Guide to Linux Installation and Administration, 2e2 Objectives In this chapter, you will: Access the /proc file system to manage system status Control how processes use system resources Track physical and virtual memory usage Locate and relieve system bottlenecks Manage system logs

Guide to Linux Installation and Administration, 2e3 Viewing System Status in /proc The /proc file system is a specialized file system that lets you view and control system resources such as processes, memory, and kernel networking parameters When you query a filename in /proc, the Linux kernel responds with live information about the status of a process, memory, or other resource

Guide to Linux Installation and Administration, 2e4 Viewing Device Information

Guide to Linux Installation and Administration, 2e5 System Information in the KDE Control Center

Guide to Linux Installation and Administration, 2e6 Viewing Process Information The /proc file system contains detailed information about each process running on Linux Before you can access information in /proc regarding a specific process, you need to find the process’s PID number To find the PID for a running process, use the ps command

Guide to Linux Installation and Administration, 2e7 Managing Processes To manage your system effectively, you will often need to display detailed information about specific processes The ps command has many options to select processes to be included in the command output You can select what information is displayed about each process

Guide to Linux Installation and Administration, 2e8 Ps Options Used to Select Processes

Guide to Linux Installation and Administration, 2e9 Combination Process Information Fields Available from ps

Guide to Linux Installation and Administration, 2e10 Process Information Fields Available from ps

Guide to Linux Installation and Administration, 2e11 Process Information Fields Available from ps (continued)

Guide to Linux Installation and Administration, 2e12 Changing Process Priorities Each process in Linux is assigned a priority, called a nice level The root user can change the priority of any process; other users can raise the nice level of processes they have started The nice and renice commands set a process’s nice level; other command-line and graphical programs also let you change a process’s nice level

Guide to Linux Installation and Administration, 2e13 Viewing Processor Usage with top The top command lists processes according to how much CPU time they are using The output of top is updated every few seconds The top command can also be used to control processes by sending them signals

Guide to Linux Installation and Administration, 2e14 Interactive Commands in top

Guide to Linux Installation and Administration, 2e15 Using Graphical Process Managing Tools KDE System Guard and the Gnome System Monitor are two powerful graphical process management utilities Graphical process managing tools display many fields of information about each process and can be used to send signals to a process

Guide to Linux Installation and Administration, 2e16 The KDE System Guard Utility

Guide to Linux Installation and Administration, 2e17 The Gnome System Monitor Utility

Guide to Linux Installation and Administration, 2e18 Actively Monitoring the CPU Load You can display a small CPU load monitor on the Panel of your desktop to keep an eye on system load When the CPU load is consistently high, you can begin checking for processes that may need attention

Guide to Linux Installation and Administration, 2e19 A CPU Load Monitor

Guide to Linux Installation and Administration, 2e20 Managing Memory The Gnome System Monitor provides memory management features You can manage physical memory (RAM) and virtual memory The Linux kernel and Linux programs can only interact with information stored in RAM

Guide to Linux Installation and Administration, 2e21 Understanding Shared Libraries Shared libraries let many Linux programs access the same programming functionality without loading it into memory multiple times Dynamically linked applications use shared libraries Statically linked applications have a copy of the programming libraries they need built into the application itself

Guide to Linux Installation and Administration, 2e22 Understanding Paged Memory A page of memory is a block of 4 KB of RAM The Linux kernel moves data to and from swap space in pages

Guide to Linux Installation and Administration, 2e23 Tracking Memory Usage The free command displays information about RAM and virtual memory usage All the information displayed by free is in kilobytes A buffer is memory used by an application for data storage

Guide to Linux Installation and Administration, 2e24 Memory Usage

Guide to Linux Installation and Administration, 2e25 The Preferences Dialog Box in the Gnome System Monitor

Guide to Linux Installation and Administration, 2e26 Tracking Per-Application Memory Use You can use the Gnome System Monitor to view how a single process is using memory Right-click on any process and choose Memory Maps from the pop-up menu

Guide to Linux Installation and Administration, 2e27 Graphical Memory Map Tab for a Single Process

Guide to Linux Installation and Administration, 2e28 Viewing Virtual Memory Information You can use the vmstat command to view detailed information about how swap space is used When vmstat is run as a regular command, its output is based on information averaged over time since the system was booted

Guide to Linux Installation and Administration, 2e29 Locating System Bottlenecks A bottleneck is the part of a computer system that significantly slows down completion of the task at hand Bottlenecks reduce system performance when one component, such as a slow network connection or disk drive, can’t keep up with the rest of the system

Guide to Linux Installation and Administration, 2e30 Identifying and Removing Bottlenecks Use various utilities Test many programs Review performance measurements and system status

Guide to Linux Installation and Administration, 2e31 Using Benchmarks To identify bottlenecks a benchmark program can be used Benchmarks provide a numeric measurement of one aspect of system performance

Guide to Linux Installation and Administration, 2e32 Managing System Logs Log files record the activities of Linux programs The main system log used by the kernel and many daemons is /var/log/messages A message is a description of what is happening within a program

Guide to Linux Installation and Administration, 2e33 Commonly Logged Events and Their Log Files

Guide to Linux Installation and Administration, 2e34 The syslogd and klogd Daemons Any program running on Linux can call the shared programming function syslog and pass it a message syslogd watches for messages submitted by programs The klogd daemon (kernel logging daemon) watches for messages submitted by the Linux kernel

Guide to Linux Installation and Administration, 2e35 How syslogd and klogd Work together to Process Log Messages

Guide to Linux Installation and Administration, 2e36 Configuring the System Log Both syslogd and klogd rely on a single configuration file: /etc/syslog.conf Each line in syslog.conf defines a set of messages and what action to take with those messages Messages are defined using a selector, which is made up of a facility and a priority The facility defines the type of program that generated the message The priority defines the severity or type of message

Guide to Linux Installation and Administration, 2e37 The Facilities

Guide to Linux Installation and Administration, 2e38 The Priorities

Guide to Linux Installation and Administration, 2e39 The Actions Once you set up a selector (consisting of a facility and a priority), you can assign an action to that selector The action determines what syslogd and klogd do with the messages defined by the selector

Guide to Linux Installation and Administration, 2e40 Configuration File Syntax

Guide to Linux Installation and Administration, 2e41 Using the logger Utility The logger utility lets you send a message to the system logging daemon You can use the logger utility from a command line or from a script You can specify selectors with the logger command

Guide to Linux Installation and Administration, 2e42 Analyzing Log Files Log files contain a valuable record of what has occurred on your Linux system A system administrator should regularly check log files for indications of trouble You can use standard Linux tools like grep to search for information in the log files

Guide to Linux Installation and Administration, 2e43 Interpreting Sample Log File Entries

Guide to Linux Installation and Administration, 2e44 Rotating Log Files A common log rotation system stores log files for a month, with a separate archive file for each week Red Hat Linux provides a utility called logrotate to manage many types of log files The configuration file /etc/logrotate.conf defines how log files are rotated

Guide to Linux Installation and Administration, 2e45 Summary The /proc file system lets you view details about the kernel, running processes, and other system information You can view process information using /proc or using the ps and top commands Each process in Linux is assigned a priority, called a nice level The nice and renice commands set a process’s nice level KDE System Guard and the Gnome System Monitor display information about each process and can be used to send signals to a process

Guide to Linux Installation and Administration, 2e46 Summary The Linux kernel moves data to and from swap space in pages—4 KB pieces The free and vmstat commands display information about RAM and virtual memory usage Bottlenecks reduce system performance, but benchmarks can help identify bottlenecks System and kernel messages are logged by the syslogd and klogd daemons using the configuration in /etc/syslog.conf Log files must be maintained by rotating them using the logrotate command