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
|
Return-Path: <tomz@freedommail.ch>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
[172.17.192.35])
by mail.linuxfoundation.org (Postfix) with ESMTPS id E87ED90
for <bitcoin-dev@lists.linuxfoundation.org>;
Wed, 21 Oct 2015 07:29:27 +0000 (UTC)
X-Greylist: from auto-whitelisted by SQLgrey-1.7.6
Received: from mx-out01.mykolab.com (mx01.mykolab.com [95.128.36.1])
by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 1BF0FE3
for <bitcoin-dev@lists.linuxfoundation.org>;
Wed, 21 Oct 2015 07:29:27 +0000 (UTC)
X-Virus-Scanned: amavisd-new at kolabnow.com
X-Spam-Score: -2.183
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,
MIME_HEADER_CTYPE_ONLY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.1
Received: from mx03.mykolab.com (mx03.mykolab.com [10.20.7.101])
by mx-out01.mykolab.com (Postfix) with ESMTPS id EB06F615DC;
Wed, 21 Oct 2015 09:29:23 +0200 (CEST)
From: Tom Zander <tomz@freedommail.ch>
To: bitcoin-xt@googlegroups.com,
Bitcoin Dev <bitcoin-dev@lists.linuxfoundation.org>
Date: Wed, 21 Oct 2015 08:29:19 +0100
Message-ID: <1445414983.m7gvNPDAo8@garp>
In-Reply-To: <984D5FD5-9871-43FC-BD44-5F2E6EFD0671@toom.im>
References: <99C42DE7-814A-48F8-AB28-A5ADD77A9FD9@toom.im>
<1FE17DEB-8F77-4A60-A644-46A4F97D0E24@toom.im>
<984D5FD5-9871-43FC-BD44-5F2E6EFD0671@toom.im>
Content-Type: multipart/signed; boundary="nextPart1848417.WEtRHy8Cti";
micalg="pgp-sha256"; protocol="application/pgp-signature"
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
smtp1.linux-foundation.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, 21 Oct 2015 07:29:28 -0000
--nextPart1848417.WEtRHy8Cti
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
On Tuesday 20 Oct 2015 20:01:16 Jonathan Toomim wrote:
> claimed that he had this memory usage issue on Linux, but not on Mac OS X,
> under a GBT workload in both situations. If this is true, that would
> suggest this might be a fragmentation issue due to poor memory allocation.
Please make sure you measure your memory usage correctly on Linux, it is
notoriously easy to get misleading info from tools like top.
I use this one on Linux.
$cat ~/bin/showmemusage
#!/bin/sh
if test -z "$1"; then
echo "need a pid"
exit
fi
mem=`echo 0 $(cat /proc/$1/smaps | grep Pss | awk '{print $2}' | \
sed 's#^#+#' ) | bc`
echo "$mem KB"
--nextPart1848417.WEtRHy8Cti
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAABCAAGBQJWJz7SAAoJEMKlVF6pHMrnmCoQAKrH10iYL6q2nOqKZfehuvzq
VOHpk5m4bRkpKKggb2n8t9WzikghfuGFbXvtlJbTwUhIr3ktGT8N6uNI9xz4Lb53
bQ3e/gpOzbhfe+/AkOtsR3uQoE8K/JF9YFSgHaWhp3t3863Mn9pwJAvgChyumIu9
MVIlr9bwYHmMVwmRUj0TQyLEPuNRMDagovcADcIO8grb+Nh29yWyxegW7IEblxW+
xh1T8k4CGsoNJTAzYJw1L6n1EZBVa4yP4onF9ZOmuuz25HaPmORGxkVym2bqW2Ir
Htd2qmHblWDI2iJpOkFxOUqCvk9nYYkRN113C5KGWcwdkKegUSiUrE9r0JGCHU2b
PCZ+k4lSlV2TJDEwx8lgBaTvkGvRfaHr7kjf0eXVVbI7IV3NnzFtNPHQKpj38tVM
DhpoAbk0URqgCemIT57pXaDzTFtRyHi3+n0k9SKV4xi6Eyl2/GOQMq5jGWvL6MKe
N/3s5cUDQOWx5VGsKTA/8QFVCwwHckGZNvqE/C5Qfx4IibIJyfEdizAETz+/2wSC
1m0/TW0QeKuuaU9CpiwtMJM3IN5E7so7WMHkXE3S9U0hoY9YLG9tejPnLq301P+S
3i2TpiytGsCUVX2m1r7Edxadp37yCYyQa3FH7cDPvl6PE8fAoNzrX27fwAqI3qUO
ds+3ZRgX1aTxtEW3pwwW
=rkhr
-----END PGP SIGNATURE-----
--nextPart1848417.WEtRHy8Cti--
|