From mboxrd@z Thu Jan 1 00:00:00 1970 From: laijs@cn.fujitsu.com (Lai Jiangshan) Date: Wed, 02 Nov 2011 16:18:08 +0800 Subject: [ltt-dev] [PATCH 4/6] rculfhash: Change lazy shrink strategy In-Reply-To: <20111101170854.GG18068@Krystal> References: <23191cb487d53146a79f0fae67cfaa6287d5ab1c.1320051657.git.laijs@cn.fujitsu.com> <20111101170854.GG18068@Krystal> Message-ID: <4EB0FCC0.7040009@cn.fujitsu.com> 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 >> >