Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

DB2 9 self-tuning memory management

Manage your business, not your database

Paul Read (paul_read@uk.ibm.com), Product Introduction Manager, EMC
Paul Read
Paul Read is a Product Introduction Manager in the Global BetaWorks team based in the IBM Lab in Hursley, Hampshire, United Kingdom. He is responsible for Beta and Early Support Programs for Information Management products on Linux, UNIX and Windows.
(An IBM developerWorks Contributing Author)
Eva Angelika Billich (bch@de.ibm.com), Senior DB2 Consultant for Strategic IBM Business Partners in Europe, Middle East, and Africa, IBM
Eva Billich photo
Eva Billich is a Senior DB2 Consultant in the Business Partner Technical Enablement Team based in the IBM Lab in Boeblingen, Germany. She is responsible for enabling strategic IBM business partners in EMEA to accelerate their application projects with DB2 on Linux, Unix and Windows from project start until "Go to market."

Summary:  Starting in IBM® DB2® 9, a new memory-tuning feature, self-tuning memory management, simplifies the task of memory configuration by automatically setting values for several memory configuration parameters. When enabled, the memory tuner dynamically distributes available memory resources among several memory consumers, including sorts, the package cache, the lock list, and buffer pools. In this tutorial, walk through a series of exercises to understand and learn how to administer this new feature.

Date:  30 Nov 2006
Level:  Intermediate PDF:  A4 and Letter (1459 KB | 38 pages)Get Adobe® Reader®

Activity:  7996 views
Comments:  

Before you start

Introduction

This tutorial is based on the IBM DB2 9 self-tuning memory management feature. The tuner works within the memory limits defined by the database_memory configuration parameter. The value of database_memory can itself be automatically tuned on Windows(R) and AIX(R). When self-tuning is enabled for database_memory (when it is set to AUTOMATIC), the tuner determines the overall memory requirements for the database and increases or decreases the amount of memory allocated for database shared memory depending on the current database requirements. For example, if the current database requirements are high, and there is sufficient free memory on the system, more memory will be consumed by database shared memory. Once the database memory requirements drop, or the amount of free memory on the system drops too low, some database shared memory is released.

This tutorial provides hands-on experience in the five basic areas:

  1. Activating self-tuning memory
  2. Determining which memory consumers are enabled for self tuning
  3. Determining the current size of DB2 memory usage
  4. Automatic tuning in a production environment
  5. Deactivating self-tuning memory

Further description of the feature can be found in the article " Self-tuning memory in DB2 9" (developerWorks, June 2006)..


About this tutorial

The following exercises enable you to work with the DB2 self-tuning memory feature and to have available memory resources dynamically distributed among several memory consumers, including sorts, the package cache, the lock list, and buffer pools.

They have been developed to demonstrate one or more tasks found within each of the areas.

Objectives

This tutorial helps familiarize you with concepts and capabilities of self tuning in DB2 9:

  1. Self-tuning memory overview and logon
  2. Self-tuning memory and SORTHEAP
  3. Self-tuning memory and PCKCACHESZ
  4. Self-tuning memory and LOCKLIST
  5. Self-tuning memory and health checking

System requirements

To run the examples in this tutorial, you need the following installed on your machine:

DB2 9 Express-C is available from the DB2 9 Data Server link above. See the tutorial "DB2 XML evaluation guide (developerWorks, June 2006) for steps on installing DB2. Unless the DB2 configuration is altered, then DB2 will automatically start after installation.

Use the samples scripts and data provided in the stmm_zipped.zip file (see Downloads section) to demonstrate the concepts in this tutorial. Extract the contents into a subdirectory called stmm_scripts ( C:\stmm_scripts or home/userid/stmm_scripts, for example). This directory will be referred to simply as stmm_scripts throughout the tutorial. This tutorial assumes that you have used the default directories for the DB2 installation and all the DB2 exercises are performed by a database administrator id.

1 of 11 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Information Management
ArticleID=180723
TutorialTitle=DB2 9 self-tuning memory management
publish-date=11302006
author1-email=paul_read@uk.ibm.com
author1-email-cc=
author2-email=bch@de.ibm.com
author2-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.