Making z/vm and Linux Guests Production Ready Best Practices



Similar documents
IBM Systems and Technology Group Technical Conference

The Consolidation Process

Monitoring Linux Guests and Processes with Linux Tools

Arwed Tschoeke, Systems Architect IBM Systems and Technology Group

Performance and scalability of a large OLTP workload

Managing z/vm & Linux Performance Best Practices

SuSE Linux High Availability Extensions Hands-on Workshop

Cloud Computing with xcat on z/vm 6.3

z/vm Capacity Planning Overview

V01. IBM zseries Expo April 16-20, 2007 Munich, Germany

Running Linux on System z as a z/vm Guest: Useful Things to Know

Managing z/vm and Linux Performance Best Practices

Management with IBM Director

GSE z/os Systems Working Group s390-tools

Linux on IBM Eserver zseries and S/390:

IBM Tivoli Web Response Monitor

Implementing Tivoli Storage Manager on Linux on System z

z/vm and Linux on zseries Performance Monitoring An Update on How and With What Products

SHARE in Pittsburgh Session 15591

Linux on IBM System z

z/vm Capacity Planning Overview SHARE 117 Orlando Session 09561

Linux on z/vm Configuration Guidelines

Positioning the Roadmap for POWER5 iseries and pseries

System z Batch Network Analyzer Tool (zbna) - Because Batch is Back!

UPSTREAM for Linux on System z

Java Application Performance Analysis and Tuning on IBM System i

Session Title: Cloud Computing 101 What every z Person must know

Forecasting Performance Metrics using the IBM Tivoli Performance Analyzer

CS z/os Application Enhancements: Introduction to Advanced Encryption Standards (AES)

IBM Lotus Enterprise Integrator (LEI) for Domino. Version August 17, 2010

Virtualization: TCP/IP Performance Management in a Virtualized Environment Orlando Share Session 9308

Backups in the Cloud Ron McCracken IBM Business Environment

IBM Infrastructure Suite for z/vm and Linux

Managed Services - A Paradigm for Cloud- Based Business Continuity

Tips on Monitoring and Managing your z/vm and Linux on System z

Aktuelles aus z/vm, z/vse, Linux on System z

RED HAT ENTERPRISE VIRTUALIZATION FOR SERVERS: COMPETITIVE FEATURES

IBM Software Group. Lotus Domino 6.5 Server Enablement

Exam : IBM : Iseries Linux Soluton Sales v5r3

z/os Basics: z/os UNIX Shared File System environment and how it works

CS z/os Network Security Configuration Assistant GUI

Performance of a webapp.secure Environment

What s the best disk storage for my i5/os workload?

Migrating LAMP stack from x86 to Power using the Server Consolidation Tool

Deploying a private database cloud on z Systems

Accelerate with ATS DS8000 Hardware Management Console (HMC) Best practices and Remote Support Configuration September 23rd, 2014.

IBM Tivoli Monitoring for Databases

IBM WebSphere Data Interchange V3.3

IBM, Linux and You: Real Experience, Real Solutions... for Real Business. John Sarsgard. General Manager, Linux IBM Corporation

Backup Solutions with Linux on System z and z/vm. Wilhelm Mild IT Architect IBM Germany mildw@de.ibm.com 2011 IBM Corporation

Experiences with Using IBM zec12 Flash Memory

z/tpf FTP Client Support

DB2 Database Demonstration Program Version 9.7 Installation and Quick Reference Guide

Guide SHARE Europe, Warwick 30 Jan 2003 Malcolm Beattie Linux Technical Consultant IBM EMEA Enterprise Server Group

FICON Extended Distance Solution (FEDS)

IBM Systems Director Navigator for i5/os New Web console for i5, Fast, Easy, Ready

FOR SERVERS 2.2: FEATURE matrix

How To Run A Power5 On A Powerbook On A Mini Computer (Power5) On A Microsoft Powerbook (Power4) On An Ipa (Power3) On Your Computer Or Ipa On A Minium (Power2

IBM Tivoli Monitoring for Network Performance

SUSE Linux Enterprise 10 SP2: Virtualization Technology Support

z/vm Platform Update Introducing z/vm Version 6.1 NEUVM September 2009

Big Data Storage in the Cloud

how can I optimize performance of my z/vm and Linux on System z environments?

How To Write An Architecture For An Bm Security Framework

Oracle Database Scalability in VMware ESX VMware ESX 3.5

SAP Central Process Scheduling (CPS) 8.0 by Redwood

SAP Performance Review/System Health Check

SAS deployment on IBM Power servers with IBM PowerVM dedicated-donating LPARs

Oracle Networking and High Availability Options (with Linux on System z) & Red Hat/SUSE Oracle Update

Redbooks Paper. Local versus Remote Database Access: A Performance Test. Victor Chao Leticia Cruz Nin Lei

BICS Connectivity for Web Intelligence in SAP BI 4.0. John Mrozek / AGS December 01, 2011

High Availability for Linux on IBM System z Servers

Customer Experiences:

IBM LoadLeveler for Linux delivers job scheduling for IBM pseries and IBM xseries platforms running Linux

Software Announcement April 17, 2001

Oracle on System z Linux- High Availability Options Session ID 252

IBM Tivoli Composite Application Manager for Microsoft Applications: Microsoft Hyper-V Server Agent Version Fix Pack 2.

IBM WebSphere Enterprise Service Bus, Version 6.0.1

SAP Service Tools for Performance Analysis

z/os V1R11 Communications Server System management and monitoring Network management interface enhancements

Budget Control by Cost Center

QuickSpecs. HP Integrity Virtual Machines (Integrity VM) Overview. Currently shipping versions:

High Availability Architectures for Linux in a Virtual Environment

z/os Basics: z/os UNIX Shared File System environment and how it works

Application Lifecycle Management

BROCADE PERFORMANCE MANAGEMENT SOLUTIONS

Virtual Networking with z/vm Guest LANs and the z/vm Virtual Switch

Red Hat enterprise virtualization 3.0 feature comparison

BEST PRACTICES FOR RED HAT ENTERPRISE LINUX ON SYSTEM Z

Tivoli IBM Tivoli Monitoring for Transaction Performance

Lisa Gundy IBM Corporation. Wednesday, March 12, 2014: 11:00 AM 12:00 PM Session 15077

Understand the New Enterprise Cloud System

How To Install And Service An Ipa Vmmses/E On Z/Vm And Linux On A Microsoft Vmme (Vmms) On A Z/Mme 3.5 (Vms

Installing and using the webscurity webapp.secure client

10195 Crypto And Disaster Recovery

Redpaper. Performance Test of Virtual Linux Desktop Cloud Services on System z

Getting Started With WebSphere Liberty Profile on z/os

Integration of SAP Netweaver User Management with LDAP

VMWare Workstation 11 Installation MICROSOFT WINDOWS SERVER 2008 R2 STANDARD ENTERPRISE ED.

What's New in the z/vm 6.3 Hypervisor

Transcription:

Making z/vm and Linux Guests Production Ready Best Practices IBM Washington Systems Center Advanced Technical Support Jon von Wolfersdorf wolff@us.ibm.com

Trademarks The following are trademarks of the International Business Machines Corporation in the United States and/or other countries. For a complete list of IBM Trademarks, see www.ibm.com/legal/copytrade.shtml: AS/400, DB2, e-business logo, ESCON, eserver, FICON, IBM, IBM Logo, iseries, MVS, OS/390, pseries, RS/6000, S/390, System z9, VM/ESA, VSE/ESA, WebSphere, xseries, z/os, zseries, z/vm. The following are trademarks or registered trademarks of other companies Java and all Java-related trademarks and logos are trademarks of Sun Microsystems, Inc., in the United States and other countries. LINUX is a registered trademark of Linux Torvalds in the United States and other countries. UNIX is a registered trademark of The Open Group in the United States and other countries. Microsoft, Windows and Windows NT are registered trademarks of Microsoft Corporation. SET and Secure Electronic Transaction are trademarks owned by SET Secure Electronic Transaction LLC. Intel is a registered trademark of Intel Corporation. * All other products may be trademarks or registered trademarks of their respective companies. NOTES: Performance is in Internal Throughput Rate (ITR) ratio based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput that any user will experience will vary depending upon considerations such as the amount of multiprogramming in the user's job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve throughput improvements equivalent to the performance ratios stated here. IBM hardware products are manufactured from new parts, or new and serviceable used parts. Regardless, our warranty terms apply. All customer examples cited or described in this presentation are presented as illustrations of the manner in which some customers have used IBM products and the results they may have achieved. Actual environmental costs and performance characteristics will vary depending on individual customer configurations and conditions. This publication was produced in the United States. IBM may not offer the products, services or features discussed in this document in other countries, and the information may be subject to change without notice. Consult your local IBM business contact for information on the product or services available in your area. All statements regarding IBM's future direction and intent are subject to change or withdrawal without notice, and represent goals and objectives only. Information about non-ibm products is obtained from the manufacturers of those products or their published announcements. IBM has not tested those products and cannot confirm the performance, compatibility, or any other claims related to non-ibm products. Questions on the capabilities of non-ibm products should be addressed to the suppliers of those products. Prices subject to change without notice. Contact your IBM representative or Business Partner for the most current pricing in your geography. References in this document to IBM products or services do not imply that IBM intends to make them available in every country. Any proposed use of claims in this presentation outside of the United States must be reviewed by local IBM country counsel prior to such use. The information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice. Any references in this information to non-ibm Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk. 2

Acknowledgements The following people contributed material to this presentation: Bill Bitner Steve Gracin Richard Lewis John Schnitzler 3

Agenda Design and Configuration Planning Installation/Configuration Best Practices z/vm Linux on zseries Virtual Networking References 4

Design & Configuration Planning Planning is important! Contact IBM Techline for: Sizing assistance Scheduling a Solution Assurance Review (SAR) http://dalnotes1.dfw.ibm.com/atss/techxpress.nsf/request?openform Contact Tim Hayford, zseries New Workload TSS Mgr. for: Application assessment/selection assistance z/vm and Linux installation assistance thayfor@us.ibm.com The following resources can be very helpful: SC24-6083 z/vm CP Planning and Administration http://publibz.boulder.ibm.com/epubs/pdf/hcsg0b11.pdf SC24-6096 Getting Started with Linux on zseries http://publibz.boulder.ibm.com/epubs/pdf/hcsx0b10.pdf Virtualization Cookbooks by Michael MacIsaac http:/www.redbooks.ibm.com 5

Monitoring Your System Performance Basic CP commands provide only general performance indicators. Additional monitoring products are required. Multiple levels of monitoring is required: z/vm Performance ToolKit, Omegamon XE, Velocity ESAMON Linux for zseries systat package, top, rmf data gatherer, appldata, Velocity ESATCP Application Tivoli Performance Viewer, Wily Introscope, Sitraka Jprobe Capturing performance data as a base line is a must: General history data business as usual. Detailed raw monitor data prior to and following any major changes. Change management can be critical to avoiding or solving performance problems. 6

Tuning Your System There is an effect of diminishing returns from tuning efforts: Application design Application implementation Middleware Operating system Hipervisor App Design App Implementation Middleware Operating System Hipervisor Hardware Hardware 7

z/vm Best Practices 8

Maintenance Levels Recommend maintaining current service levels. Apply latest Recommended Service Upgrade (RSU): Released every 3-6 months. Contains cumulative service including all pre and co-requisites in a pre-built format. Includes service for all integrated components and the following pre-installed program products: DirMaint VM/RACF Performance ToolKit Available on tape, CD-Rom, or electronically. Includes service required by most customer installations and all closed HIPER and pervasive fixes available at the date of release. Pre-tested by development. Easy to install: SERVICE PUT2PROD 9

Memory Configuration Plan on a virtual to real (V:R) memory ratio in the range of 1.5:1 3:1. Recommend configuring some processor memory as expanded storage: Increases consistency of response time. See http://www.vm.ibm.com/perf/tips/storconf.html for gory details. Rule of Thumb - start with 25% of memory configured as expanded: Typically 2 4GB of expanded storage is sufficient. The lower the paging rate, the lower the amount of expanded storage required. The greater the number of page frames available in central storage above 2GB, the higher the amount of expanded storage required. 10

Paging Subsystem Plan for DASD page space utilization < 50%: Page space tends to get fragmented over time. Large contiguous free page space allows for greater block paging efficiency. Monitor usage with Q ALLOC PAGE command. Block page size is a key performance indicator: Aim for double digits 10 or more pages per block set. Performance Toolkit report DEV CPOWN (FCX109) Block Page Size field. Use multiple channels to spread out I/O to paging devices. Do not mix page space with any other space on a volume. Recommend using devices of the same size and geometry. Calculation guidelines are located in the CP Planning and Administration Manual. 11

Minidisk Cache z/vm minidisk cache is a write-through cache: Improves read I/O performance. But it s not free. Not recommended for: Memory constrained systems. Linux swap file disks. Default system settings are less than optimal. Recommended settings: Eliminate MDC in expanded storage. Limit MDC in central storage 10% is a good starting point. Monitor with Q MDC command and/or a performance monitor. 12

System Resource Management Settings Influence the z/vm scheduler and dispatcher behavior. Default values are an artifact from the past: Interactive CMS virtual machines. Small memory footprint. STORBUF Defines amount of memory to be used in scheduler algorithms. Recommend modification to over-commit central storage. Default values - STORBUF 120 105 95 Recommended starting values - STORBUF 300 250 200 LDUBUF Defines amount of paging capacity to be used in scheduler algorithms. There are conflicting opinions on a recommended setting: Default values - LDUBUF 100 75 60 Default values may be OK as a starting point depending on: Amount of DASD paging capacity defined. Number and size of active Linux guests. Workload characteristics. DSPBUF Defines number of guests allowed in the dispatch list. Default values - DSPBUF 32767 32767 32767 Not recommended to adjust these settings unless directed by defect support. 13

Quick Dispatch Setting QUICKDSP: Bypasses System Resource Management controls. Places a virtual machine directly into the dispatch list. Exempts a virtual machine from being held back in an eligible list. QUICKDSP should be reserved for: Select production guests only. Service Virtual Machines performing critical functions on behalf of other guests (i.e. RACF, TCPIP). SRM values should be used to adjust scheduler/dispatcher behavior. See http://www2.marist.edu/htbin/wlvtype?linux-vm.30359 for an excellent detailed explanation by Malcolm Beattie, of IBM UK. 14

Guest Privilege Classes Most Linux guests do not require anything more than privilege class G. Not a performance issue. More of a security issue: A privileged Linux guest could shutdown the z/vm system. A privileged Linux guest could compromise other guests or the entire z/vm system. Not limited to the VM 3215 Linux console session: Neale Ferguson's cpint package (hcp command) Linux vmcp command (October 2005 2.6 kernel stream) Recommend restricting privileges to the minimum required. 15

Processors Real Processors z/vm 5.1 and z/vm 5.2 support up to 24 processors. z/vm 5.3 supports up to 32 processors. LPAR recommendation no greater than a 4:1 logical to real ratio. Virtual Processors Various guest systems and workloads scale differently. Virtual Machine recommendation: Configure the number of virtual processors per guest for peak workload, but no more. Never define more virtual processors to a guest than logical processors defined to z/vm. High diagnose x 44 rates may be an indication of too many virtual processors. Performance Toolkit reports CPU (FCX100) or PRIVOP (FCX104) can be used to monitor diagnose rates. 16

System Dump & Spool Space Dump Space Ensure there is sufficient dump space defined to the system. Dump space requirements varies according to memory usage. Q DUMP identifies allocated dump space. Calculation guidelines are located in the CP Planning and Administration Manual. Spool Space Various uses: User printer, punch, reader files (console logs) DCSS, NSS System files Page space overflow Management: Monitor with Q ALLOC SPOOL command. SFPURGER utility: Rule based tool to clean up spool space. Included in the no charge CMS Utilities Feature (CUF). 17

Linux on zseries Best Practices 18

Kernel/Update Level Recommend using the most current distribution/version that has been tested and officially supports required middleware and/or application. Recommend maintaining current service via: YaST Online Update (YOU) RedHat Network (RHN) Distribution service updates include: Fixes Performance enhancements New function Kernel level identified by uname command. SuSE kernel and package levels can be identified with the SPident command. 19

Virtual Memory Sizing The most common mistake made by customers running Linux guests under z/vm is over-configuring Linux memory: In a dedicated server environment, traditional wisdom suggests installing as much memory as possible/feasible. Excess memory used as: I/O buffer File system cache In a virtualized environment under z/vm, oversized guests place unnecessary stress on the VM paging subsystem: Real memory is a shared resource, caching pages in a Linux guest reduces memory available to other Linux guests. Larger virtual memory requires more kernel memory for address space management. Rightsizing Linux memory requirements on z/vm: Is accomplished by trial and error. Monitored with the free command. See http://www.ibm.com/systems/z/os/linux/pdf/avmlinux.pdf for a detailed sizing document by Stephen Wehr, IBM. 20

On-Demand Timer Linux uses a timer tic based interrupt model. By default, the timer pops 100 times per second. Timer interrupts on idle Linux guests: Keep the guests in the dispatch list. Create unnecessary overhead for z/vm. All current supported zseries distributions include the jiffy timer patch and by default it is activated: Novell SLES9, SLES10 RedHat RHEL4, RHEL5 Query with the sysctl kernel.hz_timer command. sysctl -w kernel.hz_timer=1 enables the 100 Hz timer. The On- Demand Timer Patch is deactivated. sysctl -w kernel.hz_timer=0 disables the 100 Hz timer. The On- Demand Timer Patch is activated. 21

Swap Space The traditional recommendation in a dedicated server environment is that swap space should be twice the memory size of a Linux machine. This does not apply to a z/vm Linux guest: Some swap space should be defined to prevent Linux from hanging and/or a kernel panic during unexpected memory demands. Properly sized Linux guests should not swap or should have minimal swapping under normal load. z/vm offer multiple options for swap devices: Dedicated DASD Minidisk T-disk V-disk Expanded storage (XPRAM driver) Recommendation: One or two small V-disks (200-300MB). One medium sized minidisk or small dedicated volume (1-2G). Set priorities so that the V-disk(s) are used first. See http://www.redbooks.ibm.com/abstracts/sg246926.html?open for more details and test results for various swap device options. 22

Runlevel Similar to Microsoft Windows safe and command prompt only modes, Linux has different modes of operation or runlevels. When you boot Linux, it will initialize at a predefined default runlevel (this is usually 3 or 5). There are six different runlevels most Linux distributions use: 0 - Halt the system 1 - Single-user mode 2 - Multi-user mode (without networking) 3 - Multi-user mode 5 - Multi-user mode (display manager, GUI) 6 - Reboot the system Most desktop Linux systems boot into runlevel 5 by default and the user is presented with a graphical login prompt. Most server Linux systems boot into runlevel 3 by default and the user is presented with a text-mode login prompt. Recommend runlevel 3 for Linux guests of VM: X services consume system resources. Use a lightweight X-server like VNC server, instead of KDE/GNOME desktop. 23

Unnecessary Services/Applications There are a number of services in Linux that get started at boot, depending on: Distribution Version Software selection at installation Shutting down unnecessary services and applications helps to improve the overall performance of the system. Status of services can be queried/changed with the chkconfig command. The cron daemon is useful for scheduling events to be kicked off automatically at a specific time or at regular intervals. If the security package is selected during install, SuSE Linux configures its cron daemon to run seccheck daily, weekly, and monthly at midnight. Running many guests can cause high demand for cpu and stress the z/vm paging subsystem. Choices are to: Remove from cron Stager scheduled kick-off times 24

Disk Performance Hardware choices: FICON verses ESCON No comparison ESCON 17MB FICON available in 1Gb, 2Gb, and 4Gb channel speeds SCSI verses ECKD ECKD for z/vm and Linux / file system SCSI for application data and databases Maximize hardware performance: Configure maximum number of channel paths Spread disks over different ranks within a storage server Use logical volumes with striping Consider exploiting PAV References: http://www.vm.ibm.com/perf/reports/zvm/html/520lxd.html http://www.ibm.com/developerworks/linux/linux390/perf/tuning_more_dasd_o ptimizedisk.html 25

File Systems EXT2 - most widespread Linux file system. EXT3 - evolved from ext2, adds journaling features. JFS - a port of OS/2 Warp Server jfs to Linux. Reiserfs journaling behavior is comparable to ext3 in order mode. Recommend using ext3 because of its journaling capabilities and reduced cpu load compared to other journaling file systems. 26

Kernel I/O Scheduler The I/O scheduler optimizes disk access, the strategy for optimization aims to minimize the number of I/O operations and disk head movements. The Linux 2.6 kernel offers a choice of four different I/O schedulers: Noop Scheduler (noop) Deadline Scheduler (deadline) Anticipatory Scheduler (as) Complete Fair Queuing Scheduler (cfq) Linux default is the as scheduler: Designed to optimize access to physical disks. Not suitable for typical storage servers used in the zseries environment, like the IBM ESS. Both Novell and RedHat zseries distributions use the cfq scheduler by default. Selected by setting the elevator boot parameter in /etc/zipl.conf. Recommended I/O scheduler deadline scheduler. 27

Kernel I/O Scheduler Measurements Informix OLTP benchmark throughput relative to as Dbench throughput MB/sec Dbench throughput [MB/sec] I/O scheduler options 700 600 500 anticipatory 400 300 200 100 0 1 8 16 32 46 62 number of processes deadline noop cfq 28

Virtual Networking Best Practices 29

Networking Configuration Options Three basic strategies for external network connectivity: Dedicate OSA devices to Linux guests. Can complicate network configurations. Higher memory and cpu requirements. Attach OSA devices to a virtual router. Virtual router can be a bottleneck. Higher cpu requirements. Implement Virtual Switch (recommended). Administration benefits. Lower cpu costs. Layer 2 or Layer 3 switching. Link aggregation capabilities. Internal network connectivity: HiperSockets for LPAR-to-LPAR communications. References: z/vm Connectivity Manual - (SC24-6080) http://publibz.boulder.ibm.com/epubs/pdf/hcsc9b20.pdf Networking Overview for Linux on zseries Red paper http://www.redbooks.ibm.com/redpapers/abstracts/redp3901.html 30

References Web Sites http://www.vm.ibm.com/perf/ z/vm Performance Web Site http://www.ibm.com/developerworks/linux/linux390/perf/index.html Linux on zseries Performance Web Site Redbooks http://www.redbooks.ibm.com/ Linux on IBM @server zseries and S/390: Performance Toolkit for VM - (SG24-6059) Linux on IBM @server zseries and S/390: Performance Measurement and Tuning - (SG24-6926) z/vm Library http://www.vm.ibm.com/library/ z/vm Performance - (SC24-6109) z/vm V5R2 Performance Toolkit - (SC24-6136) z/vm V5R3 Performance Toolkit Guide - (SC24-6156) z/vm V5R3 Performance Toolkit Reference - (SC24-6157) 31