Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Jun 1998 02:47:20 -0700
From:      David Greenman <dg@root.com>
To:        John Hay <jhay@mikom.csir.co.za>
Cc:        cvs-committers@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/vm vm_kern.c 
Message-ID:  <199806060947.CAA14054@implode.root.com>
In-Reply-To: Your message of "Sat, 06 Jun 1998 08:05:18 %2B0200." <199806060605.IAA01513@zibbi.mikom.csir.co.za> 

next in thread | previous in thread | raw e-mail | index | archive | help
>Is it really usefull to keep a limit for mbufs and mbuf clusters? Can't we
>just do away with the limit and let it allocate more when it needs? At the

   It's not that we "keep a limit". The limit is imposed by physical space
constraints in the kernel, specifically the size of the "mb_map" VM map.
   The total virtual address space available to the kernel is a limited
resource and it's critical and required that one must do a juggling act
to fit it all in. One cannot just arbitrarily create a huge map so that
near boundless amounts of networking buffers can be allocated; this would
lose on systems that don't need large numbers of network buffers but do
need the space for something else. As a way of reducing the problem, one
could increase the total kernel VA space (and thus give more room to the
individual maps that are allocated from it), but due to bizzare reasons
that of no fault of ours, this would break binary compatibility with BSDI's
BSD/OS.
   Still, the default maximum that is configured is probably way too lean
for many systems and we should probably increase this by 2-4 times what
it is now. Since a one-size-fits-all value isn't feasible (and the
requirements for individual systems can vary greatly), it's difficult
to figure a proper default. FreeBSD already has several times more space
for mbufs/mbuf clusters than did the original 4.4BSD, but we seem to still
be behind the usage curve on modern, medium-large systems.

-DG

David Greenman
Co-founder/Principal Architect, The FreeBSD Project

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806060947.CAA14054>