From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D8D2823422 for ; Tue, 5 Feb 2019 11:58:31 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G-YCI3dxRvTG for ; Tue, 5 Feb 2019 11:58:31 -0500 (EST) Received: from smtp57.i.mail.ru (smtp57.i.mail.ru [217.69.128.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 934B3233A7 for ; Tue, 5 Feb 2019 11:58:31 -0500 (EST) Received: by smtp57.i.mail.ru with esmtpa (envelope-from ) id 1gr43J-00039N-MV for tarantool-patches@freelists.org; Tue, 05 Feb 2019 19:58:29 +0300 Date: Tue, 5 Feb 2019 19:58:29 +0300 From: Konstantin Osipov Subject: [tarantool-patches] Re: [PATCH 5/9] vinyl: keep track of dumps per compaction for each LSM tree Message-ID: <20190205165829.GD6811@chai> References: <32b5bdf6ea829c03d858ca8faffcd11411a113b4.1548017258.git.vdavydov.dev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32b5bdf6ea829c03d858ca8faffcd11411a113b4.1548017258.git.vdavydov.dev@gmail.com> Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: tarantool-patches@freelists.org * Vladimir Davydov [19/01/21 06:58]: > This patch adds dumps_per_compaction metric to per index statistics. It > shows the number of dumps it takes to trigger a major compaction of a > range in a given LSM tree. We need it to automatically choose the > optimal number of ranges that would smooth out the load generated by > range compaction. I obviously like the idea of dumps_per_compaction :-), but using a heap to maintain the minimum sounds like a bit of an overkill. Is average so much less accurate? It would be much cheaper to maintain. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov