[Lunar-commits] <moonbase> smem: memory usage based on proportional segment size (realistic usage)

Florin Braescu florin at lunar-linux.org
Tue Oct 26 10:52:26 CEST 2010


commit b83c5562a256e8ed148ab6a184325304594397dd
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Tue Oct 26 11:52:26 2010 +0300

    smem: memory usage based on proportional segment size (realistic usage)
    
    Submitted by Auke Kok.
---
 zbeta/smem/BUILD   |    8 ++++++++
 zbeta/smem/DETAILS |   23 +++++++++++++++++++++++
 2 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/zbeta/smem/BUILD b/zbeta/smem/BUILD
new file mode 100644
index 0000000..1752c98
--- /dev/null
+++ b/zbeta/smem/BUILD
@@ -0,0 +1,8 @@
+(
+
+  make smemcap     &&
+  prepare_install  &&
+  install -m0755 smem smemcap /usr/bin/  &&
+  install -m0644 smem.8 /usr/share/man/man8/
+
+) > $C_FIFO 2>&1
diff --git a/zbeta/smem/DETAILS b/zbeta/smem/DETAILS
new file mode 100644
index 0000000..42d389b
--- /dev/null
+++ b/zbeta/smem/DETAILS
@@ -0,0 +1,23 @@
+          MODULE=smem
+         VERSION=0.9
+          SOURCE=$MODULE-$VERSION.tar.gz
+   SOURCE_URL[0]=$MIRROR_URL
+   SOURCE_URL[1]=http://www.selenic.com/$MODULE/download
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
+      SOURCE_VFY=sha1:b858f7be01ab889c8e573e3137f184abc6ad040d
+        WEB_SITE=http://www.selenic.com/$MODULE
+         ENTERED=20101026
+         UPDATED=20101026
+           SHORT="A memory analysis tool"
+
+cat <<EOF
+smem is a tool that can give numerous reports on memory usage on Linux
+systems. Unlike existing tools, smem can report proportional set size
+(PSS), which is a more meaningful representation of the amount of
+memory used by libraries and applications in a virtual memory system.
+Because large portions of physical memory are typically shared among
+multiple applications, the standard measure of memory usage known
+as resident set size (RSS) will significantly overestimate memory
+usage. PSS instead measures each application's "fair share" of each
+shared area to give a realistic measure.
+EOF


More information about the Lunar-commits mailing list