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

Re: slap tools notes



On Wed, May 21, 2003 at 06:32:09PM -0700, 'Adam Jacob' wrote:
> On Wed, May 21, 2003 at 05:06:02PM -0700, Howard Chu wrote:
> > > Where /a could be something like Solaris' /var/run, or a Linux style
> > > tmpfs?
> > 
> > Almost. back-bdb currently doesn't create tmpfiles so set_tmp_dir is
> > irrelevant.
> > 
> > A better example would be
> >  slapd.conf:
> > 	database bdb
> > 	directory /a/bdb
> > 
> >  /a/bdb/DB_CONFIG:
> > 	set_data_dir /b/datafiles
> > 	set_lg_dir /c/logfiles

Actually, how does putting the environment on a tmpfs give much of an
advantage over opening the environment with the DB_SYSTEM_MEM flag set?

Taken from http://www.sleepycat.com/docs/ref/env/region.html

2. If the DB_SYSTEM_MEM flag is specified to DB_ENV->open, regions are created
in system memory. When regions are created in system memory, the Berkeley DB
environment may be accessed by both multiple processes and multiple threads
within processes.

I'm having trouble seeing how I could set that in DBCONFIG, though..
I only find reference to it as a flag passed to DBENV->open.  

Adam

-- 
adam@sysadminsith.org - (http://stalecoffee.org)
Democratically Elected Leader for Life
Peoples Socialist Republic of Humanitarian Well Being and All Around Goodness
Evil Lord of the Sysadmin Sith Darth Rmdashrf