Tarantool development patches archive
 help / color / mirror / Atom feed
From: Kirill Yukhin <kyukhin@tarantool.org>
To: Alexander Turenko <alexander.turenko@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [small] Revert "Free all slabs on region reset"
Date: Wed, 29 Jan 2020 12:59:03 +0300	[thread overview]
Message-ID: <20200129095903.4jor3fgpoiuwiug7@tarantool.org> (raw)
In-Reply-To: <4e734e626aba336b27ec85790747c657d29c0338.1580284383.git.alexander.turenko@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

  reply	other threads:[~2020-01-29  9:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-29  8:06 Alexander Turenko
2020-01-29  9:59 ` Kirill Yukhin [this message]
2020-01-29 21:41 ` Konstantin Osipov
2020-01-30  7:23   ` Alexander Turenko
2020-01-30  8:21     ` Konstantin Osipov
2020-01-30 11:03       ` Alexander Turenko
2020-01-30 12:16         ` Konstantin Osipov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200129095903.4jor3fgpoiuwiug7@tarantool.org \
    --to=kyukhin@tarantool.org \
    --cc=alexander.turenko@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [small] Revert "Free all slabs on region reset"' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox