From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id C455B65E76F; Fri, 6 Oct 2023 17:43:43 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org C455B65E76F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1696603423; bh=33x5xjhWNVb4TL736YRTRv5Skf45osA0ONld+SD8vqc=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=O78ZgfcNX3v+JyoC7XnRYURBn6nqqxqG3GaEwKZYQpu96dzxTVajSbKjOThqY2W9L AWKcSm/Y5oleb4oZrXTi4McWfR+kPPFmyE5P+TZ/VlkusYIUD5YGN7HBrzOWEX5rvq 7LKxjseatN6AeOU1DgBLVWqOQZBm4yBPXPgcWH0c= Received: from smtp61.i.mail.ru (smtp61.i.mail.ru [95.163.41.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 071C065E76F for ; Fri, 6 Oct 2023 17:43:42 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 071C065E76F Received: by smtp61.i.mail.ru with esmtpa (envelope-from ) id 1qom3I-00CEKY-1w; Fri, 06 Oct 2023 17:43:40 +0300 Message-ID: <9c1f5176-6bcc-4a35-bf80-40ad3e2d6074@tarantool.org> Date: Fri, 6 Oct 2023 17:43:40 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Maxim Kokryashkin References: <1694514399.719299784@f315.i.mail.ru> <370699e3-9e7d-f24b-600d-970cd5bed080@tarantool.org> <1695028695.970460840@f316.i.mail.ru> In-Reply-To: <1695028695.970460840@f316.i.mail.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9FE0487E502468146ED88439A29F047FF7B45011B15AF91FB00894C459B0CD1B9BE0121EFC0E142AF44466063847C346CE3EFEB9ACFFB32ECCD5BE68A8FD4D49C X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7A4C4638C9DDF45FCEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006372FCE560095E3DFB88638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8189354A0DA7B8BE795C7C582385AD7DD117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCAE9A1BBD95851C5BA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352033AC447995A7AD186FD1C55BDD38FC3FD2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EE26055571C92BF10FB341D7040ADD27A2D8FC6C240DEA76429C9F4D5AE37F343AA9539A8B242431040A6AB1C7CE11FEE32D01283D1ACF37BA2D242C3BD2E3F4C6C4224003CC836476E2F48590F00D11D6E2021AF6380DFAD1A18204E546F3947C1D471462564A2E192E808ACE2090B5E1725E5C173C3A84C3E478A468B35FE767089D37D7C0E48F6C8AA50765F7900637A3917133FE8A76BDEFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: 0D63561A33F958A5863A6B3C4A43E14D34406CADE52917037478B1A17D57F5CCF87CCE6106E1FC07E67D4AC08A07B9B0CE135D2742255B35CB5012B2E24CD356 X-C8649E89: 1C3962B70DF3F0ADBF74143AD284FC7177DD89D51EBB7742424CF958EAFF5D571004E42C50DC4CA955A7F0CF078B5EC49A30900B95165D34A5112A9AECFE11B18E7470E53AB304EAE646042974C180687467A54B6B5E940AE614DEF5E031686E1D7E09C32AA3244CD44C4095C693CA30A9BFB076729F0A3BE8FBBEFAE1C4874CBAD658CF5C8AB4025DA084F8E80FEBD3FFA33E6B6B2F82C47A83BD0C44CE203720ABEDE4BBDD9CDD X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj0Piy1iZpfs64TGosVIaiPA== X-Mailru-Sender: 11C2EC085EDE56FAC07928AF2646A7695938DE9D954B42029D512C112EA0ED4D8A2AC75D222269F8EBA65886582A37BD66FEC6BF5C9C28D98A98C1125256619760D574B6FC815AB872D6B4FCE48DF648AE208404248635DF X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit 2/2] profilers: purge generation mechanism X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Bronnikov via Tarantool-patches Reply-To: Sergey Bronnikov Cc: Maxim Kokryashkin , tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Hi, Max On 9/18/23 12:18, Maxim Kokryashkin wrote: > Hi, Sergey! > Thanks for the comments! > Here is the new message: > ======= > profilers: purge generation mechanism > Since both of the profiler parsers are now processing > the events in a stream-like fashion, the generation > mechanism is excessive and can be purged. This results > in a significant memory consumption drop, especially > for the AVL-tree part. > Consider this script: > | jit.off() > | misc.sysprof.start{mode = 'C', interval=10} > | for i = 1, 1e7 do tostring(i) end > | misc.sysprof.stop() > After executing it with LuaJIT, you can parse it like this: > | $ time -v luajit-parse-sysprof sysprof.bin > So, before the patch: > | Maximum resident set size (kbytes): 224928 > And after the patch: > | Maximum resident set size (kbytes): 32780 > That is the 85% reduction in memory consumption. > Follows up tarantool/tarantool#8700 Seems you forgot force-push to the branch.