Setting slab class number.

2014-04-02 Thread Slawomir Pryczek
Hi guys, i noticed there's some limit in slab classes number. http://screencast.com/t/RqUovWXVLS Is it possible to have eg. 2000 slab classes? Alternatively, can i just set limit of all these individually, by typing eg. 200 tab separated numbers What i want to achieve is to have better distribu

Re: Setting slab class number.

2014-04-02 Thread Ryan McElroy
memcached has a fixed per-item overhead that's more than 10 bytes so 10 byte slabs don't make a lot of sense to me. Currently, 200 different slab sizes is a constant in the code. See the lines around here: https://github.com/memcached/memcached/blob/master/memcached.h#L71 That could be changed an

Re: Setting slab class number.

2014-04-05 Thread dormando
It's not presently possible to do either. I would like to allow people to supply the slab classes specifically, but we haven't done it yet. 2000 slab classes has its own set of inefficiencies. You should still keep the number relatively low. On Wed, 2 Apr 2014, Slawomir Pryczek wrote: > Hi guys,