OpenSolaris
Collectives
Discussions
Documentation
Download
Source Browser
Free CD
Log-in
|
en
Community Group mdb
:
Tips and Tricks
Top Menu
Show
:
Comments
Attachments
History
Information
Print
:
Print
Print preview
Export as PDF
Export as RTF
Export as HTML
Export as XAR
Wiki code for
Tips and Tricks
Hide Line numbers
1: ==MDB Tips and Tricks== 2: 3: This page will serve as a repository of useful tools, documentation, procedures, or anything else relating to MDB. If you have a favorite dcmd invocation, a new MDB module, or a script built around MDB, please post the information to the [[MDB forum>>http://www.opensolaris.org/jive/forum.jspa?forumID=4]] and we’ll make sure to archive it here. 4: 5: 6: ===MDB Cheatsheet=== 7: 8: A great quick reference put together by [[Jonathan Adams>>http://blogs.sun.com/jwadams]]. You can find the PDF version [[here>>attach:mdb-cheatsheet.pdf]], and a postscript version [[here>>attach:mdb-cheatsheet.ps]]. 9: 10: ===Stack Munger=== 11: 12: [[munges>>attach:munges]] is a neat shell script written by [[Dave Powell>>http://blogs.sun.com/dep]] to coalesce similar stacks. See it in action: 13: 14: {{{ 15: > ::walk thread | ::findstack 16: stack pointer for thread fffffffffbc21c40: fffffffffbc44050 17: [ fffffffffbc44050 ~_resume~_from~_idle+0xde() ] 18: fffffffffbc44080 swtch+0xdf() 19: fffffffffbc44120 sched+0x8ef() 20: fffffffffbc44170 main+0x478() 21: fffffffffbc44180 ~_start+0x95() 22: stack pointer for thread fffffe8000005c80: fffffe8000005ae0 23: fffffe8000005b30 ~_interrupt+0x190() 24: fffffe8000005b70 lock~_set~_spl+0x1d() 25: fffffe8000005bc0 restore~_mstate+0xc7() 26: ... 27: > ::walk thread | ::findstack ! munges 28: 73 ================================== tp: fffffe800000bc80 29: swtch+0xdf() 30: cv_wait+0x6a() 31: taskq~_thread+0x1ef() 32: thread~_start+8() 33: 53 ================================== tp: fffffe80fded0000 34: swtch+0xdf() 35: cv~_wait~_sig~_swap~_core+0x177() 36: cv~_wait~_sig~_swap+0xb() 37: cv~_waituntil~_sig+0xd7() 38: poll~_common+0x52b() 39: pollsys+0xbe() 40: sys~_syscall32+0x1ff() 41: ... 42: }}} 43: 44: This is incredibly useful when diagnosing system hangs (as threads tend to pile up on the same locks) or eliminating unnecessary output. 45: 46: ===Useful Blog Entries=== 47: 48: Here’s a list of MDB-related blog entries. This is a combination of manual 49: searching and [[Technorati Tags>>http://www.technorati.com/tag/mdb]]. 50: To get your blog on this radar for the future, make sure to include a Technorati 51: MDB tag in your post. Just click on the ’Date’ link below to get to the 52: associated post. If you have an old post that should be featured here, email Eric dot Schrock at sun dot com. 53: 54: |=Date |=Author |=Title 55: | [[7/18/07>>http://blogs.sun.com/levon/entry/solaris_xen_update]] | John Levon | Solaris Xen Update | 56: | [[5/20/07>>http://jjmora.es/Solaris_Buceando_en_el_Kernel_con_mdb_III]] | JJMora | Buceando en el Kernel con mdb (III) | 57: | [[1/10/07>>http://blogs.sun.com/peteh/entry/pfiles_1_locked_files_and]] | Peter Harvey | pfiles(1), locked files and a pinch of salt | 58: | [[12/16/06>>http://blogs.sun.com/chrisg/entry/how_to_shoot_yourself_in]] | Chris Gerhard | How to shoot yourself in the foot with MDB | 59: | [[3/8/06>>http://blogs.sun.com/elowe/entry/examining_the_anatomy_of_a]] | Eric Lowe | Examining the Anatomy of a Process | 60: | [[3/6/06>>http://blogs.sun.com/elowe/entry/observing_the_solaris_kernel]] | Eric Lowe | Examining the Solaris Kernel | 61: | [[6/24/05>>http://blogs.sun.com/roller/page/fintanr?entry=mdb_eval]] | Fintan Ryan | MDB ::eval | 62: | [[6/24/05>>http://blogs.sun.com/roller/page/eschrock?entry=mdb_puzzle_take_two]] | Eric Schrock | MDB puzzle, take two | 63: | [[6/23/05>>http://blogs.sun.com/roller/page/eschrock?entry=mdb_puzzle]] | Eric Schrock | MDB puzzle | 64: | [[6/17/05>>http://blogs.sun.com/roller/page/eschrock/20050617#gdb_to_mdb_migration_part]] | Eric Schrock | GDB to MDB migration, part two | 65: | [[6/17/05>>http://blogs.sun.com/roller/page/amehta/20050617#a_race_erased]] | Ashish Mehta | A race erased | 66: | [[6/15/05>>http://blogs.sun.com/roller/page/rmc/20050613#the_vm_system_formally_known]] | Rich McDougall | Adding your own performance statistics to Solaris | 67: | [[6/15/05>>http://blogs.sun.com/roller/page/akolb/20050615#mdb_for_streams]] | Alexander Kolbasov | MDB for STREAMS | 68: | [[6/14/05>>http://blogs.sun.com/roller/page/mws/20050614#sendmail_died_in_a_two]] | Mike Shapiro | Sendmail Died in a Two SIGALRM Fire | 69: | [[6/14/05>>http://blogs.sun.com/roller/page/simmonmt/20050614]] | Matt Simmons | KMDB design | 70: | [[6/14/05>>http://blogs.sun.com/roller/page/ahl/20050614#debugging_cross_calls_on_opensolaris]] | Adam Leventhal | Debugging cross calls on Solaris | 71: | [[6/14/05>>http://blogs.sun.com/roller/page/jwadams/20050614#the_implementation_of_findleaks]] | Jonathan Adams | The implementation of ::findleaks | 72: | [[6/14/05>>http://blogs.sun.com/roller/page/wfiveash/20050614#playing_with_solaris_memory_debuggers]] | Will Fiveash | Playing with Solaris memory debuggers | 73: | [[6/14/05>>http://blogs.sun.com/roller/page/jan/20050614#my_mdb_writing_adventure]] | Jan Parcel | My mdb-writing adventure | 74: | [[6/14/05>>http://blogs.sun.com/roller/page/erickustarz/20050614#nfsv4_client_s_recovery_messages]] | Eric Kustarz | NFSv4 Client’s Recovery Messages | 75: | [[6/14/05>>http://blogs.sun.com/roller/page/aalok/20050614#debugging_on_sparc]] | Alok Aggarwal | Debugging on SPARC | 76: | [[6/14/05>>http://blogs.sun.com/roller/page/sch/20050614#libuutil_and_designing_for_debuggability]] | Stephen Hahn | libuutil and designing for debuggability | 77: | [[6/14/05>>http://blogs.sun.com/roller/page/esaxe/20050614#debugging_solaris_scheduling_problems_and]] | Eric Saxe | Debugging Solaris Scheduling Problems | 78: | [[6/14/05>>http://blogs.sun.com/roller/page/barts/20050614#doing_the_jitter_bug]] | Bart Smaalders | Doing the jitter bug | 79: | [[6/8/05>>http://blogs.sun.com/roller/page/yu/20050614#how_to_write_a_kmod]] | Yu Xiangning | Hellow world in a KMDB module | 80: | [[5/24/05>>http://blogs.sun.com/roller/page/saurabh_mishra/20050524#cpupart_v]] | Saurabh Mishra | ::cpupart -v for mdb(1m) | 81: | [[5/11/05>>http://blogs.sun.com/roller/page/eschrock/20050510#gdb_to_mdb]] | Eric Schrock | GDB to MDB migration, part one | 82: | [[4/1/05>>http://blogs.sun.com/roller/page/mrbenchmark/20050401#memory_page_coalescing_update_and]] | MrBenchmark | Memory page coalescing update and Solaris 10 | 83: | [[2/15/05>>http://blogs.sun.com/roller/page/fintanr/20050215#mdb_core]] | Fintan Ryan | mdb core | 84: | [[2/2/05>>http://blogs.sun.com/roller/page/eschrock/20050202#whatthread]] | Eric Schrock | ::whatthread and MDB modules | 85: | [[11/19/05>>http://blogs.sun.com/roller/page/eschrock/20041120#debugging_on_amd64_part_two]] | Eric Schrock | Debugging on AMD64 - Part Two | 86: | [[10/7/04>>http://blogs.sun.com/roller/page/jwadams/20041007#an_mdb_1_cheat_sheet]] | Jonathan Adams | mdb(1) background, intro, and cheatsheet | 87: | [[10/3/04>>http://blogs.sun.com/roller/page/alanc/20041005#an_idle_hack]] | Alan Coopersmith | An idle hack | 88: | [[9/30/04>>http://blogs.sun.com/roller/page/comand/20040930#learn_mdb_in_30_minutes]] | comand | Learn mdb in 30 minutes | 89: | [[9/23/04>>http://blogs.sun.com/roller/page/eschrock/20040922#debugging_hard_problems]] | Eric Schrock | Debugging hard problems | 90: | [[9/15/04>>http://blogs.sun.com/roller/page/ace/20040915#mdb_an_introduction_drilling_sigsegv]] | Stacey Marshall | mdb: drilling sigsegv; by way of an introduction | 91: | [[8/19/04>>http://blogs.sun.com/roller/page/eschrock/20040822#kernel_debugging_part_1_kmdb]] | Eric Schrock | Kernel debugging with KMDB | 92: | [[7/13/04>>http://blogs.sun.com/roller/page/ahl/20040713#solaris_10_top_11_20]] | Adam Leventhal | Number 11 of 20: libumem | 93: | [[6/23/04>>http://blogs.sun.com/roller/page/DaveM/20040623#using_mdb_to_figure_out]] | Dave Marquardt | Using MDB to figure out mysterious program behavior | 94: | [[6/20/04>>http://blogs.sun.com/roller/page/eschrock/20040620#my_kingdom_for_a_crash]] | Eric Schrock | My kingdom for a crash dump | 95: | [[6/16/04>>http://blogs.sun.com/roller/page/tpenta/20040615#kmdb_replaces_kadb_as_of]] | Alan Hargreaves | Kmdb replaces kadb as of build 61 |
Search
Collectives
Community Group
Academic and Research
Accessibility
Advocacy
Appliances
Approachability
Architecture Process and Tools
BrandZ
Chinese Users
Community Advisory Board
Databases
Desktop
Device Drivers
Distribution
Documentation
DTrace
Emerging Platforms
Fault Management
Games on OpenSolaris
HA Clusters
HPC Developer
Installation and Packaging
Internationalization and Localization
Laptop
Logical Domains
Modular Debugger (MDB)
Networking
NFS
Observability
OpenSolaris Governing Board (OGB)
OpenSolaris Printing
OS/Net (ON)
Performance
Power Management
PowerPC
Security
Service Management Facility (smf(5))
Software Porters
Solaris Volume Manager
Storage
Systems Administration Community Group
Testing
Tools Home
Unix File Systems (UFS)
Website Community
X Window System
Xen
ZFS
Zones
Project
ADSL Modem Enhancement
ARC Process Definition
ARM Platform Port
Automatic Data Migration
BIND Update
Bluetooth Stack & Drivers
Brocade FC HBA - Initiator
Brocade FC HBA - Target
Brussels - unified network link configuration
Caiman, Solaris Install Revisited
Celeste
Český portál
Chime Visualization Tool for DTrace
CIFS client for Solaris
CIFS Server
Clearview: Network Interface Coherence
Cluster Agent: Informix Dynamic Server
Cluster Agent: OpenSolaris Container
Cluster Agent: OpenSolaris xVM
Cluster Agent: Oracle E-Business Suite
Cluster agent: PostgreSQL
Cluster Agent: Samba
Cluster Agent: Tomcat
CMT
Coarse Data Flow Parallelism
Colorado: Open HA Cluster on OpenSolaris
Command Assistant
Common Array Manager
Companion - /opt/sfw: Free and Open Source software
COMSTAR: Common Multiprotocol SCSI Target
Content
Contest
CPU Observability
Credentials Process Groups
Crossbow: Network Virtualization and Resource Control
Crypto KMS Agent Toolkit
Cryptographic Framework
Data Migration Manager
Data Tethers
Deutsches Portal
Device Detection Tool
Device Driver Utility
Device Manager
Device Mapper
Direct Rendering Infrastructure & 3D drivers
DTrace Guide
Duckwater: Simplified name services management
Easy Tools
Emancipation
Emulex Fibre Channel Device Driver
Emulex Advanced Ethernet Device Driver
Enable/Enhance Solaris support for Intel Platform
Enhance the support of USB webcams
Enhanced SMF Profiles
Enhancements for AMD-based Platforms
Erlang DTrace Integration
Ethernet bridge module for Solaris
Evaluate Conary
Events Registry
Ext3 file system support
F/OSS Package Base
Facilitation
Fibre Channel over Ethernet
Fine Grained Access Policy (FGAP)
Fingerprint Authentication
Flexible Mandatory Access Control
Forensic Tools
Fully Open X Project
Fuse on Solaris
gcore
Generic Machine Check Architecture Improvements
Google SOC
HA-JBoss
HA-MySQL
Hadoop Live CD
Hitachi
HoneyComb Fixed Content Storage
HPC Stack
Image Packaging System
Improved Performance MIB
Indiana
Innovation Awards
Input Method
Intel Graphics
Internet Key Exchange, version 2
Interrupt Resource Management
IP Datapath Refactoring
IP over Infiniband
IPsec Tunnel Reform
iSCSI Extensions for Remote DMA (iSER)
iSNS Server
JeOS - Just enough Operating System
JKstat - a java binding for libkstat
Journaled File System (JFS)
K Desktop Environment
Kerberos
Kernel Sockets
Kernel SSL Enhancements
Key Management Framework
Korn Shell 93 integration/migration project
Labeled IPsec
LatencyTOP
Layer 2 Filtering
LDoms Manager
Lending
libMicro - portable microbenchmarks
Link Layer Discovery
Live Media: Technologies for distributions running from CD and other media
Locale Data
lofi compression and cryptography support
lx64 brand
Media Management System
Mega_sas
Mexico
MilaX minimal Live Distribution
MIPS Platform Port
Mozilla DTrace
MRSL.NONsharedDevice
Multi-lingual Glossary
Multi-pathing software (MPxIO)
Multiple disk sector size support
Multiple DOI
Muskoka: An open repository for OpenSolaris technical content
Navigator
Nemo: A Framework for High-Performance Networking
Network Auto-Magic
Network Data Management Protocol
Network MIBs
Network Storage
Network Time Protocol (NTP)
Nevada Globalization
New Design of 4over6 Mechanism Based on OpenSolaris
NFS RDMA transport update and performance analysis
NFS Server in non-Global Zones
NFS version 4.1 pNFS
NFSv4 namespace extensions
Nightingale: Port Songbird to OpenSolaris
NPort ID Virtualization (NPIV)
NUMA
Object Storage Device (OSD) support for Solaris
OHACGE Script Based Plug-in
ON/Nevada (ONNV) Project
Open Development Infrastructure
Open HA Cluster Utilities
Open Sound System
OpenGrok
OpenPegasus CIM Server
OpenRTI
OpenSolaris Busybox
OpenSolaris Desktop
OpenSolaris Hispano
OpenSolaris Security Audit
OpenSolaris support for the QEMU processor emulator: host and guest
PEF: Packet Event Framework
Performance Wrappers
Pkgfactory
Polski Portal
Portail Francophone
Portal Brasil
Portals
Power Management Usability Interfaces
Presto: Automatic Printing Configuration
Printable Many Page Solaris Manuals
Promise SuperTrak RAID HBA Driver
QLogic Converged Network Adapter GLDv3 NIC Driver
Quagga Routing Protocol Suite Integration
RAID Configuration Utility
RBridge (IETF TRILL) support
RDMA Offload Framework
Reno: Login Process Enhancements for Interop
Resource Management
s10brand
SAM/QFS
SCM Migration Project
SCSI RDMA Protocol
SDcard Drivers
Sensor Abstraction Layer
Session Initiation Protocol
SFW
Shell: bourne shell, korn shell, C shell, etc.
Sierra: Intel WiFi Chipsets Support
Simple Panels
SM-HBA Based SAS HBA Management
SMF Documentation
Solaris iSCSI Target
Solaris PowerPC Port
SourceJuicer
Sparks: name service switch/nscd enhancements
Squashfs
Star integration/migration project
Starfish
Starter Kit
Storage Power Management
Sun Security Toolkit
Sun StorageTek Availability Suite
Support for OpenFabrics User Verbs / API on OpenSolaris OS
Support gcc4/GCCfss in Solaris
Suspend/Resume
SVR4 Packaging
Systemz
Tamarack: Removable Media Enhancements in Solaris
Tesla: OpenSolaris Enhanced Power Management
Test Development
Tickless Kernel Architecture
TIPC
Trademarks
Trusted networking interface policy database for Trusted Extensions
Trusted Platform Module support
Use Case
Validated Execution Project
Virtual Console
Virtual Network Machines
Visual Panels
Visualization for HPC
Volo
VRRP: Virtual Router Redundancy Protocol Implementation
VSCAN service
Web Stack
Website
Winchester: Schema mapping and ID mapping for AD Interoperability
Wireless USB Support
Wireless Wide Area Network
X Consolidation
x86 Generic FMA Topology Enumerator
Xen Gate
Xfce: A lightweight desktop environment
ZFS Boot and Install
ZFS on disk encryption support
Zone Manager
Zone Statistics
Русский портал
البوابة العربية
भारतीय पोर्टल
中国门户
日本ポータル
한국 포탈
User Group
Adelaide
Argentina
Arizona
Atlanta
Baltimore-Washington
Bangalore
Bangkok
Bangladesh
Beijing
Bélem
Berlin
Bhimavaram
Bloomington
Campus Ambassadors
Capital Region
Cardiff
Charlotte
Chengdu
Chennai
Chihuahua
Chile
Cleveland
Colombia
Columbus
Connecticut
Cracow
Czech
Dallas/Ft. Worth
Danish
Delaware
Edinburgh
Egypt
Finland
Florida
Front Range
FuZhou
Great Lakes
Greece
Hangzhou
Hawaii
HeFei
Houston
Hyderabad
Indonesia
Irish
Israel
Italian
Jinan
Kabul
Kansas City
Latvia
London
Madurai
Manchester
Mato Grosso
Melbourne
Minas Gerais
Minnesota
Montreal
Moscow
Mumbai
Munich
NEA
Netherlands
New England
New York City
New Zealand
NIT Hamirpur
Noroeste
Oklahoma City
Osnabrück
Peru
Philadelphia
Piaski
Pittsburgh
Porto Alegre
Puget Sound
Pune
Queensland
Research Triangle Park
Romania
Russia
San Antonio
San Diego
San Francisco
São Paulo
Scottish
Serbia
Shanghai
Shenzhen
Silicon Valley
Singapore
Slovak
South African
Southern Connecticut
St. Louis
Sweden
Switzerland
Sydney
Szczecin
Taiwan
Tecum
Thames Valley
Tokyo
Toronto
Trondheim
Tulsa
Turkey
Ukraine
University of Melbourne
Vale do Paraíba
Vancouver
Venezuela
Welsh - Cymru
Wisconsin
Xi'an
Subsites
Code Reviews
Code Repositories
Package Search
Bugster
Bugzilla
Test Machines
Planet
Mailing Lists
Elections & Polls
ARC Case Logs
Source Juicer
Package Factory
User Authentication
Community Group mdb Pages
Architecture
Documentation
Files
Future Projects
Tips and Tricks