Hi Jim, Jim Mauro wrote: > > mdb'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. > 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 this sound reasonable? The code for the modified memstat routine is attached. See the README.memstat file for instructions on building and using.
thanks, max -------------- next part -------------- A non-text attachment was scrubbed... Name: memstat.tar.Z Type: application/x-compress Size: 5090 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/mdb-discuss/attachments/20090330/3081f174/attachment.bin>