This patch is a re-implementation of Isilon's mbuf tracking code which shows records who owns a given mbuf. It has a sysctl which produces a summary of how many buffers are owned by each.
It also adds a 'show mbuf' command to DDB.
The magic/ugliness is that it has x86 only code to look at the stack and find the caller of the mbuf function to record it as the owner.