Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (17901a976a5cdd1e6a6c10664987e25a7a9e3411)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Jaka Kranjc <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (17901a976a5cdd1e6a6c10664987e25a7a9e3411)
  • Date: Mon, 7 Jan 2008 07:16:44 -0600

GIT changes to master grimoire by Jaka Kranjc <lynxlynxlynx AT sourcemage.org>:

ChangeLog | 3 +++
utils/exmap/BUILD | 2 ++
utils/exmap/DEPENDS | 4 ++++
utils/exmap/DETAILS | 36 ++++++++++++++++++++++++++++++++++++
utils/exmap/FINAL | 5 +++++
utils/exmap/HISTORY | 3 +++
utils/exmap/INSTALL | 2 ++
7 files changed, 55 insertions(+)

New commits:
commit 17901a976a5cdd1e6a6c10664987e25a7a9e3411
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

utils/exmap: memory analysis tool that accurately determines memory use

diff --git a/ChangeLog b/ChangeLog
index 30dd693..e35d69a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2008-01-07 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * utils/exmap: memory analysis tool that accurately determines memory
use
+
2008-01-07 Vlad Glagolev <stealth AT sourcemage.org>
* FUNCTIONS: added default function for building the perlish spells
* perl-cpan/FUNCTIONS: use this function from root
diff --git a/utils/exmap/BUILD b/utils/exmap/BUILD
new file mode 100755
index 0000000..95ae79a
--- /dev/null
+++ b/utils/exmap/BUILD
@@ -0,0 +1,2 @@
+sed -i 's,-Werror,,' Makefile */Makefile &&
+make
diff --git a/utils/exmap/DEPENDS b/utils/exmap/DEPENDS
new file mode 100755
index 0000000..aecd8d3
--- /dev/null
+++ b/utils/exmap/DEPENDS
@@ -0,0 +1,4 @@
+depends g++ &&
+depends gtkmm2 &&
+depends pcre &&
+depends boost # no specification of which part is needed
diff --git a/utils/exmap/DETAILS b/utils/exmap/DETAILS
new file mode 100755
index 0000000..a398f6f
--- /dev/null
+++ b/utils/exmap/DETAILS
@@ -0,0 +1,36 @@
+ SPELL=exmap
+ VERSION=0.10
+ SOURCE="$SPELL-$VERSION.tgz"
+ SOURCE_URL[0]=http://www.berthels.co.uk/$SPELL/download/$SOURCE
+
SOURCE_HASH=sha512:ce9cd231ab8d726ea29f9ad1cccd505b00661290acfa6dadfe0bee756d706011cc7003ade011b106778eaa11d00b8b7b2eb094fb3666062faa063761f4622503
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ WEB_SITE="http://www.berthels.co.uk/exmap/";
+ LICENSE[0]=GPL2
+ ENTERED=20080105
+ SHORT="memory analysis tool that accurately determines memory use"
+cat << EOF
+Exmap is a memory analysis tool which allows you to accurately determine how
+much physical memory and swap is used by individual processes and shared
+libraries on a running system. In particular, it accounts for the sharing
+of memory and swap between different processes.
+
+To my knowledge, other tools can determine that some memory is shared,
+but can't determine how many processes are making use of that memory and so
+fairly apportion the cost between the processes making use of it.
+
+Exmap uses a loadable kernel module to assign a unique id to each physical
+or swap page in use by each process. This information is then collated and
+'effective' usage numbers calculated. A GTK program is provided to view the
+information (and a command line tool is planned for a future release).
+
+Basically, this allows you to examine a complex system of processes and
+determine the effective memory usage of each process, mapped file, ELF
+section and ELF symbol, which can be helpful in memory optimisation work.
+
+It accounts for shared memory in the following way: when a page of memory
+is found to be shared between N processes, the totals for each process are
+given a 1/N share of that page.
+
+Exmap doesn't allow you to see details on how and where memory on the heap is
+allocated. Tools such as valgrind/massif and memprof are more use in this
case.
+EOF
diff --git a/utils/exmap/FINAL b/utils/exmap/FINAL
new file mode 100755
index 0000000..dad0a21
--- /dev/null
+++ b/utils/exmap/FINAL
@@ -0,0 +1,5 @@
+depmod -a $(get_kernel_version) &&
+message "$MESSAGE_COLOR
+To use exmap you need to first run: modprobe exmap
+If you want to autoload it on startup, add exmap to /etc/modules
+$DEFAULT_COLOR"
diff --git a/utils/exmap/HISTORY b/utils/exmap/HISTORY
new file mode 100644
index 0000000..0367320
--- /dev/null
+++ b/utils/exmap/HISTORY
@@ -0,0 +1,3 @@
+2008-01-05 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, INSTALL, FINAL: spell created
+
diff --git a/utils/exmap/INSTALL b/utils/exmap/INSTALL
new file mode 100755
index 0000000..b4befbb
--- /dev/null
+++ b/utils/exmap/INSTALL
@@ -0,0 +1,2 @@
+cp kernel/exmap.ko "$INSTALL_ROOT"/lib/modules/$(get_kernel_version)/misc &&
+cp src/gexmap "$INSTALL_ROOT"/usr/bin



  • [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (17901a976a5cdd1e6a6c10664987e25a7a9e3411), Jaka Kranjc, 01/07/2008

Archive powered by MHonArc 2.6.24.

Top of Page