-b option explanation

3 views
Skip to first unread message

mark

unread,
Jan 13, 2009, 11:23:49 AM1/13/09
to memca...@googlegroups.com
hei steve
earlier -b was a limit on the size of data that can be stored right?
is it different now? can i store any size of data in memcachedb
without changing the settings?
thanks


2008-06-11 Steve Chu <stv...@gmail.com>
* now '-b' option is a tuning way, not a limit. item size that smaller than
'-b' value use fast freelist alloc, otherwise, use system 'malloc' instead.
Many thanks to Davies Liu <davie...@gmail.com> for patches and ideas.

Steve Chu

unread,
Jan 13, 2009, 11:27:58 AM1/13/09
to memca...@googlegroups.com
Before version 1.1.x, a fixed size buffer is
used, but now we have removed this limit. We don't think 'malloc' is
fast enough, so we use a freelist to cache the malloced memory, the
buffer block which is added to the free list is fixed size indicated
by '-b'.
--
Steve Chu
http://stvchu.org

mark

unread,
Jan 13, 2009, 1:04:41 PM1/13/09
to memca...@googlegroups.com
so there is no limit to the size of data that is stored?
thanks

Michael Monashev

unread,
Jan 21, 2009, 2:45:17 PM1/21/09
to memcachedb
Is data size unlimited now?

--
Michael
http://michael.mindmix.ru/


On 13 янв, 19:27, "Steve Chu" <stv...@gmail.com> wrote:
> Before version 1.1.x, a fixed size buffer is
> used, but now we have removed this limit. We don't think 'malloc' is
> fast enough, so we use a freelist to cache the malloced memory, the
> buffer block which is added to the free list is fixed size indicated
> by '-b'.
>
>
>
> On Wed, Jan 14, 2009 at 12:23 AM, mark <markki...@gmail.com> wrote:
>
> > hei steve
> > earlier -b was a limit on the size of data that can be stored right?
> > is it different now? can i store any size of data in memcachedb
> > without changing the settings?
> > thanks
>
> > 2008-06-11 Steve Chu <stv...@gmail.com>
> >   * now '-b' option is a tuning way, not a limit. item size that smaller than
> >   '-b' value use fast freelist alloc, otherwise, use system 'malloc' instead.
> >   Many thanks to Davies Liu <davies....@gmail.com> for patches and ideas.
>
> --
> Steve Chuhttp://stvchu.org

Steve Chu

unread,
Jan 21, 2009, 9:49:59 PM1/21/09
to memca...@googlegroups.com
2009/1/22 Michael Monashev <postm...@softsearch.ru>:
>
> Is data size unlimited now?
>
Yes.
--
Best Regards,

Steve Chu
http://stvchu.org
Reply all
Reply to author
Forward
0 new messages