Re: Questions about slabs rebalance thread

2021-05-07 Thread dormando
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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/memcached/636d45a7-76a5-47c4-b90f-433a13d73c61n%40googlegroups.com.
>
>

-- 

--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/memcached/193f9972-1c60-153-cf4f-d7d1b1dd8231%40rydia.net.


Questions about slabs rebalance thread

2021-05-07 Thread Wenxin Zheng
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/memcached/636d45a7-76a5-47c4-b90f-433a13d73c61n%40googlegroups.com.