From dev-return-3185-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Tue Jul 10 14:50:43 2001 Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 24994 invoked by uid 500); 10 Jul 2001 14:50:24 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 24561 invoked from network); 10 Jul 2001 14:50:15 -0000 Date: Tue, 10 Jul 2001 16:49:27 +0200 From: Luke Kenneth Casson Leighton To: Jon Travis Cc: rbb@covalent.net, Justin Erenkrantz , Sander Striker , apr-dev@apache.org Subject: Re: Observations on fragmentation in SMS pools Message-ID: <20010710164926.F23874@angua.rince.de> References: <20010710012924.O18140@angua.rince.de> <20010709201426.B1138@covalent.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <20010709201426.B1138@covalent.net>; from jtravis@covalent.net on Mon, Jul 09, 2001 at 08:14:26PM -0700 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N > > > and does anyone want a challenge of porting tdb to apr? > > > *grin* > > > > Challenge, did somebody say challenge? I'm always up for a challenge. > > :-) :) i just checked the codebase. it uses: lseek fcntl read write open close mmap (if supported) munmap (if supported) malloc (3 times) free (16 times) realloc (once, in tdb_expand(), in TDB_INTERNAL mode. you don't _have_ to use a file with tdb, you can do in-memory only). so, not exactly a _big_ challenge, which is the kind of challenges i like: small and gratifying and part of something larger. the larger: cool code that could provide fast, SHARED in-memory, multi-reader multi-writer simultaneous access, and oh yeah, it also has the option to do files as well as in-memory. the keys, however, are a unique (void*, size_t) tuple, and so is the data. the bad news: does anyone want to contact the three remaining authors, rusty russell, andrew tridgell (tridge@valinux.com) and jeremey allison (jallison@valinux.com) to see if they'd like to release a version under the APR license? also, anton blanchard (sparc32 kernel hacker Extreme :) who wrote the spinlock code (no, it's not on the list of copyrights, i used to work at same company as him when he was writing it). whoever decides to contact them, please DO NOT mention my name, it will have the OPPOSITE intended effect, i guarantee that, 100%. luke