Bosko Milekic 3d2a3ff25e Optimize the way reference counting is performed with Mbufs. We
do not need to perform an extra memory fetch in the Packet (Mbuf+Cluster)
constructor to initialize the reference counter anymore.  The reference
counts are located in a separate memory region (in the slab header,
because this zone is UMA_ZONE_REFCNT), so the memory fetch resulted very
often in a cache miss.  Additionally, and perhaps more significantly,
optimize the free mbuf+cluster (packet) case, which is very common, to
no longer require an atomic operation on free (to verify the reference
counter) if the reference on the cluster has never been increased (also
very common).  Reduces an atomic on mbuf free on average.

Original patch submitted by: Gerrit Nagelhout <gnagelhout@sandvine.com>
2005-02-10 22:23:02 +00:00
..
2005-01-26 02:29:18 +00:00
2005-01-29 16:50:04 +00:00
2005-02-10 12:23:29 +00:00
2004-07-10 21:43:23 +00:00
2004-12-30 20:30:58 +00:00
2004-06-17 17:16:53 +00:00
2005-02-10 12:23:29 +00:00
2005-02-10 12:17:48 +00:00
2005-02-07 09:26:39 +00:00
2005-02-07 09:26:58 +00:00