apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luke Kenneth Casson Leighton <l...@samba-tng.org>
Subject Re: Observations on fragmentation in SMS pools
Date Tue, 10 Jul 2001 14:49:27 GMT
> > > 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:

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%.


View raw message