Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 40760412 for ; Thu, 22 Oct 2015 16:28:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id B93EC63 for ; Thu, 22 Oct 2015 16:28:05 +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 c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id t9MGS1VX029230 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 22 Oct 2015 09:28:02 -0700 Content-Type: multipart/signed; boundary="Apple-Mail=_78BD18D0-A3E3-445C-BACC-743321EC42DD"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Pgp-Agent: GPGMail 2.5.2 From: Jonathan Toomim In-Reply-To: Date: Thu, 22 Oct 2015 09:27:59 -0700 Message-Id: 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 , Bitcoin Dev X-Mailer: Apple Mail (2.1878.6) X-Sonic-CAuth: UmFuZG9tSVbQmh0VkKxa32A9yqazeu9fbSyl7/vsrMW4zQez/qz0QvCSzrh8OVRcXMdOcuxlbAnySaWsMuIs7PXnR44Cf/gA X-Sonic-ID: C;xvy33Nl45RGC9L0U9jFv0A== M;4Gd93dl45RGC9L0U9jFv0A== X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,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 X-Mailman-Approved-At: Thu, 22 Oct 2015 16:36:37 +0000 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2015 16:28:06 -0000 --Apple-Mail=_78BD18D0-A3E3-445C-BACC-743321EC42DD Content-Type: multipart/alternative; boundary="Apple-Mail=_2F109C19-DFA6-409E-BAAF-43B8511106FC" --Apple-Mail=_2F109C19-DFA6-409E-BAAF-43B8511106FC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii You may want to add a cron job to restart bitcoind every day or two as a = damage control mechanism until we figure this out. On Oct 22, 2015, at 9:06 AM, Multipool Admin wrote: > This is a real issue. The bitcoind process is getting killed every = few days when it reaches around 55gb of usage on my server. >=20 > On Oct 21, 2015 12:29 AM, "Tom Zander via bitcoin-dev" = wrote: > 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. >=20 > Please make sure you measure your memory usage correctly on Linux, it = is > notoriously easy to get misleading info from tools like top. >=20 > I use this one on Linux. >=20 > $cat ~/bin/showmemusage > #!/bin/sh > if test -z "$1"; then > echo "need a pid" > exit > fi >=20 > mem=3D`echo 0 $(cat /proc/$1/smaps | grep Pss | awk '{print $2}' | \ > sed 's#^#+#' ) | bc` > echo "$mem KB" >=20 > _______________________________________________ > bitcoin-dev mailing list > bitcoin-dev@lists.linuxfoundation.org > https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev >=20 >=20 > -- > 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. --Apple-Mail=_2F109C19-DFA6-409E-BAAF-43B8511106FC Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
You may want to add a cron job to restart bitcoind every day or two as a damage control mechanism until we figure this out.

On Oct 22, 2015, at 9:06 AM, Multipool Admin <admin@multipool.us> wrote:

This is a real issue.  The bitcoind process is getting killed every few days when it reaches around 55gb of usage on my server.

On Oct 21, 2015 12:29 AM, "Tom Zander via bitcoin-dev" <bitcoin-dev@lists.linuxfoundation.org> wrote:
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"

_______________________________________________
bitcoin-dev mailing list
bitcoin-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev


--
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.

--Apple-Mail=_2F109C19-DFA6-409E-BAAF-43B8511106FC-- --Apple-Mail=_78BD18D0-A3E3-445C-BACC-743321EC42DD 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 iQEcBAEBCgAGBQJWKQ6QAAoJEIEuMk4MG0P1hiEH/0+PA/VbIYfcbSS14LoRziEB W/8KWnNnJTarNcJsejdorTz2Km6Z9Xit0OyZExrk9jc+xglqoLzHsMmTWO8l6kpz 4UukgoeMIC5nYPg8OYGStkFeoWRceGqvo1GtaJmxAI48fcg3tS7tH8r3OvKjhmRJ BOgBCXYGvpT1Nax9mF3OjoT0oPFC7r1Tl/BlfO7lpJE70C5EeUGFhA+wT5kSVans XVu6hNibJRruL0JWT2oSCdfF/YIMF515kNu76TZc5BHLYLz6QtO23FrFVN3hgv/9 TiRu1QAUtBk29jRfdpHplfdlvFLF+HXbdq6IA2G3SdN/tuse6uaukkRVytsXnfY= =ZiNb -----END PGP SIGNATURE----- --Apple-Mail=_78BD18D0-A3E3-445C-BACC-743321EC42DD--