dbTalk Databases Forums  

unable to join the environment

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss unable to join the environment in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mez
 
Posts: n/a

Default unable to join the environment - 01-23-2006 , 08:21 PM






Hi all,

Attempting to create a shared memory db using 4.4.16 on a Linux
2.4.21-20.ELsmp. I'm getting an dbenvp->open() error.

The set_errfile shows:
SharedMemoryCache: shmget: key: 667: unable to create shared system
memory region: Invalid argument
SharedMemoryCache: PANIC: Invalid argument
SharedMemoryCache: unable to join the environment

the open() is called as follows:
first set_shm_key(602) is called
dbenvp->open(fullName.c_str(),
DB_CREATE,DB_INIT_LOCK,DB_INIT_LOG,DB_INIT_MPOOL,D B_INIT_TXN,DB_SYSTEM_MEM,DB_REGISTER,DB_THREAD,DB_ RECOVER,
S_IRWXU );

% ipcs

------ Shared Memory Segments --------
key shmid owner perms bytes nattch
status
0x0000029a 1572865 mez 600 24576 0

Any help would be greatly appreciated and yes, I'm a berkeley newbie.


Reply With Quote
  #2  
Old   
mez
 
Posts: n/a

Default Re: unable to join the environment - 01-24-2006 , 11:29 AM






Looks like the problem stemmed from the set_cachesize value not being a
power of 2. Also the cxx call must include the power sign eg 2^18
works where 262144 does not.


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.