If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Need help for Database Tunning Basic Level

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-17-04, 08:49
mikewagner mikewagner is offline
Registered User
 
Join Date: Sep 2004
Posts: 6
Smile Need help for Database Tunning Basic Level

Dear friends,

I am the Linux System Administrator. I have installed DB2 V7.1 on Linux 7.2. Now I'm interesting in taking up DB2 performance tunning on Linux. I'm very begineer on DB2 Tunning. I have a database called BILL. I want to Tunning my database. In this database userspace (tablespace is frequently access for reading and writing).

I would appreciate if i get valuable suggestions and guidence from U.

Can anyone guide me basic tips to start db2 tunning as initial level.

Thanking in anticipation.
Reply With Quote
  #2 (permalink)  
Old 09-17-04, 09:03
sundialsvcs sundialsvcs is offline
Registered User
 
Join Date: Oct 2003
Posts: 706
First, identify your problem. What is it (write it down!) that is causing you to conclude that "the database needs tuning?" Now, what are all (write them down!) the possible causes for what you are seeing; including, but not limited to, "the database needs tuning?"

You can easily "bark up the wrong tree" if you don't be very systematic. Performance problems perceived by a user could be caused by:
  • Hardware or network problems... many retries for communication... misbehaving NIC is flooding the net...
  • The I/O subsystem is too slow or is throwing errors.
  • There's only one disk-drive so it is having to do everything for everyone.
  • The DB2 server processes can't get enough memory.
  • I/O operations are "clogging up the wire" and there is excessive waiting.
  • Bit-bucket overflow. (You'll find the bucket underneath the main compartment; it's where all the deleted rows go. Wear gloves...)
  • The queries and/or the database-design of BILL are poorly designed, so that DB2 is having to do the impossible. (Needs indexes; trying to do massive outer-joins; etc.)
  • The database is offended at being called BILL [Gates] and wants to be renamed THOMASJWATSON.
  • Finally, maybe, "it really does 'need tuning.'" The DB2 processes have enough memory and I/O-capacity... they're running promptly whenever they need to run, without too much contention, but the present mix of queries is causing a condition that could be improved by "tweaking a knob."

I list the last choice last because it's frankly pretty unlikely. DB2 is a pretty darned intelligently-designed subsystem. With its default tuning settings it runs very well. In my experience, most performance problems in a database (no matter what the server) can be linked directly back to the design of the database itself, and the lack-of-design of the queries that are run against it. (Let's just say that developers tend to believe that, "if it runs, it works." They write gargantuan queries to get the results they want, "all at once," and I am often amazed that those queries run at all. Makes me want to pat the server on the head and say, "poor thing!")

Rig up a performance monitor and collect some statistics about what processes in your system, particuarly DB2's, are actually waiting-on. Proceed from those clues.
__________________
ChimneySweep(R): fast, automatic
table repair at a click of the
mouse! http://www.sundialservices.com

Last edited by sundialsvcs; 09-17-04 at 09:11.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On