DB2 for LUW Performance: You ve got (frequently asked) questions, we ve got answers!
|
|
- Elizabeth Nicholson
- 5 years ago
- Views:
Transcription
1 DB2 for LUW Performance: You ve got (frequently asked) questions, we ve got answers! Steve Rees IBM Canada Ltd. Session Code: D11 Wednesday November 10, 13:30 Platform: Linux / Unix / Windows Abstract You might think that DB2 performance question you have is a new, never-before-seen one, but chances are, someone's been there before you - so why not take advantage of that, and find out what they did to solve it? Following on from previous 'performance FAQ' sessions, this year's edition will bring you a new set of common DB2 performance questions (and answers!), to help save you time, should these problems come your way. Topics will include how to optimize utility performance, what are the best uses in a DB2 system for solid-state disks, what kind of a performance boost can be expected from the latest CPU architectures like Power7, how much benefit to expect from LOB inlining, as well as the performance impact of HADR synchronization settings, IDENTITY caching, and more. 1
2 A smorgasbord of performance FAQs! We look at a broad assortment of performance topics Things that are important, but tend to get not that much coverage Good things to know in day-to-day administration & development work, in order to get the best performance out of your system For example -- Impact of the latest in system & storage infrastructure? Cost / benefit of new DB2 features? Impact of tuning and configuration decisions? As they say It Depends! There will often be factors in your environment that influence the answers to these questions All the same, these are backed up by real-world experience & tests in the lab, and are intended to help fill in some common gaps in performance knowledge. 2 Some of topics for this session - What's the best way to configure sort resources for best LOAD and CREATE INDEX performance? What kind of a performance boost can I expect to get from moving up to a new CPU architecture like Power7 or Intel Nehalem? Solid-state disks can provide amazing I/O performance. How do I use them, to get the most 'bang for the buck'? HADR supports three different synchronization levels. What kind of performance impact can I expect from each one? Why do VOLATILE tables still need statistics?
3 1. How much of a boost can I expect with Power7? Cores / socket Threads / core Max clock speed rperf / 8 cores Power GHz 65 Power GHz 92 Power7 reduces individual thread clock speed but significantly increases thread density per socket Similar trend in the overall industry e.g. Intel Nehalem 8-core For well-parallelized DB2 workloads, Power7 can give up to 15-25% improved per-core performance over Power6 Naturally, this amount is affected by the Power6 & Power7 clock speeds in question, and the degree to which the workload is CPU bound 3 Power6 rperf: 03.ibm.com/systems/power/hardware/570/perfdata.html Power7 rperf: 03.ibm.com/systems/power/hardware/750/perfdata.html 3
4 #1 A tip for large (64+ thread) Power7 systems It can be a good idea to set NUM_IOCLEANERS (number of page cleaners, and number of castout engines in purescale) to the number of cores, rather than using AUTOMATIC and having it set based on the number of threads Very large numbers of threads can introduce contention and decrease efficiency in page cleaning Note applies to Nehalem and other highly-scaled (many-cored) architectures as well 4 4
5 2. Where / how / why should I use solid-state disks (SSDs) with DB2? SSDs offer an extremely high performance alternative to regular spinning disks Per-disk measurements Random I/Os / second Random I/O latency Sequential I/O throughput Spinning disks Up to ms Up to 100 MB/s Solid-state disks Up to 30,000 1 ms Up to 250 MB/s SSDs have the greatest benefit when used for highly random I/O Lab tests show up to a 10x improvement in system throughput in OLTP systems with broad use of SSDs What about log devices? Even though they are (small-write) sequential, they benefit greatly from low latency. Well worth considering! What about data warehousing? Again very useful for hot data, and especially temporary tablespaces 5 5
6 3. Do temporary tablespaces need their own bufferpool? Temp tablespaces breathe their data in and out Intermediate results from queries User temp tables Sorts Hash joins A good rule of thumb prior to 9.7 Data Warehouses don t typically benefit all that much from a separate temp bufferpool due to large temps and deep breaths This may also avoids the necessity of configuring & tuning another bufferpool But the smaller the temporary objects are and the more frequently that they come & go, the more benefit a separate bufferpool might provide 6 6
7 Do temporary tablespaces need their own bufferpool? When a temp object is dropped, all pages must be purged from the bufferpool Bufferpool pages to purge are found by either 1. Scanning the bufferpool dirty lists Very efficient for large temps, and small and/or mostly clean bufferpools Much less efficient for frequently dropped small temps in large and/or heavily dirty bufferpools 2. (New in DB2 9.7) Hashing to the BP page Done for small temps (size < 10% of dirty list size) Major improvement for small frequent temp creation/destruction! Applies to both SMS and DMS temps A separate temp BP may still help, but the need is much reduced, compared to previous versions #3 7 7
8 4. How much impact can I expect from enabling CURRENTLY COMMITTED? Prior to 9.7, CURSOR STABILITY (CS) applications could potentially block when trying to read a row that was locked for update by another application Updater has X lock, reader blocks & waits to get S lock Lock wait could be partly alleviated with registry variables like EVALUNCOMMITTED, SKIPINSERTED, SKIPDELETED - but this changes the semantics somewhat In 9.7, CURRENTLY COMMITTED (CC) allows readers to avoid the lock by providing them with the last committed value for the row 8 8
9 How much impact can I expect from enabling CURRENTLY COMMITTED? #4 Row R Zzzzz Row R A 1 A1 updates row R to R A 2 A 1 Row R Row R A2 now blocked until A1 commits, then gets R A1 updates row R to R A 2 A2 gets the committed value of row R Without CURRENTLY COMMITTED With CURRENTLY COMMITTED 9 9
10 How much impact can I expect from enabling CURRENTLY COMMITTED? #4 When is CC most likely to help? Applications showing significant reader/writer lock wait time Applications migrated from other database systems often benefit substantially from CC Workloads with fairly heavy reader/writer contention will generally show a 5-10% boost Lab tests showed up to a 20% decrease in lock wait, and a 28% increase in throughput with CC (your results may vary!) Tip a large log buffer size (LOGBUFSZ) helps CC find the committed version in memory, vs. reading from a log file Tip you can see CC activity via db2pd -locks Cur Commit Disk Log Reads 1771 Cur Commit Total Log Reads The default value for LOGBUFSZ has increased to 256 pages in 9.7, but for use with CC, a larger value is generally advised (e.g or 4096) 10
11 5. How much benefit does LOB inlining provide? Two important (& well-known) facts 1. LOBs don t live in the bufferpool they are read/written directly to disk by the agents, which can be much slower 2. LOB content frequently isn t all that big a few KB or less LOB inlining in DB2 9.7 exploits #2 to help reduce #1 Selectable on CREATE TABLE when LOB columns are present If LOB content of a row is small enough to fit in the inline area *, it is stored there, and no external LOB storage is required for that row Exploits the bufferpool to avoid separate reads & writes Compresses with the rest of the row data Decided on a row-by-row, LOB-by-LOB basis * Basically the page size, minus the size of the non-lob portion of the row 11 11
12 First will LOB inlining impact your table at all? How big are you willing to grow your rows? Adding inline LOBs grows row size NB increases footprint in the bufferpool E.g. maybe 1-3k for a 4k page, or 7k for an 8k page, etc.? Determine how many LOBs are within that range select count(*) from T where len(<lob_col>) <= <max desired inline size> #5 Potential caveats to be aware of Bufferpool consumption will increase due to larger rows All inlined LOBs are logged If LOB data is accessed very infrequently, it might be better left uninlined 12 12
13 #5 A tiny example of LOB inlining impact Transactional application, ~16 GB database size 4k page size, 1.5M page BP One CLOB(5000) column, average length 1300 bytes, updated in 40% of transactions Inline amount Tx / s BP data h/r Direct IO time/tx 0 bytes No LOBs inlined % 36 ms/tx 700 bytes 25% of my LOBs inlined % 3.5 ms/tx 1300 bytes 50% inlined % 2.4 ms/tx 1900 bytes 75% inlined % 1.4 ms/tx 2500 bytes All of my LOBs inlined % 0.32 ms/tx 13 13
14 6. What is non-buffered log I/O? Writes to the transaction log need to be hardened to disk WRITETHRU adds some performance overhead, but it s required for reliability Prior to 9.7, log I/O was buffered in the filesystem cache Provided quicker log reads for large rollbacks, recovery, etc. But also added some overhead to basic log write applications DB2_LOGGER_NON_BUFFERED_IO was added in 9.5 fp1 Defaulted OFF as in, No, I do not want unbuffered I/O (?!?) In 9.7 FP1, the default changes to AUTOMATIC ON: use unbuffered I/O for all log files AUTOMATIC: use unbuffered I/O for just the active log file, and buffered I/O for the inactive logs 14 14
15 #6 What is non-buffered log I/O? The new default can provide a small performance boost in heavy INSERT / UPDATE / DELETE systems Tip: make sure LOGBUFSZ is 1024 or larger to minimize the possibility of a degradation in ROLLBACK performance 15 15
16 7. How much benefit does caching have for IDENTITY columns and SEQUENCEs? IDENTITY / SEQUENCE give clean, robust mechanisms to obtain unique (generally ascending) values Frequently used to generate primary keys, etc. create table t (c1 int, c2 int not null generated always as identity (cache 20) ) A single SEQUENCE can be shared across multiple tables Otherwise they are very similar in behavior & implementation Caching enables a tradeoff between strict behavior and performance but how much? 16 16
17 Caching for IDENTITY columns and SEQUENCEs #7 In-memory cache Get next value 4,5,6,7,8,9 Quick, in-memory access 7 out of 8 times Get next value 4,5,6 With no caching, incur expensive log & catalog operations every time Log write & catalog access are expensive,but only happen 1 out of 8 times Log Catalog CREATE TABLE (CACHE 8) 1,2,3,4, ,6 Log Catalog CREATE TABLE (NO CACHE) 17 17
18 #7 Sample IDENTITY / SEQUENCE caching impacts ODBC transactional application on DB2 9.7 EE About 1800 tps overall when run w/o IDENTITY column 15% of transactions insert into table with IDENTITY column IDENTITY CACHE size (default) 5 2 No caching % overhead relative to no IDENTITY column 0 0 ~1% ~5% ~20% Impact of SEQUENCE caching is the same as for IDENTITY 18 18
19 #7 Other factors that affect ID / SEQ performance 1. The frequency that new values are obtained Greater insert rate means more potential overhead from the use of IDENTITY & SEQUENCE, and more benefit from increased caching 2. The system architecture Caching on DPF and purescale is even more important to good performance than on EE Obtaining the next value (or next cache of values) in DPF/pS requires a network flow to the catalog node Optimal DPF cache sizes are often much larger than the default some tuning is recommended 19 19
20 8. How much overhead will log mirroring add? Log mirroring provides an extra level of reliability against corruption, accidental log deletion, etc. DB2 overlaps primary & mirror log writes for better performance 2. Non-buffered ( writethru ) write to primary path DB2 Log Writer db2loggw 3. Flush the mirror write to disk Primary Log Path 1. Buffered write to mirror path Mirror Log Path 20 20
21 #8 Possible sources of overhead with log mirroring Increased pathlength (fairly small cost) Time to start & flush mirror path write (dominates) This is included in log write time and log wait time monitor metrics Contention between primary & mirror log writes Can be minimized by ensuring the paths don t overlap at any level - filesystem, logical volume, physical disk, etc. ** this is obviously important to maximize fault tolerance, too! Extra overhead can be more prominent in the presence of high INSERT / UPDATE / DELETE rates in the workload 21 21
22 Some lab measurements of log mirroring impact Sample data from the lab Medium-heavy OLTP test workload 7000 tps, 80% read / 20% write 16-way Power6, AIX 6, DB2 v97 fp2 DS4700 SAN controller, 96 disks #8 Conditions With good placement - Separate disk spindles With very poor placement - On the same spindles as the primary log TPS drop ~ 5-7 % ~ % 22 22
23 9. Why do VOLATILE tables still need statistics? The VOLATILE keyword indicates that the volume of data in a table can vary substantially, and biases plan selection toward indexes and away from tablescans 1. Index-only access is favored most strongly 2. Indexes which satisfy the predicates come next 3. List prefetch plans are never chosen Volatile can be very helpful when DB2 thinks (i.e., the latest statistics, if there are any, show) that the table is empty when actually it might have several thousand rows 23 23
24 #9 Why do VOLATILE tables still need statistics? VOLATILE is not magic What if there are multiple indexes that apply? What if it s used in a complicated query that depends on more than just avoiding a tablescan? Good statistics (even on VOLATILE tables) are still the best way to ensure a good plan & good performance Tip collect statistics on VOLATILE tables when there are a reasonable number of rows present And don t forget run-time statistics (a.k.a automatic RUNSTATS) will skip VOLATILE tables 24 24
25 10. How does sort heap affect LOAD performance? When loading data with indexes defined, SORTHEAP and SHEAPTHRES_SHR have a big impact on performance If N indexes are defined, LOAD starts N concurrent sorts Reaction to slow index creation in LOAD is often to just increase SORTHEAP not always a good idea Input File Media Reader db2lmr shmem Formatter Formatter db2lfrm Formatter db2lfrm Formatter db2lfrm Formatter db2lfrm Formatter db2lfrm Formatter db2lfrm Formatter db2lfrm db2lfrm shmem The Ridder handles sorting keys for index building in LOAD Ridder db2lrid shmem Simplified LOAD architecture Buffer Manipulator db2lbm Container Container Container 25
26 SORTHEAP & SHEAPTHRES_SHR The ratio of SHEAPTHRES_SHR & SORTHEAP should reflects the number of large concurrent sorts anticipated in the system SHEAPTHRES_SHR in 4k pages #10 Sort I Sort J Sort K Sort L Sort M Allocates full SORTHEAP Needs < full SORTHEAP Needs < full SORTHEAP Allocates full SORTHEAP Needs < full SORTHEAP SORTHEAP in 4k pages Sub-optimal case: ratio doesn t reflect number of large concurrent sorts in the system SHEAPTHRES_SHR in 4k pages Unused sort storage headroom within max defined by SHEAPTHRES_SHR Sorts at or near SHEAPTHRES_SHR may not get the sort memory they need Sort I Allocates full SORTHEAP Sort J Needs < full SORTHEAP but gets less than that Sort K Getting less than it needs Sort L Sort M SORTHEAP in 4k pages Overflow beyond SHEAPTHRES_SHR 26
27 Sort: Efficient vs. inefficient merges Good ratio good load performance 2, 3, 4, 5, Tournament tree 2, 3, 4, 5, 5 Ratio too low poor performance # : : : : Temp bufferpool Sort runs few, large spills to merge 1 pass required spills are large enough to prefetch simple tournament tree.. many tiny spills to merge up to 256,000 in pathological cases 2 passes required spills are too small to prefetch large, deep tournament tree extra pass, deeper tree & lack of prefetching can cause 1. Longer run time 2. Higher logical & physical reads 27
28 POOR-SORT-itis: Recognizing the problem if it happens Main symptoms Periodic very long LOAD / CREATE INDEX / sort durations Sort overflows counts # of spilled sorts, not # of times a sort spilled so not helpful as a diagnostic High sort time reported in monitors Many small I/Os on temp tablespace In worst case, not prefetched (synchronous vs asynchronous reads) For in-flight sorts, db2pd db <dbname> -sort reports the number and size of sort runs A large number of small sort runs indicates either a very small sortheap, or exhaustion of SHEAPTHRES_SHR #
29 11. What s the runtime performance impact of HADR? HADR provides disaster recovery support by shipping log records from a primary system to a standby system, where they are applied against another copy of the database SYNC mode t S Primary Log disk Standby Log disk Write primary log, then wait until standby log write finishes NEARSYNC mode (default) t N Primary Log disk Standby Log disk Send log record to standby, get ACK, then write primary log ASYNC mode t A Primary Log disk Standby Log disk Send log record to standby, then write primary log 29 29
30 What s the runtime performance impact of HADR? Relative performance of ASYNC vs NEARSYNC vs SYNC Generally: ASYNC is faster than NEARSYNC, faster than SYNC and obviously impacted by the workload The difference between ASYNC & NEARSYNC is largely determined by the link distance & speed between primary & standby The faster the link (e.g. for HA configurations over high-speed LAN), the smaller the difference. The difference between NEARSYNC & SYNC is largely determined by logging performance on the secondary The faster the log infrastructure, the smaller the difference In low-latency HA environments, SYNC can often be as fast as NEARSYNC! #
31 What s the runtime performance impact of HADR? Some other factors affecting HADR runtime performance Anything driving more log traffic (e.g. INS / UPD / DEL) causes more trips to the standby node If a shared network infrastructure is used, watch out for other traffic potentially causing a bottleneck in the link to the standby node Make sure the standby node has an adequate log disk infrastructure Quick write response time under load means faster response time back to the primary in SYNC mode, and a smaller DR exposure of unflushed records in ASYNC and NEARSYNC modes Rough rule-of-thumb: 5-15%, depending on a number of things Workload Distance between primary & standby Infrastructure Can be higher in extreme cases. #
32 Sample Lab measurements of HADR overhead Medium-heavy OLTP test workload 2600 tps, 80% read / 20% write Primary: 16-way Power6, AIX 6, DB2 v97 fp2, DS4700 SAN Secondary: 8-way Power6, AIX 6, DB2 v97 fp2, DS4700 SAN 1 Gb Ethernet interconnect #11 Mode SYNC mode NEARSYNC mode ASYNC mode TPS reduction ~9% ~7% ~6% 32 32
33 A quick review of our FAQs - Power 7 impact? Where to use SSDs? Dedicated BP for temporary tablespaces? How much boost from CURRENTLY COMMITTED? How much boost from LOB inlining? Non-buffered log I/O? Caching for IDENTITY and SEQUENCE? Overhead due to log mirroring? VOLATILE tables and statistics? SORTHEAP and Load? Overhead of HADR? What are your FAQs? 33 33
34 Steve Rees IBM Canada Ltd. srees at ca.ibm.com Session D11 DB2 for LUW Performance: You ve got (frequently asked) questions, we ve got answers! 34
IBM DB2 LUW Performance Tuning and Monitoring for Single and Multiple Partition DBs
IBM DB2 LUW Performance Tuning and Monitoring for Single and Multiple Partition DBs Day(s): 5 Course Code: CL442G Overview Learn how to tune for optimum the IBM DB2 9 for Linux, UNIX, and Windows relational
More informationD09 Repeated in D15 DB2 Autonomics: Implementation and Exploitation
D09 Repeated in D15 DB2 Autonomics: Implementation and Exploitation Philip K. Gunning Gunning Technology Solutions, LLC 4 Oct 2006 11:00 a.m. 12:00 p.m. Repeated 5 Oct 2006, 10:30 a.m. 11:30 a.m. Platform:
More informationDB2 Performance Essentials
DB2 Performance Essentials Philip K. Gunning Certified Advanced DB2 Expert Consultant, Lecturer, Author DISCLAIMER This material references numerous hardware and software products by their trade names.
More informationBest Practices. Deploying Optim Performance Manager in large scale environments. IBM Optim Performance Manager Extended Edition V4.1.0.
IBM Optim Performance Manager Extended Edition V4.1.0.1 Best Practices Deploying Optim Performance Manager in large scale environments Ute Baumbach (bmb@de.ibm.com) Optim Performance Manager Development
More informationExploring Memory in DB2 9.5 and Beyond
Exploring Memory in DB2 9.5 and Beyond Michael Cornish, Senior Software Analyst Advanced Problem Diagnostics Team IBM Toronto Lab mcornish@ca.ibm.com 2009 IBM Corporation TOPICS Memory Architecture Changes
More informationL9: Storage Manager Physical Data Organization
L9: Storage Manager Physical Data Organization Disks and files Record and file organization Indexing Tree-based index: B+-tree Hash-based index c.f. Fig 1.3 in [RG] and Fig 2.3 in [EN] Functional Components
More informationTime Breakdowns A novel way to analyze performance Problems
Time Breakdowns A novel way to analyze performance Problems Roy Cecil IBM Session Code: 3 16 April 2014 Platform: LUW 2 Agenda Introduction Amdahl's law Time Breakdowns Examples Bottlenecks & Little law
More informationOptimizing RDM Server Performance
TECHNICAL WHITE PAPER Optimizing RDM Server Performance A Raima Inc. Technical Whitepaper Published: August, 2008 Author: Paul Johnson Director of Marketing Copyright: Raima Inc., All rights reserved Abstract
More informationPerformance Tuning for MDM Hub for IBM DB2
Performance Tuning for MDM Hub for IBM DB2 2012 Informatica Corporation. No part of this document may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording or otherwise)
More informationMySQL Performance Optimization and Troubleshooting with PMM. Peter Zaitsev, CEO, Percona
MySQL Performance Optimization and Troubleshooting with PMM Peter Zaitsev, CEO, Percona In the Presentation Practical approach to deal with some of the common MySQL Issues 2 Assumptions You re looking
More informationDeep Dive Into Storage Optimization When And How To Use Adaptive Compression. Thomas Fanghaenel IBM Bill Minor IBM
Deep Dive Into Storage Optimization When And How To Use Adaptive Compression Thomas Fanghaenel IBM Bill Minor IBM Agenda Recap: Compression in DB2 9 for Linux, Unix and Windows New in DB2 10 for Linux,
More informationLesson 4 Transcript: DB2 Architecture
Lesson 4 Transcript: DB2 Architecture Slide 1: Cover Welcome to Lesson 4 of the DB2 on campus series. Today we are going to talk about the DB2 architecture. My name is Raul Chong and I am the DB2 on Campus
More informationI/O CANNOT BE IGNORED
LECTURE 13 I/O I/O CANNOT BE IGNORED Assume a program requires 100 seconds, 90 seconds for main memory, 10 seconds for I/O. Assume main memory access improves by ~10% per year and I/O remains the same.
More informationIBM Tivoli Storage Manager for Windows Version Installation Guide IBM
IBM Tivoli Storage Manager for Windows Version 7.1.8 Installation Guide IBM IBM Tivoli Storage Manager for Windows Version 7.1.8 Installation Guide IBM Note: Before you use this information and the product
More informationThe Role of Database Aware Flash Technologies in Accelerating Mission- Critical Databases
The Role of Database Aware Flash Technologies in Accelerating Mission- Critical Databases Gurmeet Goindi Principal Product Manager Oracle Flash Memory Summit 2013 Santa Clara, CA 1 Agenda Relational Database
More information1 of 8 14/12/2013 11:51 Tuning long-running processes Contents 1. Reduce the database size 2. Balancing the hardware resources 3. Specifying initial DB2 database settings 4. Specifying initial Oracle database
More informationHow Viper2 Can Help You!
How Viper2 Can Help You! December 6, 2007 Matt Emmerton DB2 Performance and Solutions Development IBM Toronto Laboratory memmerto@ca.ibm.com How Can Viper2 Help DBAs? By putting intelligence and automation
More informationWhat Developers must know about DB2 for z/os indexes
CRISTIAN MOLARO CRISTIAN@MOLARO.BE What Developers must know about DB2 for z/os indexes Mardi 22 novembre 2016 Tour Europlaza, Paris-La Défense What Developers must know about DB2 for z/os indexes Introduction
More informationDisks, Memories & Buffer Management
Disks, Memories & Buffer Management The two offices of memory are collection and distribution. - Samuel Johnson CS3223 - Storage 1 What does a DBMS Store? Relations Actual data Indexes Data structures
More informationThe Google File System
October 13, 2010 Based on: S. Ghemawat, H. Gobioff, and S.-T. Leung: The Google file system, in Proceedings ACM SOSP 2003, Lake George, NY, USA, October 2003. 1 Assumptions Interface Architecture Single
More informationAn A-Z of System Performance for DB2 for z/os
Phil Grainger, Lead Product Manager BMC Software March, 2016 An A-Z of System Performance for DB2 for z/os The Challenge Simplistically, DB2 will be doing one (and only one) of the following at any one
More informationDB2 HADR Performance Tuning
IBM Software Group DB2 HADR Performance Tuning IBM DB2 Beaverton Lab Yuke Zhuge zhuge@us.ibm.com Mar. 2014 Blue Pearl Format 1 HADR Overview Replication is done by log shipping Whole database is replicated
More informationMySQL Database Scalability
MySQL Database Scalability Nextcloud Conference 2016 TU Berlin Oli Sennhauser Senior MySQL Consultant at FromDual GmbH oli.sennhauser@fromdual.com 1 / 14 About FromDual GmbH Support Consulting remote-dba
More informationRdb features for high performance application
Rdb features for high performance application Philippe Vigier Oracle New England Development Center Copyright 2001, 2003 Oracle Corporation Oracle Rdb Buffer Management 1 Use Global Buffers Use Fast Commit
More informationPROCESS VIRTUAL MEMORY. CS124 Operating Systems Winter , Lecture 18
PROCESS VIRTUAL MEMORY CS124 Operating Systems Winter 2015-2016, Lecture 18 2 Programs and Memory Programs perform many interactions with memory Accessing variables stored at specific memory locations
More informationCS24: INTRODUCTION TO COMPUTING SYSTEMS. Spring 2014 Lecture 14
CS24: INTRODUCTION TO COMPUTING SYSTEMS Spring 2014 Lecture 14 LAST TIME! Examined several memory technologies: SRAM volatile memory cells built from transistors! Fast to use, larger memory cells (6+ transistors
More informationIBM MQ Appliance HA and DR Performance Report Model: M2001 Version 3.0 September 2018
IBM MQ Appliance HA and DR Performance Report Model: M2001 Version 3.0 September 2018 Sam Massey IBM MQ Performance IBM UK Laboratories Hursley Park Winchester Hampshire 1 Notices Please take Note! Before
More informationThe Right Read Optimization is Actually Write Optimization. Leif Walsh
The Right Read Optimization is Actually Write Optimization Leif Walsh leif@tokutek.com The Right Read Optimization is Write Optimization Situation: I have some data. I want to learn things about the world,
More informationIBM Education Assistance for z/os V2R2
IBM Education Assistance for z/os V2R2 Item: RSM Scalability Element/Component: Real Storage Manager Material current as of May 2015 IBM Presentation Template Full Version Agenda Trademarks Presentation
More informationCA Unified Infrastructure Management Snap
CA Unified Infrastructure Management Snap Configuration Guide for DB2 Database Monitoring db2 v4.0 series Copyright Notice This online help system (the "System") is for your informational purposes only
More informationPresentation Abstract
Presentation Abstract From the beginning of DB2, application performance has always been a key concern. There will always be more developers than DBAs, and even as hardware cost go down, people costs have
More informationColumn Stores vs. Row Stores How Different Are They Really?
Column Stores vs. Row Stores How Different Are They Really? Daniel J. Abadi (Yale) Samuel R. Madden (MIT) Nabil Hachem (AvantGarde) Presented By : Kanika Nagpal OUTLINE Introduction Motivation Background
More informationIBM InfoSphere Streams v4.0 Performance Best Practices
Henry May IBM InfoSphere Streams v4.0 Performance Best Practices Abstract Streams v4.0 introduces powerful high availability features. Leveraging these requires careful consideration of performance related
More informationTable Compression in Oracle9i Release2. An Oracle White Paper May 2002
Table Compression in Oracle9i Release2 An Oracle White Paper May 2002 Table Compression in Oracle9i Release2 Executive Overview...3 Introduction...3 How It works...3 What can be compressed...4 Cost and
More informationIBM V7000 Unified R1.4.2 Asynchronous Replication Performance Reference Guide
V7 Unified Asynchronous Replication Performance Reference Guide IBM V7 Unified R1.4.2 Asynchronous Replication Performance Reference Guide Document Version 1. SONAS / V7 Unified Asynchronous Replication
More informationGreat Reality #2: You ve Got to Know Assembly Does not generate random values Arithmetic operations have important mathematical properties
Overview Course Overview Course theme Five realities Computer Systems 1 2 Course Theme: Abstraction Is Good But Don t Forget Reality Most CS courses emphasize abstraction Abstract data types Asymptotic
More informationI/O CANNOT BE IGNORED
LECTURE 13 I/O I/O CANNOT BE IGNORED Assume a program requires 100 seconds, 90 seconds for main memory, 10 seconds for I/O. Assume main memory access improves by ~10% per year and I/O remains the same.
More informationUsing Transparent Compression to Improve SSD-based I/O Caches
Using Transparent Compression to Improve SSD-based I/O Caches Thanos Makatos, Yannis Klonatos, Manolis Marazakis, Michail D. Flouris, and Angelos Bilas {mcatos,klonatos,maraz,flouris,bilas}@ics.forth.gr
More informationExadata X3 in action: Measuring Smart Scan efficiency with AWR. Franck Pachot Senior Consultant
Exadata X3 in action: Measuring Smart Scan efficiency with AWR Franck Pachot Senior Consultant 16 March 2013 1 Exadata X3 in action: Measuring Smart Scan efficiency with AWR Exadata comes with new statistics
More informationSTORING DATA: DISK AND FILES
STORING DATA: DISK AND FILES CS 564- Spring 2018 ACKs: Dan Suciu, Jignesh Patel, AnHai Doan WHAT IS THIS LECTURE ABOUT? How does a DBMS store data? disk, SSD, main memory The Buffer manager controls how
More informationCS 31: Intro to Systems Virtual Memory. Kevin Webb Swarthmore College November 15, 2018
CS 31: Intro to Systems Virtual Memory Kevin Webb Swarthmore College November 15, 2018 Reading Quiz Memory Abstraction goal: make every process think it has the same memory layout. MUCH simpler for compiler
More informationPerformance 101 for DB2 for LUW
Performance 101 for DB2 for LUW A PDF of these slides can be downloaded from: ibm.com/developerworks/data/events/idmbriefings.html Jeff M. Sullivan DB2 on LUW and DB2 on z/os I.T. Specialist Optim Technical
More informationMySQL Performance Optimization and Troubleshooting with PMM. Peter Zaitsev, CEO, Percona Percona Technical Webinars 9 May 2018
MySQL Performance Optimization and Troubleshooting with PMM Peter Zaitsev, CEO, Percona Percona Technical Webinars 9 May 2018 Few words about Percona Monitoring and Management (PMM) 100% Free, Open Source
More informationVirtual Memory. Reading. Sections 5.4, 5.5, 5.6, 5.8, 5.10 (2) Lecture notes from MKP and S. Yalamanchili
Virtual Memory Lecture notes from MKP and S. Yalamanchili Sections 5.4, 5.5, 5.6, 5.8, 5.10 Reading (2) 1 The Memory Hierarchy ALU registers Cache Memory Memory Memory Managed by the compiler Memory Managed
More informationKathleen Durant PhD Northeastern University CS Indexes
Kathleen Durant PhD Northeastern University CS 3200 Indexes Outline for the day Index definition Types of indexes B+ trees ISAM Hash index Choosing indexed fields Indexes in InnoDB 2 Indexes A typical
More informationTuning DBM and DB Configuration Parameters
DB2 for Linux, UNIX, Windows Tuning DBM and DB Configuration Parameters Philip K. Gunning DB2 Master Practitioner Gunning Technology Solutions, LLC 21 September 2005 DB2 is a registered trademark of IBM
More informationDatabase Architecture 2 & Storage. Instructor: Matei Zaharia cs245.stanford.edu
Database Architecture 2 & Storage Instructor: Matei Zaharia cs245.stanford.edu Summary from Last Time System R mostly matched the architecture of a modern RDBMS» SQL» Many storage & access methods» Cost-based
More informationDATABASE PERFORMANCE AND INDEXES. CS121: Relational Databases Fall 2017 Lecture 11
DATABASE PERFORMANCE AND INDEXES CS121: Relational Databases Fall 2017 Lecture 11 Database Performance 2 Many situations where query performance needs to be improved e.g. as data size grows, query performance
More informationAn Oracle White Paper June Exadata Hybrid Columnar Compression (EHCC)
An Oracle White Paper June 2011 (EHCC) Introduction... 3 : Technology Overview... 4 Warehouse Compression... 6 Archive Compression... 7 Conclusion... 9 Introduction enables the highest levels of data compression
More informationCSE 544: Principles of Database Systems
CSE 544: Principles of Database Systems Anatomy of a DBMS, Parallel Databases 1 Announcements Lecture on Thursday, May 2nd: Moved to 9am-10:30am, CSE 403 Paper reviews: Anatomy paper was due yesterday;
More informationInline LOBs (Large Objects)
Inline LOBs (Large Objects) Jeffrey Berger Senior Software Engineer DB2 Performance Evaluation bergerja@us.ibm.com Disclaimer/Trademarks THE INFORMATION CONTAINED IN THIS DOCUMENT HAS NOT BEEN SUBMITTED
More informationStorage Optimization with Oracle Database 11g
Storage Optimization with Oracle Database 11g Terabytes of Data Reduce Storage Costs by Factor of 10x Data Growth Continues to Outpace Budget Growth Rate of Database Growth 1000 800 600 400 200 1998 2000
More informationBest Practices for Setting BIOS Parameters for Performance
White Paper Best Practices for Setting BIOS Parameters for Performance Cisco UCS E5-based M3 Servers May 2013 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page
More informationAn Oracle White Paper October Advanced Compression with Oracle Database 11g
An Oracle White Paper October 2011 Advanced Compression with Oracle Database 11g Oracle White Paper Advanced Compression with Oracle Database 11g Introduction... 3 Oracle Advanced Compression... 4 Compression
More informationPersistent Storage - Datastructures and Algorithms
Persistent Storage - Datastructures and Algorithms 1 / 21 L 03: Virtual Memory and Caches 2 / 21 Questions How to access data, when sequential access is too slow? Direct access (random access) file, how
More informationUser Perspective. Module III: System Perspective. Module III: Topics Covered. Module III Overview of Storage Structures, QP, and TM
Module III Overview of Storage Structures, QP, and TM Sharma Chakravarthy UT Arlington sharma@cse.uta.edu http://www2.uta.edu/sharma base Management Systems: Sharma Chakravarthy Module I Requirements analysis
More informationEvaluation Report: Improving SQL Server Database Performance with Dot Hill AssuredSAN 4824 Flash Upgrades
Evaluation Report: Improving SQL Server Database Performance with Dot Hill AssuredSAN 4824 Flash Upgrades Evaluation report prepared under contract with Dot Hill August 2015 Executive Summary Solid state
More informationMAINVIEW Batch Optimizer. Data Accelerator Andy Andrews
MAINVIEW Batch Optimizer Data Accelerator Andy Andrews Can I push more workload through my existing hardware configuration? Batch window problems can often be reduced down to two basic problems:! Increasing
More informationFAWN as a Service. 1 Introduction. Jintian Liang CS244B December 13, 2017
Liang 1 Jintian Liang CS244B December 13, 2017 1 Introduction FAWN as a Service FAWN, an acronym for Fast Array of Wimpy Nodes, is a distributed cluster of inexpensive nodes designed to give users a view
More informationPAGE REPLACEMENT. Operating Systems 2015 Spring by Euiseong Seo
PAGE REPLACEMENT Operating Systems 2015 Spring by Euiseong Seo Today s Topics What if the physical memory becomes full? Page replacement algorithms How to manage memory among competing processes? Advanced
More informationThe Google File System
The Google File System Sanjay Ghemawat, Howard Gobioff and Shun Tak Leung Google* Shivesh Kumar Sharma fl4164@wayne.edu Fall 2015 004395771 Overview Google file system is a scalable distributed file system
More informationZBD: Using Transparent Compression at the Block Level to Increase Storage Space Efficiency
ZBD: Using Transparent Compression at the Block Level to Increase Storage Space Efficiency Thanos Makatos, Yannis Klonatos, Manolis Marazakis, Michail D. Flouris, and Angelos Bilas {mcatos,klonatos,maraz,flouris,bilas}@ics.forth.gr
More informationCPSC 421 Database Management Systems. Lecture 11: Storage and File Organization
CPSC 421 Database Management Systems Lecture 11: Storage and File Organization * Some material adapted from R. Ramakrishnan, L. Delcambre, and B. Ludaescher Today s Agenda Start on Database Internals:
More informationIBM Tivoli Storage Manager for HP-UX Version Installation Guide IBM
IBM Tivoli Storage Manager for HP-UX Version 7.1.4 Installation Guide IBM IBM Tivoli Storage Manager for HP-UX Version 7.1.4 Installation Guide IBM Note: Before you use this information and the product
More informationCS5460: Operating Systems Lecture 20: File System Reliability
CS5460: Operating Systems Lecture 20: File System Reliability File System Optimizations Modern Historic Technique Disk buffer cache Aggregated disk I/O Prefetching Disk head scheduling Disk interleaving
More informationDB2 9.7 Advanced DBA for LUW
000 544 DB2 9.7 Advanced DBA for LUW Version 3.5 QUESTION NO: 1 An employee is not able to connect to the PRODDB database using the correct user ID and password. The TCP/IP protocol is running normally;
More informationDatabase Systems. November 2, 2011 Lecture #7. topobo (mit)
Database Systems November 2, 2011 Lecture #7 1 topobo (mit) 1 Announcement Assignment #2 due today Assignment #3 out today & due on 11/16. Midterm exam in class next week. Cover Chapters 1, 2,
More informationB.H.GARDI COLLEGE OF ENGINEERING & TECHNOLOGY (MCA Dept.) Parallel Database Database Management System - 2
Introduction :- Today single CPU based architecture is not capable enough for the modern database that are required to handle more demanding and complex requirements of the users, for example, high performance,
More informationSession: Oracle RAC vs DB2 LUW purescale. Udo Brede Quest Software. 22 nd November :30 Platform: DB2 LUW
Session: Oracle RAC vs DB2 LUW purescale Udo Brede Quest Software 22 nd November 2011 10:30 Platform: DB2 LUW 1 Agenda Marketing Message Clustering/Scalability Technology Overview Basic Components Available
More informationMultidimensional Clustering (MDC) Tables in DB2 LUW. DB2Night Show. January 14, 2011
Multidimensional Clustering (MDC) Tables in DB2 LUW DB2Night Show January 14, 2011 Pat Bates, IBM Technical Sales Professional, Data Warehousing Paul Zikopoulos, Director, IBM Information Management Client
More informationOptimizing MySQL performance with ZFS. Neelakanth Nadgir Allan Packer Sun Microsystems
Optimizing MySQL performance with ZFS Neelakanth Nadgir Allan Packer Sun Microsystems Who are we? Allan Packer Principal Engineer, Performance http://blogs.sun.com/allanp Neelakanth Nadgir Senior Engineer,
More informationCS3600 SYSTEMS AND NETWORKS
CS3600 SYSTEMS AND NETWORKS NORTHEASTERN UNIVERSITY Lecture 11: File System Implementation Prof. Alan Mislove (amislove@ccs.neu.edu) File-System Structure File structure Logical storage unit Collection
More informationOPS-23: OpenEdge Performance Basics
OPS-23: OpenEdge Performance Basics White Star Software adam@wss.com Agenda Goals of performance tuning Operating system setup OpenEdge setup Setting OpenEdge parameters Tuning APWs OpenEdge utilities
More informationIBM Exam A DB2 9.7 Advanced DBA for LUW Version: 6.1 [ Total Questions: 103 ]
s@lm@n IBM Exam A2090-544 DB2 9.7 Advanced DBA for LUW Version: 6.1 [ Total Questions: 103 ] Topic 1, Volume A Question No : 1 - (Topic 1) An employee is not able to connect to the PRODDB database using
More informationApplication Development Best Practice for Q Replication Performance
Ya Liu, liuya@cn.ibm.com InfoSphere Data Replication Technical Enablement, CDL, IBM Application Development Best Practice for Q Replication Performance Information Management Agenda Q Replication product
More informationChapter 13: I/O Systems
COP 4610: Introduction to Operating Systems (Spring 2015) Chapter 13: I/O Systems Zhi Wang Florida State University Content I/O hardware Application I/O interface Kernel I/O subsystem I/O performance Objectives
More informationFile Structures and Indexing
File Structures and Indexing CPS352: Database Systems Simon Miner Gordon College Last Revised: 10/11/12 Agenda Check-in Database File Structures Indexing Database Design Tips Check-in Database File Structures
More informationOS and Hardware Tuning
OS and Hardware Tuning Tuning Considerations OS Threads Thread Switching Priorities Virtual Memory DB buffer size File System Disk layout and access Hardware Storage subsystem Configuring the disk array
More informationWhy memory hierarchy? Memory hierarchy. Memory hierarchy goals. CS2410: Computer Architecture. L1 cache design. Sangyeun Cho
Why memory hierarchy? L1 cache design Sangyeun Cho Computer Science Department Memory hierarchy Memory hierarchy goals Smaller Faster More expensive per byte CPU Regs L1 cache L2 cache SRAM SRAM To provide
More informationHow In-memory Database Technology and IBM soliddb Complement IBM DB2 for Extreme Speed
soliddb How In-memory Database Technology and IBM soliddb Complement IBM DB2 for Extreme Speed December 2008 Joan Monera-Llorca IBM Software Group, Information Management soliddb Technical Sales - Americas
More informationConfiguring Short RPO with Actifio StreamSnap and Dedup-Async Replication
CDS and Sky Tech Brief Configuring Short RPO with Actifio StreamSnap and Dedup-Async Replication Actifio recommends using Dedup-Async Replication (DAR) for RPO of 4 hours or more and using StreamSnap for
More informationBusiness Benefits of Policy Based Data De-Duplication Data Footprint Reduction with Quality of Service (QoS) for Data Protection
Data Footprint Reduction with Quality of Service (QoS) for Data Protection By Greg Schulz Founder and Senior Analyst, the StorageIO Group Author The Green and Virtual Data Center (Auerbach) October 28th,
More informationOS and HW Tuning Considerations!
Administração e Optimização de Bases de Dados 2012/2013 Hardware and OS Tuning Bruno Martins DEI@Técnico e DMIR@INESC-ID OS and HW Tuning Considerations OS " Threads Thread Switching Priorities " Virtual
More informationSystem recommendations for version 17.1
System recommendations for version 17.1 This article contains information about recommended hardware resources and network environments for version 17.1 of Sage 300 Construction and Real Estate. NOTE:
More information2. PICTURE: Cut and paste from paper
File System Layout 1. QUESTION: What were technology trends enabling this? a. CPU speeds getting faster relative to disk i. QUESTION: What is implication? Can do more work per disk block to make good decisions
More informationFILE SYSTEMS, PART 2. CS124 Operating Systems Fall , Lecture 24
FILE SYSTEMS, PART 2 CS124 Operating Systems Fall 2017-2018, Lecture 24 2 Last Time: File Systems Introduced the concept of file systems Explored several ways of managing the contents of files Contiguous
More informationPerformance improvements in MySQL 5.5
Performance improvements in MySQL 5.5 Percona Live Feb 16, 2011 San Francisco, CA By Peter Zaitsev Percona Inc -2- Performance and Scalability Talk about Performance, Scalability, Diagnostics in MySQL
More informationEMC Business Continuity for Microsoft Applications
EMC Business Continuity for Microsoft Applications Enabled by EMC Celerra, EMC MirrorView/A, EMC Celerra Replicator, VMware Site Recovery Manager, and VMware vsphere 4 Copyright 2009 EMC Corporation. All
More informationUnderstanding Data Locality in VMware vsan First Published On: Last Updated On:
Understanding Data Locality in VMware vsan First Published On: 07-20-2016 Last Updated On: 09-30-2016 1 Table of Contents 1. Understanding Data Locality in VMware vsan 1.1.Introduction 1.2.vSAN Design
More informationIBM B2B INTEGRATOR BENCHMARKING IN THE SOFTLAYER ENVIRONMENT
IBM B2B INTEGRATOR BENCHMARKING IN THE SOFTLAYER ENVIRONMENT 215-4-14 Authors: Deep Chatterji (dchatter@us.ibm.com) Steve McDuff (mcduffs@ca.ibm.com) CONTENTS Disclaimer...3 Pushing the limits of B2B Integrator...4
More informationAPPENDIX 3 Tuning Tips for Applications That Use SAS/SHARE Software
177 APPENDIX 3 Tuning Tips for Applications That Use SAS/SHARE Software Authors 178 Abstract 178 Overview 178 The SAS Data Library Model 179 How Data Flows When You Use SAS Files 179 SAS Data Files 179
More informationIT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including:
IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including: 1. IT Cost Containment 84 topics 2. Cloud Computing Readiness 225
More informationOptimizing Parallel Access to the BaBar Database System Using CORBA Servers
SLAC-PUB-9176 September 2001 Optimizing Parallel Access to the BaBar Database System Using CORBA Servers Jacek Becla 1, Igor Gaponenko 2 1 Stanford Linear Accelerator Center Stanford University, Stanford,
More informationTokuDB vs RocksDB. What to choose between two write-optimized DB engines supported by Percona. George O. Lorch III Vlad Lesin
TokuDB vs RocksDB What to choose between two write-optimized DB engines supported by Percona George O. Lorch III Vlad Lesin What to compare? Amplification Write amplification Read amplification Space amplification
More informationRecall: Address Space Map. 13: Memory Management. Let s be reasonable. Processes Address Space. Send it to disk. Freeing up System Memory
Recall: Address Space Map 13: Memory Management Biggest Virtual Address Stack (Space for local variables etc. For each nested procedure call) Sometimes Reserved for OS Stack Pointer Last Modified: 6/21/2004
More informationOpenVMS Performance Tips & Tricks. Guy Peleg President Maklee Engineering
OpenVMS Performance Tips & Tricks Guy Peleg President Maklee Engineering guy.peleg@maklee.com 1 Maklee Engineering Consulting firm operating all over the world. Team of Top Gun engineers. Former members
More informationSONAS Best Practices and options for CIFS Scalability
COMMON INTERNET FILE SYSTEM (CIFS) FILE SERVING...2 MAXIMUM NUMBER OF ACTIVE CONCURRENT CIFS CONNECTIONS...2 SONAS SYSTEM CONFIGURATION...4 SONAS Best Practices and options for CIFS Scalability A guide
More information<Insert Picture Here> DBA Best Practices: A Primer on Managing Oracle Databases
DBA Best Practices: A Primer on Managing Oracle Databases Mughees A. Minhas Sr. Director of Product Management Database and Systems Management The following is intended to outline
More informationCeph: A Scalable, High-Performance Distributed File System
Ceph: A Scalable, High-Performance Distributed File System S. A. Weil, S. A. Brandt, E. L. Miller, D. D. E. Long Presented by Philip Snowberger Department of Computer Science and Engineering University
More informationHistorical Collection Best Practices. Version 2.0
Historical Collection Best Practices Version 2.0 Ben Stern, Best Practices and Client Success Architect for Virtualization and Cloud bstern@us.ibm.com Copyright International Business Machines Corporation
More information