Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jul 2003 00:00:57 +0000
From:      Bosko Milekic <bmilekic@technokratis.com>
To:        Scot Loach <sloach@sandvine.com>
Cc:        "'freebsd-net@freebsd.org'" <freebsd-net@freebsd.org>
Subject:   Re: Kernel tuning for large maxsockets
Message-ID:  <20030718000057.GA24620@technokratis.com>
In-Reply-To: <FE045D4D9F7AED4CBFF1B3B813C8533701AE8568@mail.sandvine.com>
References:  <FE045D4D9F7AED4CBFF1B3B813C8533701AE8568@mail.sandvine.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Thu, Jul 17, 2003 at 08:45:29PM -0400, Scot Loach wrote:
> Bosko:
> 
> The problem I have is that each of the four pcb types has its own zone that
> is preallocated to hold maxsockets pcbs.  This is a waste of kva that could
> be better used.  Since I'm not using divert sockets or raw sockets, I would
> rather cap these zones to a small constant number, and increase the others
> as much as possible.
> 
> I should have a patch for this next week sometime.

  The kva is not pre-allocated.

  The more allocations you have for that pcb type, the more memory and
  kva space will be reserved for them.  As I said, the kva used for the
  pcbs will come out of kmem_map.  If you're allocating the pcbs, then
  you're not wasting the kva.  When you free them, the kva and memory
  stayed reserved, but this is required for type stable storage, which
  the pcbs appear to be.

-- 
Bosko Milekic  *  bmilekic@technokratis.com  *  bmilekic@FreeBSD.org
TECHNOkRATIS Consulting Services  *  http://www.technokratis.com/



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