From owner-freebsd-net@FreeBSD.ORG Wed Jun 15 16:04:16 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C07FB16A41C for ; Wed, 15 Jun 2005 16:04:16 +0000 (GMT) (envelope-from kfl@xiphos.ca) Received: from mail.net (custpop.ca.mci.com [142.77.1.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84A4E43D53 for ; Wed, 15 Jun 2005 16:04:16 +0000 (GMT) (envelope-from kfl@xiphos.ca) Received: from [216.95.199.148] (account kfl@xiphos.ca HELO [192.168.1.7]) by mail.net (CommuniGate Pro SMTP 4.2.8) with ESMTP id 63812261 for freebsd-net@freebsd.org; Wed, 15 Jun 2005 12:04:15 -0400 Message-ID: <42B0528D.9080308@xiphos.ca> Date: Wed, 15 Jun 2005 12:08:45 -0400 From: Karim Fodil-Lemelin User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: (panic) Lots of network memory needed X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2005 16:04:16 -0000 Hello, From kernel tuning page (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-kernel-limits.html) Some sentence about nmbclusters says: "Under no circumstances should you specify an arbitrarily high value for this parameter as it could lead to a boot time crash." Now I want to push the limits where I need 4KB buffer for each of the 32000 connections I want this server to handle. If I do the math: (32000 (conns) * 4 (KB/buffer) * 2 (buffer/conn)) / 2048 (KB/cluster) = 128000 clusters So I set this arbitrary high value in loader.conf under (kern.ipc.nmbclusters) and no surprises I get panic: pmap_enter invalid page directory pdir=0x3cb063, va=0xfff800 (va has a weird address here) I know I am pushing the limits here but I have plenty of memory (2GB) on this system (after all its just 250MB for network memory ;) and this is mainly just experimentation. I would like some pointers toward fixing this. Is there another variable tied into this (I guess so)? Could anybody points me to a technical document that would explain the relationship with that (those) other(s) presumed variable(s)? Thank you, Karim