tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: AF_UNIX socketpair dgram queue sizes
jschauma%netmeister.org@localhost (Jan Schaumann) writes:
>By the way, it strikes me as odd to treat dgrams with
>in between 400 and 857 bytes as special. That's the
>only scenario where we use two normal mbufs. Is this
>a frequent enough case that makes it worth treating
>as special instead of simplifying to e.g., dgrams <
>400 => 1 mbuf, dgrams > 400 => 1 mbcluster ?
Small packets (one mbuf) and large packets (one cluster) are probably
most frequent. If you want to simplify for the medium sized packets,
you start wasting half of the memory, but only for a rather infrequent
case.
These heuristics are very old, but probably still valid if you
think that a cluster is good enough for the 1500 byte Ethernet MTU.
Home |
Main Index |
Thread Index |
Old Index