> 
> Does anyone have any thoughts on the following [1] issue with mdb's 
> memstat dcmd? For some reason the values are incorrect on machines
> with lots (64 GB in this case) of RAM.
> 
> Thanks for any insight,
> - Ryan
> 
> [1]
> 
> >Does anyone know if there are any known issues with mdb's "::memstat"
> >dcmd on Solaris 9? I am seeing some weird output on a machine with
> >64 GB of RAM and kernel revision 118558-02:
> >
> >$ mdb -k
> >Loading modules: [ unix krtld genunix ip usba ptm cpc ipc random nfs ]
> >> ::memstat
> >Page Summary                Pages                MB  %Tot
> >------------     ----------------  ----------------  ----
> >Kernel                     400425              3128    5%
> >Anon                      3785762             29576   47%
> >Exec and libs               13060               102    0%
> >Page cache                 983088              7680   12%
> >Free (cachelist)          2873946             22452   36%
> >Free (freelist)  18446744073709550756    17592186044409    0%
> >
> >Total                     8055421             62932
> >> ::quit
> >
> >I looked through the patch documentation for 113471/118558, and didn't see
> >any issues specifically related to this. I am currently using mdb patch
> >revision "-04":
> >
> >$ /usr/ccs/bin/what /bin/mdb
> >/bin/mdb:
> >         SunOS 5.9 Generic 113471-04 Aug 2003
> >
> >Any thoughts?
> >
> >Thanks,
> >- Ryan

This is bug:

6174625 ::memstat should not show ridiculous amounts of free memory 

Since you can't see the evaluations of bugs yet, I'll post this one:

---8<---

jwadams wrote:

The right answer is probably just adding a:

        if (physmem < stats.ms_total)
                physmem = stats.ms_total;

before we print out anything.
david.bustos at sun.com 10/5/04 23:01 GMT

---8<---

If you have time, this is a great example of a first simple bug fix
to get back into Solaris through OpenSolaris.  If you want to take
it on, let me know and I'll be your sponsor.

-Mike

-- 
Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/

Reply via email to