From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp10.mail.ru (smtp10.mail.ru [94.100.181.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id CFFB446970E for ; Wed, 29 Jan 2020 12:59:04 +0300 (MSK) Date: Wed, 29 Jan 2020 12:59:03 +0300 From: Kirill Yukhin Message-ID: <20200129095903.4jor3fgpoiuwiug7@tarantool.org> References: <4e734e626aba336b27ec85790747c657d29c0338.1580284383.git.alexander.turenko@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4e734e626aba336b27ec85790747c657d29c0338.1580284383.git.alexander.turenko@tarantool.org> Subject: Re: [Tarantool-patches] [small] Revert "Free all slabs on region reset" List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Turenko Cc: tarantool-patches@dev.tarantool.org Hello, On 29 янв 11:06, Alexander Turenko wrote: > This reverts commit 67d7ab44ab09df3356929e3692a03321b31f3ebb. > > The goal of the reverted commit was to fix flaky fails of tarantool > tests that checks amount of memory used by a fiber: > > | fiber.info()[fiber.self().id()].memory.used > > It also attempts to overcome the situation when a fiber holds some > amount of memory, which is not used in any way. The high limit of such > memory is controlled by a threshold in fiber_gc() tarantool's function > (128 KiB at the moment): > > | void > | fiber_gc(void) > | { > | if (region_used(&fiber()->gc) < 128 * 1024) { > | region_reset(&fiber()->gc); > | return; > | } > | > | region_free(&fiber()->gc); > | } > > The reverted commit, however, leads to significant performance > degradation on certain workloads (see #4736). So the revertion fixes the > performance degradation and opens the problem with tests, which is > tracked in #4750. > > Related to #12 > Related to https://github.com/tarantool/tarantool/issues/4750 > Fixes https://github.com/tarantool/tarantool/issues/4736 I've checked your patch into tarantool/small and bumped new version in master, 2.3, 2.2 and, as exception 2.1. -- Regards, Kirill Yukhin