Hi Jim, Jim Mauro wrote:
I have implemented a version of ::memstat that runs about 3 times faster on my 2GB laptop, and gives the almost exactly the results as the original memstat. Here is what I do... Instead of using the page walker which basically walks hash chains, I read in the pages off of the memseg list, and then just go through them. So, does thismdb's memstat is cool in how it summarizes things, but it takes a very long time to run on large systems. memstat is walking page lists, so it should be quite accurate. If you can live with the run time of ::memstat, it's currently your best bet for memory accounting.
sound reasonable? The code for the modified memstat routine is attached. See the README.memstat file for instructions on building and using. thanks, max
memstat.tar.Z
Description: Unix compressed data
_______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org