Hi Pradeep,

PRDEEP KUMAR wrote:
> Hi All,
>
>   How can I see the  memory range used  by kernel in  solaris  on X86 
> system?
>   How can I see the  VA->PA mappings?
>
>  If you could give me the commands would be better,Otherwise also ok.
# echo "p0::pmap" | mdb -k

or

# echo "kas::walk seg | ::seg" |  mdb -k

will give you base virtual address and virtual sizes for the kernel's 
memory segments.

Walking the list of kernel pages to get physical page numbers:

# echo "kvp::walk page | ::print page_t p_pagenum" | mdb -k

should work (but may not be complete).  In general, if you have a kernel 
virtual address,
 # echo "virtual_address::vtop" | mdb -k

will give you the physical address.


max

>
> Thanks,
> Pradeep
> ------------------------------------------------------------------------
>
> _______________________________________________
> opensolaris-code mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
>   

_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to