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 > shared memory segements cannot be allocated

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-15-10, 08:22
JackVamvas JackVamvas is offline
Registered User
 
Join Date: Aug 2008
Posts: 48
shared memory segements cannot be allocated

Linux Red hat - 2.6.97 32 bit 8GB Physical Memory
DB2 9.1 Enterprise

I'm getting a "shared memory segements cannot be allocated" on attempting to connect to a database

The entries in the /etc/sysctl.conf are , are they worng , any advice would be appreciated


kernel.shmmax = 4294967295
kernel.shmmni=4096
kernel.shmall = 2097152
kernel.sem=250 256000 32 1024
kernel.msgmax=65536
kernel.msgmnb=65536
__________________
---------------------------------
www.sqlserver-dba.com
www.dba-db2.com
Reply With Quote
  #2 (permalink)  
Old 01-15-10, 08:25
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You are using 32 bit. This limits you to about 1.7 GB of memory for DB2.

Andy
Reply With Quote
  #3 (permalink)  
Old 01-15-10, 09:03
JackVamvas JackVamvas is offline
Registered User
 
Join Date: Aug 2008
Posts: 48
does that mean the settings I am using are incorrect?
__________________
---------------------------------
www.sqlserver-dba.com
www.dba-db2.com
Reply With Quote
  #4 (permalink)  
Old 01-15-10, 09:40
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
A 32 bit OS can only address 32 GB of memory. So you have 4 GB of wasted memory in the server. The parameters you show will not fit into 4 GB.

Andy
Reply With Quote
  #5 (permalink)  
Old 01-15-10, 12:54
JackVamvas JackVamvas is offline
Registered User
 
Join Date: Aug 2008
Posts: 48
Hi I'm slightly confused by the figures - for a Linux 32 bit DB2 9.1 - with 5GB of Physical memory - what are the calculations for :
kernel.shmmax = 4294967295
kernel.shmmni=4096
kernel.shmall = 2097152
kernel.sem=250 256000 32 1024
kernel.msgmax=65536
kernel.msgmnb=65536
__________________
---------------------------------
www.sqlserver-dba.com
www.dba-db2.com
Reply With Quote
  #6 (permalink)  
Old 01-15-10, 13:17
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
shmmax is 4GB, the total amount of memory that can be addressed, but DB2 is not the only thing using the server. The OS needs memory also. Try cutting it in half. shmall should be the same but I think it is in kb, so I think you value is correct.

Andy
Reply With Quote
  #7 (permalink)  
Old 01-16-10, 06:09
JackVamvas JackVamvas is offline
Registered User
 
Join Date: Aug 2008
Posts: 48
As I've got kernel.shmmax = 4294967295 , which is in bytes ,would it be correct to say that SHMALL should be the equivalent , but in kb ?
__________________
---------------------------------
www.sqlserver-dba.com
www.dba-db2.com
Reply With Quote
  #8 (permalink)  
Old 01-18-10, 08:30
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Quote:
Originally Posted by JackVamvas View Post
As I've got kernel.shmmax = 4294967295 , which is in bytes ,would it be correct to say that SHMALL should be the equivalent , but in kb ?
From what I have read, that is correct--shmmax and shmall should be equal.

Andy
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