`make test` in the tarball from memcached.org...

On Thu, 17 Dec 2009, Mitch Crane wrote:

> Hi All!
>
> Can you please point me to the "official" test suite for memcached?  I
> ran the following:
>
> http://github.com/dustin/memcached-test/tree/master/testClient.py
>
> and it seemed quite happy... but it would be nice to get more data
> points.  Also, eventually it would be great to run a performance
> regression, once I am using my mmap'ed block device for storing keys
> and values.  Would be nice to see how much of a performance penalty
> there is.
>
> So, my change is pretty simple, I basically changed the variable array
> part of the item structure (void * end[]) to be a simple pointer (void
> * end), and changed its accessor macros to match.  Then I duplicated
> the slabclass structure, think of it as kind of a shadow of the
> original.. so there's a slabclass for fixed size slabs (purely items)
> and a slabclass for variable sizes (everything that used to live in
> the variable "end" array).  This way I can pull all the allocations
> for the keys and values from my blockdev/the page cache, and keep
> nearly *all* the metadata in RAM.  The item allocated in the fixed
> cache is made to point to the variable sized allocation in the shadow
> via the "end" pointer.  Does it make sense?  Anyway, if you'd like to
> see the diff I'd be happy to share.. perhaps this could be helpful for
> moving the storage engine branch forward?
>
> thanks a lot!
> Mitch.
>

Reply via email to