[ltt-dev] [PATCH 4/6] rculfhash: Change lazy shrink strategy
Lai Jiangshan
laijs at cn.fujitsu.com
Wed Nov 2 04:18:08 EDT 2011
On 11/02/2011 01:08 AM, Mathieu Desnoyers wrote:
> * Lai Jiangshan (laijs at cn.fujitsu.com) wrote:
>> We can aggressively grow a ht,
>
> What allows us to state that agressive grow is OK ?
I mean, if compare to shrinking, growing can be agressive a little more,
we can to do grow even the launching thread get old information.
But if compare to growing, shrinking must be conservative a little more,
if the launching thread find other thread are trying to grow ht,
it means the launching thread got old information, it should
stop to shrink.
I think I should used "relativistic agressive".
Thanks,
Lai
>
>
> missing space above.
>
>> + if (s <= count)
>> + return;
>
> Keeping the behavior of size check (change to patch 2) will probably
> affect this.
Waiting for your new reply for the patch 2.
>
>> +
>> + size = s;
>> + }
>> + }
>> +
>> __cds_lfht_resize_lazy_launch(ht);
>> }
>> --
>> 1.7.4.4
>>
>
More information about the lttng-dev
mailing list