From owner-freebsd-doc Sun Apr 14 11: 0:21 2002 Delivered-To: freebsd-doc@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C9E5C37B419 for ; Sun, 14 Apr 2002 11:00:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3EI02Q43329; Sun, 14 Apr 2002 11:00:02 -0700 (PDT) (envelope-from gnats) Received: from Kain.sumuk.de (Kain.sumuk.de [213.221.86.114]) by hub.freebsd.org (Postfix) with ESMTP id 54E0937B404 for ; Sun, 14 Apr 2002 10:50:21 -0700 (PDT) Received: from Moses.earth.sol (Moses.earth.sol [192.168.1.1]) by Kain.sumuk.de (8.11.6/8.11.6) with ESMTP id g3EHoK002120 for ; Sun, 14 Apr 2002 19:50:20 +0200 (CEST) (envelope-from martin@sumuk.de) Received: (from vincent@localhost) by Moses.earth.sol (8.11.6/8.11.6) id g3EHoK731513; Sun, 14 Apr 2002 19:50:20 +0200 (CEST) (envelope-from vincent) Message-Id: <200204141750.g3EHoK731513@Moses.earth.sol> Date: Sun, 14 Apr 2002 19:50:20 +0200 (CEST) From: Martin Heinen Reply-To: Martin Heinen To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/37068: [PATCH] Handbook contains a wrong equation Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 37068 >Category: docs >Synopsis: [PATCH] Handbook contains a wrong equation >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 14 11:00:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Martin Heinen >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD Moses.earth.sol 4.4-STABLE FreeBSD 4.4-STABLE #0: Sat Dec 22 07:35:30 CET 2001 toor@Moses.earth.sol:/usr/obj/usr/src/sys/MOSES i386 >Description: The section 'Network Limits' states that 32MBx2 = 64MB/2K, which is wrong. Fixed and regrouped the equation. Changed the memory units from K to kB. >How-To-Repeat: Read the section 'Network Limits' in the chapter 'Configuration and Tuning'. >Fix: Index: config/chapter.sgml =================================================================== RCS file: /u/cvs/doc/en_US.ISO8859-1/books/handbook/config/chapter.sgml,v retrieving revision 1.46 diff -u -r1.46 chapter.sgml --- config/chapter.sgml 1 Apr 2002 14:39:14 -0000 1.46 +++ config/chapter.sgml 7 Apr 2002 11:33:32 -0000 @@ -1101,14 +1101,14 @@ option dictates the amount of network mbufs available to the system. A heavily-trafficked server with a low number of MBUFs will hinder FreeBSD's ability. Each cluster represents - approximately 2K of memory, so a value of 1024 represents 2 + approximately 2 kB of memory, so a value of 1024 represents 2 megabytes of kernel memory reserved for network buffers. A simple calculation can be done to figure out how many are needed. If you have a web server which maxes out at 1000 - simultaneous connections, and each connection eats a 16K receive - and 16K send buffer, you need approximately 32MB worth of + simultaneous connections, and each connection eats a 16 kB receive + and 16 kB send buffer, you need approximately 32 MB worth of network buffers to cover the web server. A good rule of thumb is - to multiply by 2, so 32MBx2 = 64MB/2K = 32768. + to multiply by 2, so 2x32 MB / 2 KB = 64 MB / 2 kB = 32768. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message