tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: AF_UNIX socketpair dgram queue sizes



On Fri, Nov 12, 2021 at 11:53:10PM -0500, Jan Schaumann wrote:
> An mbuf is 512 bytes in size, with an m_hdr consuming
> 56 bytes, and a packet header consuming 56 bytes.

That numbers depend on architecture, see mbuf.h:

/*
 * Mbufs are of a single size, MSIZE (machine/param.h), which
 * includes overhead.  An mbuf may add a single "mbuf cluster" of size
 * MCLBYTES (also in machine/param.h), which has no additional overhead
 * and is used instead of the internal data area; this is done when
 * at least MINCLSIZE of data must be stored.
 */

Martin


Home | Main Index | Thread Index | Old Index