473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

"connect to dbname" is very slow...

when I firstly ran "connect to dbname" command after "db2start", it spent me
about 10 mins. I saw a process named "db2sync" that used 700M memory.

The OS is Linux Advanced Server V2.1, Database is V8.1.5. The machine is
Compaq ProLiant 8000, 1G Mem. How can I do? thanks..
Nov 12 '05 #1
2 5731
Ian
Hunter wrote:
when I firstly ran "connect to dbname" command after "db2start", it spent me
about 10 mins. I saw a process named "db2sync" that used 700M memory.

The OS is Linux Advanced Server V2.1, Database is V8.1.5. The machine is
Compaq ProLiant 8000, 1G Mem. How can I do? thanks..


The first connection to the database will incur a "penalty" associated
with allocating bufferpools, etc. You can avoid this by using
"activate database".

10m sounds like a long time to me. Does your system start swapping when
you connect to DB2?

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 12 '05 #2
Ian wrote:
The first connection to the database will incur a "penalty" associated
with allocating bufferpools, etc. You can avoid this by using
"activate database".

10m sounds like a long time to me. Does your system start swapping
when you connect to DB2?

Thanks for answering the question I did not ask.

Yesterday I increased a buffer pool for an index from 60000 pages to
192000 pages (I wanted to get the entire index into memory) and then

db2 connect to DATABASE

started taking a long time. Not 10 minutes, though. I wondered why that
was, but you told me the answer.
Can I ever make the buffer pool so large that it would be quicker to read
the disk than rummage around in the buffer pool? (DMS storage used here) I
know decades ago, UNIX had an optimum memory size and if you put more RAM
on the machine than that, it started to slow down because they used a
sequential search of the buffer pool to find pages. They have long since
fixed that problem, of course. In other words, if I had enough RAM to put
the entire database in memory, would it _necessarily_ run faster than
leaving it mostly on the disks? Now my MB will hold only 16GBytes RAM and
I have only 4GBytes in there, so that will probably not be a problem, but
I am curious.

--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 09:45:00 up 5 days, 11:56, 5 users, load average: 4.10, 4.82, 7.21

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Manjesh Gowda | last post by:
Hi all, I am maintaing a persistent HTTP connection using the "HTTP CONNECT" method , this works fine for many proxies like Squid, ISA , etc. But the iPlanet proxy disconnects the conneciton...
12
by: Mikito Harakiri | last post by:
I wonder if WITH RECURSIVE MaryAncestor(anc,desc) AS ( (SELECT parent as anc, child as desc FROM ParentOf WHERE desc = "Mary") UNION (SELECT A1.anc, A2.desc FROM MaryAncestor A1, MaryAncestor...
2
by: Prakash Wadhwani | last post by:
I have a database called "TEMP" On Opening the "TEMP" Database, I need to use VBA : a) to connect to another database called "PMF" b) the PMF database requires a password on opening called...
1
by: DellaCroce | last post by:
I am trying, for the first time, to set up a small development system at home. I have two computer C1 and C2. C2 has SQL Server 2000 and IIS running on. C1 has VS.Net 2003 running on it. ...
0
by: chico_001 | last post by:
I am doing some database testing and when I found a problem with the case sensitivity of "CONNECT TO". When "CONNECT to" is written with capital and small letters, a new db is not dropped and...
1
by: delset | last post by:
This is my first post on this form so please bear with me if i don't give all the needed info. My problem seems simple but i googled for hours and have not yet found anything that can help with my...
3
by: cberthu | last post by:
Hi all, Is it possible to have two connects in the same rexx script to different DB's? I have to get data form on DB (with specifics selects and filter out some values with RExx) and save the...
4
by: Adisc | last post by:
Hi, How can I run a query to fetch the hierarchy without using the command - connect by prior? I want to use this query by BO, which does not support the connect byqstart with option. thanks
12
by: Jonathan Wood | last post by:
Greetings, I wonder if anyone can help me with this. I have an XP laptop, and a Vista desktop computer. I use the laptop to run software remotely on the desktop using the Remote Desktop...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.