[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensolaris-mdb-discuss
Subject:    Re: [mdb-discuss] [perf-discuss] Memory Statistics
From:       "max () bruningsystems ! com" <max () bruningsystems ! com>
Date:       2009-03-31 11:21:42
Message-ID: 49D1FCC6.5060008 () bruningsystems ! com
[Download RAW message or body]

And I've blogged about it at 
http://mbruning.blogspot.com/2009/03/faster-memstat-for-mdb.html

max

Ben Rockwood wrote:
> max@bruningsystems.com wrote:
>   
>> 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.
>>     
>
> Wow!  Thanks for posting this Max!!
>
> benr.
>
>   

_______________________________________________
mdb-discuss mailing list
mdb-discuss@opensolaris.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic