Re: The logic structure of class Part in iocore/cache/P_CachePart.h

2011-03-13 Thread Igor Galić
John, do you mind if we put this into the SDK docs like this, or do you think it needs some touching up? - Original Message - > Each bucket points to a linked list of directory entrys (Dir) which > point > to "fragment"s which is a contiguous piece of an "object" or > "document". > > Fo

Re: The logic structure of class Part in iocore/cache/P_CachePart.h

2011-03-11 Thread John Plevyak
Each bucket points to a linked list of directory entrys (Dir) which point to "fragment"s which is a contiguous piece of an "object" or "document". For performance reasons (to take advantage of the L1 cache) Dir entries allocated for a bucket are taken first from the other 3 entries in the bucket.

The logic structure of class Part in iocore/cache/P_CachePart.h

2011-03-08 Thread 张练
I have some questions with the design of class Part. I think the Part is divided into several Segments, and each Segments contain 2^16 buckets, and each buckets contain 4 object. In default, every object's size is 8000(proxy.config.cache.min_average_object_size), and each object has an opposite