What is Nostr?
Jonathan Toomim [ARCHIVE] /
npub1pl6ā€¦j0hj
2023-06-07 17:43:22
in reply to nevent1qā€¦p34x

Jonathan Toomim [ARCHIVE] on Nostr: šŸ“… Original date posted:2015-10-21 šŸ“ Original message:The method I was using was ...

šŸ“… Original date posted:2015-10-21
šŸ“ Original message: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 at 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"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20151021/b272a7de/attachment.sig>;
Author Public Key
npub1pl6kcz00s7wgn6syh73dta0qm9sqpmtw4adv8rnm2w9fmynkw45sayj0hj