Bosko Milekic wrote:
> 
> On Wed, Jul 25, 2001 at 02:17:38PM -0400, Zhihui Zhang wrote:
> >
> > I see.  It has something to do with the power-of-two allocator we are
> > using inside the kernel.
> 
>         No, it has nothing to do with the power-of-two allocation strategy
> used in some cases inside the kernel. 2K is just the most convenient size
> for a cluster as it fits the maximum MTU size while at the same time fitting
> nicely into a page, reducing allocation complexity.

Specifically, it saves a lot of housekeeping, which isn't really
a lot, if it's done correctly.

Actually, we would be well serverd by permitting odd-sized mbufs,
particularly for use a mbuf cluster containers, since they waste
an incredible amount of space.

The real reason behind all this is to make the input and output
routines symmetric, since mbuf's can be allocated at interrupt,
and clusters can't (or couldn't, last time I looked at 4.3).

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to