summaryrefslogtreecommitdiff
path: root/d1/455000a5de61012331bf187e6c0566c3c8d3b1
blob: 0fbc66abf0d959cdee5bd08e9367fd7005f22347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
Return-Path: <hearn@vinumeris.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id A03A29D
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed, 14 Oct 2015 09:09:42 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-io0-f175.google.com (mail-io0-f175.google.com
	[209.85.223.175])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id A60EDA1
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed, 14 Oct 2015 09:09:41 +0000 (UTC)
Received: by iodv82 with SMTP id v82so48551591iod.0
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed, 14 Oct 2015 02:09:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=vinumeris.com; s=google;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=+Q4jsXvqoVcuHb2AZ0lBxBjRttymCw2yV/x3GScoLlI=;
	b=hT0TCWl5QhYFe5tPdeQ0c1ZzBwjPR6xHqntDhLwaSs+UTEl4rS4iinSzceGPbcqRhP
	rUewev8cQuiY8gg+6G2w/sLohmmDSAmWrGWIsLYGxa3Jc7ISLMVaB4b426WS12SX5Cx1
	t6CZ5/gxzZ+6hcySR86tJd2+jofNpQWHyWYz4=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:cc:content-type;
	bh=+Q4jsXvqoVcuHb2AZ0lBxBjRttymCw2yV/x3GScoLlI=;
	b=PN+jp3p2VVWeIOiabSt9p8WRx+vQukHDiWOXSmDtbiFRoLgJY65uT2AfRRT7tKar3N
	1NFxOyX8ro0KOeWOoN5z26IpCNhbhEKZtEuQ7NXutLiPtrqX5VNy98n3d/8Cf0rh1nkB
	wjfoBujKKO8Sy41cMzBnx73CalPxgwN+GgVPdNm57nuV0jxXC61GUzbNHeQ/Su5c8twj
	lfm/73ttlrtaHZ5nJ3j7LiMrX4peQBApS3nipX5RUCN9umDtvV0EnDdZVbOqC4yUGqKW
	5bF1siJeSJP3wk2hsuEPHACvPZHtZ+dEC0wqSuBUuGrmpsxDkOtut0claufMhtTkrgno
	IUSA==
X-Gm-Message-State: ALoCoQl3uuFWOGMF12luPqcrHY/LbTDhCPuHPUc1GeftRuTfbAc80H96WXmNLwMpXaD7Umi3ECMy
MIME-Version: 1.0
X-Received: by 10.107.165.140 with SMTP id o134mr2222223ioe.29.1444813780936; 
	Wed, 14 Oct 2015 02:09:40 -0700 (PDT)
Received: by 10.50.123.166 with HTTP; Wed, 14 Oct 2015 02:09:40 -0700 (PDT)
Received: by 10.50.123.166 with HTTP; Wed, 14 Oct 2015 02:09:40 -0700 (PDT)
In-Reply-To: <2354813.5q0TUrZsWe@garp>
References: <99C42DE7-814A-48F8-AB28-A5ADD77A9FD9@toom.im>
	<2354813.5q0TUrZsWe@garp>
Date: Wed, 14 Oct 2015 11:09:40 +0200
Message-ID: <CA+w+GKTYNxmCR_mcTmu=u8RkjkJqOD=6_SKsfygGjXB-YpWBXQ@mail.gmail.com>
From: Mike Hearn <hearn@vinumeris.com>
To: bitcoin-xt <bitcoin-xt@googlegroups.com>
Content-Type: multipart/alternative; boundary=001a1141fb902e200405220cece2
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham
	version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	smtp1.linux-foundation.org
Cc: Bitcoin Dev <bitcoin-dev@lists.linuxfoundation.org>
Subject: Re: [bitcoin-dev] Memory leaks?
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Bitcoin Development Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Oct 2015 09:09:42 -0000

--001a1141fb902e200405220cece2
Content-Type: text/plain; charset=UTF-8

Leaks are not the only explanation possible. Caches and fragmentation can
also give this sort of effect. Unfortunately the tools to debug this aren't
great. You could try a build with tcmalloc and use it to investigate heap
stats.

Odinn, trolling like a 3 year old will get you swiftly banned. Last warning.
On 14 Oct 2015 9:58 am, "Tom Zander" <tomz@freedommail.ch> wrote:

> On Tuesday 13 Oct 2015 14:56:08 Jonathan Toomim  via bitcoin-dev wrote:
> > Does anybody have any guesses where we might be leaking memory, or what
> is
> > using the additional 2.4 GB? I've been using minrelaytxfee=0.00003 or
> > similar on my nodes. Maybe there's a leak in the minrelaytxfee code path?
> > Has anyone else seen something similar?
>
> I suggest running it in valgrind with --leak-check=full for 10 minutes.
>
>   valgrind --leak-check=full src/bitcoind 2>&1 | tee out
>
> This at least will show you any memory leaks at exit.
> Naturally, the leaks you observe may just be design issues where cache can
> grow to much and when the cache is cleaned on shutdown you won't see it in
> the
> valgrind output.
>
> --
> You received this message because you are subscribed to the Google Groups
> "bitcoin-xt" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to bitcoin-xt+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

--001a1141fb902e200405220cece2
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">Leaks are not the only explanation possible. Caches and frag=
mentation can also give this sort of effect. Unfortunately the tools to deb=
ug this aren&#39;t great. You could try a build with tcmalloc and use it to=
 investigate heap stats.</p>
<p dir=3D"ltr">Odinn, trolling like a 3 year old will get you swiftly banne=
d. Last warning.</p>
<div class=3D"gmail_quote">On 14 Oct 2015 9:58 am, &quot;Tom Zander&quot; &=
lt;<a href=3D"mailto:tomz@freedommail.ch">tomz@freedommail.ch</a>&gt; wrote=
:<br type=3D"attribution"><blockquote class=3D"gmail_quote" style=3D"margin=
:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tuesday 13 Oct =
2015 14:56:08 Jonathan Toomim=C2=A0 via bitcoin-dev wrote:<br>
&gt; Does anybody have any guesses where we might be leaking memory, or wha=
t is<br>
&gt; using the additional 2.4 GB? I&#39;ve been using minrelaytxfee=3D0.000=
03 or<br>
&gt; similar on my nodes. Maybe there&#39;s a leak in the minrelaytxfee cod=
e path?<br>
&gt; Has anyone else seen something similar?<br>
<br>
I suggest running it in valgrind with --leak-check=3Dfull for 10 minutes.<b=
r>
<br>
=C2=A0 valgrind --leak-check=3Dfull src/bitcoind 2&gt;&amp;1 | tee out<br>
<br>
This at least will show you any memory leaks at exit.<br>
Naturally, the leaks you observe may just be design issues where cache can<=
br>
grow to much and when the cache is cleaned on shutdown you won&#39;t see it=
 in the<br>
valgrind output.<br>
<br>
--<br>
You received this message because you are subscribed to the Google Groups &=
quot;bitcoin-xt&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:bitcoin-xt%2Bunsubscribe@googlegroups.com">bitcoi=
n-xt+unsubscribe@googlegroups.com</a>.<br>
For more options, visit <a href=3D"https://groups.google.com/d/optout" rel=
=3D"noreferrer" target=3D"_blank">https://groups.google.com/d/optout</a>.<b=
r>
</blockquote></div>

--001a1141fb902e200405220cece2--