[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: caching magic



Tony Earnshaw <tonye@billy.demon.nl> writes:

> tor, 17.06.2004 kl. 22.47 skrev Howard Chu:
>
>> >>>From my slapd.conf:
>> >>
>> >>database    bdb
>> >>shm_key     5
>> 
>> > This can go in DB_CONFIG:
>> > http://www.sleepycat.com/docs/api_c/env_set_shm_key.html
>> 
>> No, that alone is not enough. If it were enough by itself, I would never 
>> have added this code to back-bdb. You also need to set the DB_SYSTEM_MEM 
>> flag when creating the environment, and this flag cannot be set in 
>> DB_CONFIG. Using the shm_key keyword tells back-bdb the key *and* tells 
>> it to set the flag when creating the environment.
>
> Could you please indicate where setting DB_SYSTEM_MEM and any other
> similar environment parameters is documented? Wish to read up on it :)

file:///usr/local/BerkeleyDB.4.2/docs/ref/env/intro.html
file:///usr/local/BerkeleyDB.4.2/docs/ref/env/db_config.html
file:///usr/local/BerkeleyDB.4.2/docs/ref/env/region.html
file:///usr/local/BerkeleyDB.4.2/docs/ref/program/ram.html

-Dieter

-- 
Dieter Klünter | Systemberatung
Tel.: +49.40.64861967
Fax : +49.40.64891521
http://www.avci.de