[pypy-svn] r59585 - pypy/build/benchmem

xoraxax at codespeak.net xoraxax at codespeak.net
Fri Oct 31 00:32:21 CET 2008


Author: xoraxax
Date: Fri Oct 31 00:32:17 2008
New Revision: 59585

Modified:
   pypy/build/benchmem/report.py
Log:
Added some comments after some discussion between Maciej and me (dirty seems to mean "different than in the backing store").

Modified: pypy/build/benchmem/report.py
==============================================================================
--- pypy/build/benchmem/report.py	(original)
+++ pypy/build/benchmem/report.py	Fri Oct 31 00:32:17 2008
@@ -183,16 +183,24 @@
                 result.snapshot.filter(group=HEAP).private_clean)
         makerow("HEAP-private_dirty", lambda result:
                 result.snapshot.filter(group=HEAP).private_dirty)
+        # we only show the clean bits of the code, this might not really work
+        # out if the code is not compiled position-indepently, likewise the often
+        # seen dirty code page might be a dispatch table (correct term?) of the linker
         makerow("IP-CODE-shared_clean", lambda result:
                 result.snapshot.filter(group=result.executable, kind=CODE).shared_clean)
         makerow("IP-CODE-private_clean", lambda result:
                 result.snapshot.filter(group=result.executable, kind=CODE).private_clean)
+        # whole static data of the process in memory, also including e.g. shared data with other processes
         makerow("IP-DATA-RSS", lambda result:
                 result.snapshot.filter(group=result.executable, kind=DATA).rss)
+        # static data that is not shared with another process and was not modified by the process
+        # can be easily shared with another process
         makerow("IP-DATA-private_clean", lambda result:
                 result.snapshot.filter(group=result.executable, kind=DATA).private_clean)
+        # static data that is not shared with another process and was modified by the process
         makerow("IP-DATA-private_dirty", lambda result:
                 result.snapshot.filter(group=result.executable, kind=DATA).private_dirty)
+        # rest includes other shared libraries that are neither the interpreter nor the heap
         makerow("REST-private_clean", lambda result:
                 result.snapshot.filter(group=result.executable, inv=True).
                 filter(group=HEAP, inv=True).private_clean)



More information about the Pypy-commit mailing list