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 > Alter bufferpool warning

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-23-07, 03:01
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Alter bufferpool warning

Hi,
running DB2 v9 FP2 on Linux/Intel I have executed command: "free -m" to get data about physical memory in mega bytes.

Code:
             total       used       free     shared    buffers     cached
Mem:          5067       2010       3057          0         25       1591
-/+ buffers/cache:        393       4674
Swap:         2055          0       2055
The above command shows there is 3057 MB free memory. I have tried to create 524,288 of 4 kB pages to assign 2 GB of memory to bufferpool:
Code:
DB2 ALTER BUFFERPOOL IBMDEFAULTBP SIZE 524288
I got warring:
Code:
SQL20189W The buffer pool opeartion (CREATE/ALTER) will not take effect until
the next database startup due to insufficient memory. SQLSTATE=01657
Any idea why I get this warning if there is enough free memory?

BTW, I could create buffer pool with 128,000 x 4 kB pages = 500 MB. Creating bigger bufferpool always returns above warning.

Regards,
Grofaty
Reply With Quote
  #2 (permalink)  
Old 08-23-07, 03:34
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
This always happens on DB2/Linux. I don't know why, but I just restart DB2.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 08-23-07, 03:38
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Marcus_A,
it looks like a bug. I was just little afraid to alter bufferpool beyond available physical memory. I know this can lead to swaping (paging) at OS level.

Is this warning new in DB2 v9?
Thanks,
Grofaty
Reply With Quote
  #4 (permalink)  
Old 08-23-07, 03:42
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
No, it exists in Version 8 also. I do this so infrequently, that I have not bothered to investigate, and I just restart DB2 as the message suggests.

I never got that error on AIX. Maybe it has something to do with the differences in the OS. You can contact IBM for more info.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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