Questions about slabs rebalance thread

14 views
Skip to first unread message

Wenxin Zheng

unread,
May 7, 2021, 8:03:48 AMMay 7
to memcached
It seems that in 'slabs.c', slab_rebalance_thread will be created only once. Which variables are required to be protected by lock `slabs_rebalance_lock` ?

dormando

unread,
May 7, 2021, 3:09:07 PMMay 7
to memcached
Hey,

There are user commands which can optionally control the slab rebalancer,
so the lock is mostly for that interaction from worker threads. The
restart system also needs to stop the thread gracefully.

On Fri, 7 May 2021, Wenxin Zheng wrote:

> It seems that in 'slabs.c', slab_rebalance_thread will be created only once. Which variables are required to be protected by lock `slabs_rebalance_lock` ?
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "memcached" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to memcached+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/memcached/636d45a7-76a5-47c4-b90f-433a13d73c61n%40googlegroups.com.
>
>

Wenxin Zheng

unread,
May 8, 2021, 2:27:48 AMMay 8
to memcached
Oh I see it. Thanks a lot!!
Reply all
Reply to author
Forward
0 new messages