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 4583128A07 for ; Sun, 2 Sep 2018 18:27:20 -0400 (EDT) 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 GtRuKxrLbcpL for ; Sun, 2 Sep 2018 18:27:20 -0400 (EDT) Received: from smtp53.i.mail.ru (smtp53.i.mail.ru [94.100.177.113]) (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 0278E289F6 for ; Sun, 2 Sep 2018 18:27:19 -0400 (EDT) Received: by smtp53.i.mail.ru with esmtpa (envelope-from ) id 1fwapy-0005LS-4g for tarantool-patches@freelists.org; Mon, 03 Sep 2018 01:27:18 +0300 Date: Mon, 3 Sep 2018 01:27:17 +0300 From: Konstantin Osipov Subject: [tarantool-patches] Re: [PATCH 2/7] vinyl: add global memory stats Message-ID: <20180902222717.GD536@chai> References: <1d418366ba3fd7fd5dfa651ab340ba931ec3577f.1535917763.git.vdavydov.dev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1d418366ba3fd7fd5dfa651ab340ba931ec3577f.1535917763.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 [18/09/02 23:23]: > box.info.memory() gives you some insight on what memory is used for, > but it's very coarse. For vinyl we need finer grained global memory > statistics. > > This patch adds such: they are reported under box.stat.vinyl().memory > and consist of the following entries: > > - level0: sum size of level-0 of all LSM trees. > - tx: size of memory used by tx write and read sets. > - tuple_cache: size of memory occupied by tuple cache. > - page_index: size of memory used for storing page indexes. > - bloom_filter: size of memory used for storing bloom filters. > > It also removes box.stat.vinyl().cache, as the size of cache is now > reported under memory.tuple_cache. Please add a plea to docbot. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov