From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from mail-oi0-x22c.google.com (mail-oi0-x22c.google.com [IPv6:2607:f8b0:4003:c06::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 8722B1F597; Thu, 26 Jul 2018 05:03:02 +0000 (UTC) Received: by mail-oi0-x22c.google.com with SMTP id v8-v6so757043oie.5; Wed, 25 Jul 2018 22:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8jG0HL/KsFozUtZ9eBMwTUTun5iwKUW6w2kHZsiiCns=; b=TPntPImeRjajWN2sPIWEtFemOvWsyDqMoDfLWdvJE/VNxWIKqs/z3GJfxLE7qR0IrO OOdof6stpdJGdxDiLI5XUog/nV6+xol8EwW8aKlZfCdFlrXz2WrYhkbg0nd5MmsVHumM /je+/+IWaW389dH6RheSVTpupeMLavS4TnE1A2zVT5jOrDK4UcN/0by6i8Zdj6/DWATS CUs1bPUJC/eQ8GZjHClFdDsDOeYo5pdvtOD7HCzZQ4vPWdTtEJTBxQ+b9aR90kWihPHK H3q1skLgVw5A7eCDZiFRgMJspX+KnCDzCcu0SXvFuqOJA8Bl4mEOJTOXl0xMSzQ0fqkY Cjww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8jG0HL/KsFozUtZ9eBMwTUTun5iwKUW6w2kHZsiiCns=; b=naMaBlZxp3Amm/kcMqFOskzerHJJFucRYmZ12JkFQA7VP8EwmooUNvqnNzspT1d9Sa 7fyxxux22j2513+YoxjPYS6y2Xz1QADl6uDyMK//owoJdHpj+vHLOoDVnnxWV44a6eOO 7dj7c6S9HbJivaoHgxSlLxd5XHrNt0HSw1tTH1l7u9fIAKOcqbRmz2De4XRIsLY9MoJk VUbqAk9A5xM3seNmri2Ex1+61JRF8CnUpxbLPUX5vv3l/QKK1aMi2OWPNfePOx1U5jB0 uU79fkt3ppL/ZrmjDTRLA8sOBHtQFMxbAx2wgayxo7we0FbZIH79GEQfV7vIscZHWXBg qr7A== X-Gm-Message-State: AOUpUlHMWA2ubZQKmv73GNUehyB07okJDlXfo+g8YDBpBTiM2GiSv/kx cbce14IEFZaDfnGbSimog4OIcLT7MdQSuPHJamNZBiambbY= X-Google-Smtp-Source: AAOMgpcHW3tdYEaa1tFhVuWkDxRGAf071x8eeDFunHtImiav4LNW5dwP8N1Jb0ElgtUkIzyBH1Q14jDji4TR9+fCBpE= X-Received: by 2002:aca:d5cd:: with SMTP id m196-v6mr428636oig.160.1532581380460; Wed, 25 Jul 2018 22:03:00 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4a:37d2:0:0:0:0:0 with HTTP; Wed, 25 Jul 2018 22:02:59 -0700 (PDT) In-Reply-To: <20180726024601.ievg7jdr7blgtff6@dcvr> References: <20180720092516.GA23759@dcvr> <20180720093416.GA27657@dcvr> <20180726024601.ievg7jdr7blgtff6@dcvr> From: Sam Saffron Date: Thu, 26 Jul 2018 15:02:59 +1000 Message-ID: Subject: Re: [ANN] mwrap 2.0.0 mwrap - LD_PRELOAD malloc wrapper for Ruby To: Eric Wong Cc: Ruby users , mwrap-public@80x24.org Content-Type: text/plain; charset="UTF-8" List-Id: Yes, this patch looks right to me. Even if we don't have perfect fidelity here it will give absolute clarity on "leak" vs "fragmentation related bloat". Even though jemalloc tries hard to compensate for fragmentation bloat is still possible. For full context here is a dump when I started the process (it was 500meg rss) https://transfer.sh/Q9zQS/start.txt Here is how it looks now (1.2G rss): https://transfer.sh/14fokY/now.txt The script I use to generate this stuff is: https://github.com/discourse/discourse/blob/master/script/mwrap_sidekiq