git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "René Scharfe" <rene.scharfe@lsrfire.ath.cx>
To: Stephen Boyd <sboyd@codeaurora.org>
Cc: git@vger.kernel.org
Subject: Re: git rev-list | git cherry-pick --stdin is leaky
Date: Thu, 09 May 2013 17:10:37 +0200	[thread overview]
Message-ID: <518BBC6D.9070006@lsrfire.ath.cx> (raw)
In-Reply-To: <51880FB7.8020701@codeaurora.org>

Am 06.05.2013 22:16, schrieb Stephen Boyd:
> Ok. I tested it and it definitely helps.
>
> ==10728== LEAK SUMMARY:
> ==10728==    definitely lost: 316,355,458 bytes in 8,652 blocks
> ==10728==    indirectly lost: 1,327,251,588 bytes in 16,180,628 blocks
> ==10728==      possibly lost: 677,049,918 bytes in 7,381,801 blocks
> ==10728==    still reachable: 9,238,039 bytes in 63,947 blocks
> ==10728==         suppressed: 0 bytes in 0 blocks
>
> vs.
>
> ==27614== LEAK SUMMARY:
> ==27614==    definitely lost: 2,369,692,222 bytes in 20,005,707 blocks
> ==27614==    indirectly lost: 829,151,786 bytes in 9,594,715 blocks
> ==27614==      possibly lost: 658,069,373 bytes in 6,345,172 blocks
> ==27614==    still reachable: 8,806,386 bytes in 50,199 blocks
> ==27614==         suppressed: 0 bytes in 0 blocks

Thanks, Stephen.  I'm going to prepare a series around that patch which 
will (hopefully) show that freeing these entries is safe by passing only 
const pointers down to the callbacks.  It's too late for 1.8.3, of 
course, but it shouldn't take another year as most of that series is 
done already. :)

We still have an impressive amount of leakage here.  I wonder why 
"indirectly lost" increased so much.  Do you perhaps still have the full 
output of valgrind for the run with the patch applied?

Thanks,
René

  reply	other threads:[~2013-05-09 15:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-30  0:11 git rev-list | git cherry-pick --stdin is leaky Stephen Boyd
2013-04-30 18:31 ` Junio C Hamano
2013-04-30 22:47 ` René Scharfe
2013-05-01 18:27   ` Stephen Boyd
2013-05-06 20:16   ` Stephen Boyd
2013-05-09 15:10     ` René Scharfe [this message]
2013-05-09 17:24       ` Stephen Boyd
  -- strict thread matches above, loose matches on Subject: below --
2013-04-29 23:30 Stephen Boyd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=518BBC6D.9070006@lsrfire.ath.cx \
    --to=rene.scharfe@lsrfire.ath.cx \
    --cc=git@vger.kernel.org \
    --cc=sboyd@codeaurora.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).