Sun Solutions by Forsythe
Jarod Jenson
Chief Technology Architect
Paul Zajdel
Sun Solutions Practice Director
Fred King
Practice Manager
Corey Brune
Master Consultant
John J McLaughlin
Sun Product Specialist
David Rubio
Senior Consultant

virtual memory

Using mdb on the Solaris kernel to dump pages of memory

Wed, 04/09/2008 - 17:44 by David Rubio

I will demonstrate the power of mdb(1) by displaying kernel data structures related to virtual memory (VM) in order to show how to dump the contents of any running application's memory or any page of memory in general. As an example I will run a simple shell script that I will end up locating in the shell's heap. When I first figured out this example, it was an educated guess on my part that a shell script would end up in the heap of the shell interpreter. The file name of an interpreter script (files starting with #!) gets passed to the invoked interpreter as one of its arguments.



Syndicate content