Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 70F184D3 for ; Thu, 22 Oct 2015 16:06:52 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-ob0-f169.google.com (mail-ob0-f169.google.com [209.85.214.169]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 1BDF11B1 for ; Thu, 22 Oct 2015 16:06:52 +0000 (UTC) Received: by obcqt19 with SMTP id qt19so71277445obc.3 for ; Thu, 22 Oct 2015 09:06:51 -0700 (PDT) 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=SCzNrUxMLqCh/Y/S5J1gERTOAYK8mCTXSoA0IH7auzc=; b=hpYG3MkKdw+d2xPwkHvWwqOGZW8lSLQqz0dIZ3oMuNHZDSN+XHTTDxAE8NU/sfl3Gn HcuJ79pw+Mz8/B3Z5tH/RLSSMsxZ67NGgcuyylZIn7L0jzTtBYOQgOHYohfWCyJBolto V712rhFCLDuEeBKFyXuhEmUpxHeUy9gfnRLjNJ4RxzMsTMLRFVfEATPtobaDeE6kDfFZ cQtd/S/AOBP+uy5a3Tv6bv7Vnrrt2lVbjzf1HXFBXChak2i7r8W1QyeYUpJ323h5Cvtj QYtmHK9LHmttZkqwG8dDZ6loRd8sHPli1JWrailgh/EQHHOewZ0rLApKhBpVZ4OY+tDA K2AA== X-Gm-Message-State: ALoCoQknHtPFmOrdNIRDwrHgT/iY+vLsVYzgKJ9jJnIaAAoR1OIgr8cnrKgX9yy3jBzSgYuBh2fd MIME-Version: 1.0 X-Received: by 10.60.76.137 with SMTP id k9mr11842068oew.70.1445530011414; Thu, 22 Oct 2015 09:06:51 -0700 (PDT) Received: by 10.182.236.170 with HTTP; Thu, 22 Oct 2015 09:06:51 -0700 (PDT) Received: by 10.182.236.170 with HTTP; Thu, 22 Oct 2015 09:06:51 -0700 (PDT) In-Reply-To: <1445414983.m7gvNPDAo8@garp> 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> Date: Thu, 22 Oct 2015 09:06:51 -0700 Message-ID: From: Multipool Admin To: Tom Zander Content-Type: multipart/alternative; boundary=047d7b33db5ad7ca790522b3ae7c 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 Cc: Bitcoin Dev , bitcoin-xt 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:06:52 -0000 --047d7b33db5ad7ca790522b3ae7c Content-Type: text/plain; charset=UTF-8 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 > > --047d7b33db5ad7ca790522b3ae7c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

This is a real issue.=C2=A0 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 b= itcoin-dev" <bitcoin-dev@lists.linuxfoundation.org> wrote:
On Tuesday 20 Oct 2015 20:01:16 Jonatha= n Toomim wrote:
>=C2=A0 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 allocat= ion.

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
=C2=A0 =C2=A0 echo "need a pid"
=C2=A0 =C2=A0 exit
fi

mem=3D`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/mail= man/listinfo/bitcoin-dev

--047d7b33db5ad7ca790522b3ae7c--