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 96B5C6FC83; Fri, 20 Aug 2021 10:06:20 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 96B5C6FC83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1629443180; bh=oZYcXBbeZKYCJGWqkhF1/BDt4AgkVvilw5YnE3h65jo=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Gy1VNnP8835SdALexQwMxs2y+ngqV/gc3NFLIgzgreT5mrThlE+YcoiHo2xK4gN8S s4dQ+VE7fvtSXP3zrSAyek7q4OnQCPRx+/yNyJ3NyIupmLxo3tXjzc6DNdMt2HzfCl dWkChfIZGPL+wmL8H5M2Q0XB4kNjGjwtYTXqA/UU= Received: from smtp35.i.mail.ru (smtp35.i.mail.ru [94.100.177.95]) (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 CA9256FC83 for ; Fri, 20 Aug 2021 10:06:19 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org CA9256FC83 Received: by smtp35.i.mail.ru with esmtpa (envelope-from ) id 1mGyba-0000G3-HA; Fri, 20 Aug 2021 10:06:19 +0300 To: tarantool-patches@dev.tarantool.org, imun@tarantool.org, skaplun@tarantool.org Date: Fri, 20 Aug 2021 14:05:41 +0700 Message-Id: <20210820070546.115293-1-m.shishatskiy@tarantool.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD92087353F0EC44DD906AB4890CDABF0C5CB76CEE71D3E4007182A05F538085040829ADC2EF7F8A574F140BF7FE198C284549D063A54BDAA720A6EA5BE8045C8AC X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE76DA79C5AFF329FDBEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637A900FA3C0C04B8698638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8D982B089B1A66CCB631345136936DB74117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCAE9A1BBD95851C5BA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352033AC447995A7AD182CC0D3CB04F14752D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EE7B96B19DC4093321BFC1D8BB4B114D1ED8FC6C240DEA7642DBF02ECDB25306B2B78CF848AE20165D0A6AB1C7CE11FEE362B3BD3CC35DA588BA3038C0950A5D36B5C8C57E37DE458B0BC6067A898B09E46D1867E19FE14079C09775C1D3CA48CF3D321E7403792E342EB15956EA79C166A417C69337E82CC275ECD9A6C639B01B78DA827A17800CE761F3F0D9CAB598E2731C566533BA786AA5CC5B56E945C8DA X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A213B5FB47DCBC3458834459D11680B5051D81CCDA47EB054DBB8D95BC5D909330 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C4C7A0BC55FA0FE5FCAFF3997ED9E44143BD1C3C5AC15EA2AFA16E400048224EA5B1881A6453793CE9C32612AADDFBE061E81978BB20A08B599510FB958DCE06DB6ED91DBE5ABE359A7EE5648E065588D41F9270390973918F93EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D3463DBE2ADA183F62FE86B65F388A51CC13036CB4203A06A44F6C9C709FA2E85E7AB89DC2208B7D5501D7E09C32AA3244C0EDE15961456266F5CE907F9C023FED6A90944CA99CF22E3927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXhoc2MC+w0dTOlt/IVqedc2 X-Mailru-Sender: 2317F5BEA8D613097CB8A225516EF02711B936E641EB0915F77CE1BC81BCB755F65EB2B7E877EAA5FF6B26DEAE20951894E739346DD9ABB838AE394B99C5394F99323991B04ED3930F27244EEAA5B9A5AE208404248635DF X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit v3 0/4] memprof: group allocations on traces by trace number 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: Mikhail Shishatskiy via Tarantool-patches Reply-To: Mikhail Shishatskiy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" New patch series with Sergey's comments in mind. Changes in v3: - Changed comments as per review; - Added trace address dump to avoid collisions; - Added humanize.describe_location function (see commit message); - Separated memprof test into subtests to be able to skip JIT-related tests on FreeBSD; - Adjusted memprof test payload to lock in the behavior (see patch message). Benchmark update: | ---------------------------------------------------------- | | JIT-off, memprof-on | | ---------------------------------------------------------- | | BEFORE | AFTER, v2 | AFTER, v3 | | ------------------ | ----------------- | ----------------- | | 4.8196 (0.0194) | +0.0170 (0.0291) | -0.0801 (0.0350) | | ---------------------------------------------------------- | | JIT-on, memprof-on | | ---------------------------------------------------------- | | BEFORE | AFTER, v2 | AFTER, v3 | | ------------------ | ----------------- | ----------------- | | 3.1243 (0.0770) | +0.1470 (0.0320) | +0.1976 (0.0341) | | -----------------------------------------------------------| Issue: https://github.com/tarantool/tarantool/issues/5814 Luajit branch: https://github.com/tarantool/luajit/tree/shishqa/gh-5814-group-allocations-on-trace-by-trace-number tarantool branch: https://github.com/tarantool/tarantool/tree/shishqa/gh-5814-group-allocations-on-trace-by-trace-number src/Makefile.dep.original | 2 +- src/lj_debug.c | 2 +- src/lj_debug.h | 2 +- src/lj_memprof.c | 75 +++++- src/lj_memprof.h | 22 +- .../misclib-memprof-lapi.test.lua | 252 ++++++++++++------ tools/memprof/humanize.lua | 21 +- tools/memprof/parse.lua | 22 +- tools/memprof/process.lua | 6 +- tools/utils/symtab.lua | 45 +++- 10 files changed, 331 insertions(+), 118 deletions(-) -- 2.32.0