From db430f9709c28870a94b055eee5a8afacc03197f Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Thu, 15 Feb 2007 14:44:46 +0000 Subject: [PATCH] Expand history and authors section of mbuf.9 man page to discuss recent transition to mbuma (FreeBSD 5.3) and the fact that mbufs are now limited almost entirely to packet storage, with straight UMA zones being used for most other network data types. --- share/man/man9/mbuf.9 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9 index dc98b02db0ee..0bb931797df0 100644 --- a/share/man/man9/mbuf.9 +++ b/share/man/man9/mbuf.9 @@ -1122,7 +1122,35 @@ appeared in an early version of Besides being used for network packets, they were used to store various dynamic structures, such as routing table entries, interface addresses, protocol control blocks, etc. +In more recent +.Fx +use of +.Vt mbufs +is almost entirely limited to packet storage, with +.Xr uma 9 +zones being used directly to store other network-related memory. +.Pp +Historically, the +.Vt mbuf +allocator has been a special-purpose memory allocator able to run in +interrupt contexts and allocating from a special kernel address space map. +As of +.Fx 5.3 , +the +.Vt mbuf +allocator is a wrapper around +.Xr uma 9 , +allowing caching of +.Vt mbufs , +clusters, and +.Vt mbuf ++ cluster pairs in per-CPU caches, as well as bringing other benefits of +slab allocation. .Sh AUTHORS The original .Nm manual page was written by Yar Tikhiy. +The +.Xr uma 9 +.Vt mbuf +allocator was written by Bosko Milekic.