*BSD News Article 66975


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!newsfeed.ksu.ksu.edu!lazrus.cca.rockwell.com!newssvr.cacd.rockwell.com!newsrelay.iastate.edu!vixen.cso.uiuc.edu!newsfeed.internetmci.com!news.ac.net!news.serv.net!not-for-mail
From: zeno@serv.net (Sean T. Lamont)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Looking for some freebsd-based implementation suggestions.
Followup-To: poster
Date: 27 Apr 1996 04:10:28 -0700
Organization: ServNet Internet Services, Seattle, WA
Lines: 34
Message-ID: <4lsvb4$enq@itchy.serv.net>
NNTP-Posting-Host: itchy.serv.net

I'm looking for some suggestions.

I want to build a relatively small lookup table in FreeBSD  which has the
following properties:

* System-wide
* fast lookup
* fast storage
* Consistent from reboot to reboot.

Obviously, this sounds a lot like DBM. problem is, I don't think that
dbm supports record locking to the point where I'd need it. This isn't 
such a big deal (a couple of lost writes isn't a huge deal.....) but the
"2 file system accesses per lookup" -IS- a big deal ; this is far too much
use of the disk.

I guess what I'm sort of looking for is a memory-resident DBM which will
dump its contents to disk when the system restarts (and at periodic times
in between, maybe every minute or so.) with some sort of semaphore locking
or something.

Do I have to actually code this directly into the FreeBSD kernel (I'm 
probably willing to do this) or is there a clean, elegant solution I'm
missing? 





-- 
Sean T. Lamont, President / CEO, Abstract Software (ServNet)  
- Internet access * WWW hosting * TCP/IP * UNIX * NEXTSTEP * WWW Development -
email: lamont@abstractsoft.com              WWW:  http://www.serv.net
"...There's no moral, it's just a lot of stuff that happens". - H. Simpson