summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Toomim <j@toom.im>2015-10-21 10:58:15 -0700
committerbitcoindev <bitcoindev@gnusha.org>2015-10-21 17:58:21 +0000
commit27d9c0d1d04b09fd636ba004c67624aaf0def97e (patch)
tree9642f767fe5c741e7aeb36b7552fa351ddd3da42
parentc7bdde180fc4986dd233a3fcd40adf634b2761a1 (diff)
downloadpi-bitcoindev-27d9c0d1d04b09fd636ba004c67624aaf0def97e.tar.gz
pi-bitcoindev-27d9c0d1d04b09fd636ba004c67624aaf0def97e.zip
Re: [bitcoin-dev] Memory leaks?
-rw-r--r--62/70a8cd0ca456d754e9433d1a7cf07e863c6ae9113
1 files changed, 113 insertions, 0 deletions
diff --git a/62/70a8cd0ca456d754e9433d1a7cf07e863c6ae9 b/62/70a8cd0ca456d754e9433d1a7cf07e863c6ae9
new file mode 100644
index 000000000..802ca2f84
--- /dev/null
+++ b/62/70a8cd0ca456d754e9433d1a7cf07e863c6ae9
@@ -0,0 +1,113 @@
+Return-Path: <j@toom.im>
+Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
+ [172.17.192.35])
+ by mail.linuxfoundation.org (Postfix) with ESMTPS id E71203EE
+ for <bitcoin-dev@lists.linuxfoundation.org>;
+ Wed, 21 Oct 2015 17:58:21 +0000 (UTC)
+X-Greylist: from auto-whitelisted by SQLgrey-1.7.6
+Received: from d.mail.sonic.net (d.mail.sonic.net [64.142.111.50])
+ by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 18049116
+ for <bitcoin-dev@lists.linuxfoundation.org>;
+ Wed, 21 Oct 2015 17:58:20 +0000 (UTC)
+Received: from [192.168.1.190] (63.135.62.197.nwinternet.com [63.135.62.197]
+ (may be forged)) (authenticated bits=0)
+ by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id t9LHwGlW013413
+ (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
+ Wed, 21 Oct 2015 10:58:17 -0700
+Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
+Content-Type: multipart/signed;
+ boundary="Apple-Mail=_3B74EB59-4F9F-4B37-9189-FD68EB09370D";
+ protocol="application/pgp-signature"; micalg=pgp-sha512
+X-Pgp-Agent: GPGMail 2.5.2
+From: Jonathan Toomim <j@toom.im>
+In-Reply-To: <1445414983.m7gvNPDAo8@garp>
+Date: Wed, 21 Oct 2015 10:58:15 -0700
+Message-Id: <7E6110E8-F590-406A-9FBE-522BCFBC5989@toom.im>
+References: <99C42DE7-814A-48F8-AB28-A5ADD77A9FD9@toom.im>
+ <1FE17DEB-8F77-4A60-A644-46A4F97D0E24@toom.im>
+ <984D5FD5-9871-43FC-BD44-5F2E6EFD0671@toom.im>
+ <1445414983.m7gvNPDAo8@garp>
+To: bitcoin-xt@googlegroups.com
+X-Mailer: Apple Mail (2.1878.6)
+X-Sonic-CAuth: UmFuZG9tSVYp62acsbRLKnxyj8uoRkwtlXPnufS8M+vym0rK2lpWMHV1VQtUmSnlpk261HWlC6ojrOb+YjrLNv45j/RI9t1G
+X-Sonic-ID: C;xj5JTh145RGn7+K7sH9FTg== M;Ns24Th145RGn7+K7sH9FTg==
+X-Sonic-Spam-Details: 0.0/5.0 by cerberusd
+X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,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, 21 Oct 2015 17:58:22 -0000
+
+
+--Apple-Mail=_3B74EB59-4F9F-4B37-9189-FD68EB09370D
+Content-Transfer-Encoding: 7bit
+Content-Type: text/plain;
+ charset=us-ascii
+
+The method I was using was essentially
+
+ grep VmRSS /proc/$pid/status
+
+Comparing these two methods, I get
+
+Your method (PSS):
+ 2408313
+My method (RSS):
+ VmRSS: 2410396 kB
+
+On Oct 21, 2015, at 12:29 AM, Tom Zander <tomz@freedommail.ch> wrote:
+
+> On Tuesday 20 Oct 2015 20:01:16 Jonathan Toomim wrote:
+> 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"
+
+
+
+--Apple-Mail=_3B74EB59-4F9F-4B37-9189-FD68EB09370D
+Content-Transfer-Encoding: 7bit
+Content-Disposition: attachment;
+ filename=signature.asc
+Content-Type: application/pgp-signature;
+ name=signature.asc
+Content-Description: Message signed with OpenPGP using GPGMail
+
+-----BEGIN PGP SIGNATURE-----
+Comment: GPGTools - https://gpgtools.org
+
+iQEcBAEBCgAGBQJWJ9I4AAoJEIEuMk4MG0P1lYwH/jl+T92MHS4Yk5XFFtCLQm3X
+nmYuc6dAp2TXKTSRdF7W9rJfKHi3MPUTSg5kALcuMZTXayz5WOcN1IJF05i2woJx
+lX5xkwY8tB+BLkvfADAKP7fvtfUr9UkO8alC7Aoi2H3Cw5Xrfbu4Na7ghtbc29Ea
+vN5KqOCRme2bBJ2clxREfcjISObruTjl5unKOIdLmahZ7XnrBLb08MCKalHqW2Qv
+gNWkJbQysRVM80u7k9KpxEpw3n4cVGjM1PUiBz+Ikai7Ytb540LaMr+AOdqwCHBW
+HgHKTZ6y74e5wnZ39fvfkzkw3cAIWU+5X8sFga/6ZA08rN2n8L5YqNP0rhpJOYo=
+=Wwt2
+-----END PGP SIGNATURE-----
+
+--Apple-Mail=_3B74EB59-4F9F-4B37-9189-FD68EB09370D--
+