Tom Zander [ARCHIVE] on Nostr: 📅 Original date posted:2015-10-21 📝 Original message:On Tuesday 20 Oct 2015 ...
📅 Original date posted:2015-10-21
📝 Original message: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"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20151021/5d946397/attachment.sig>
📝 Original message: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"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20151021/5d946397/attachment.sig>