From owner-freebsd-questions Mon Aug 28 11:23:38 2000 Delivered-To: freebsd-questions@freebsd.org Received: from tigger.PaceHouse.COM (adsl-63-201-231-37.dsl.snfc21.pacbell.net [63.201.231.37]) by hub.freebsd.org (Postfix) with ESMTP id A8C0437B42C for ; Mon, 28 Aug 2000 11:23:30 -0700 (PDT) Received: from localhost (jepace@localhost) by tigger.PaceHouse.COM (8.9.3/8.9.3) with ESMTP id LAA00540 for ; Mon, 28 Aug 2000 11:23:28 -0700 (PDT) (envelope-from jepace@pobox.com) X-Authentication-Warning: tigger.pacehouse.com: jepace owned process doing -bs Date: Mon, 28 Aug 2000 11:23:01 -0700 (PDT) From: "James E. Pace" X-Sender: jepace@localhost Reply-To: "James E. Pace" To: freebsd-questions@freebsd.org Subject: Scaling Apache? Message-ID: X-Url: http://www.pobox.com/~jepace X-Pgp-Fingerprint: 8C E7 12 5A 3A 8C 5C 4D EC 15 7B 65 EA 82 D2 BF X-Pgp-Keyid: A49EA4D9 X-Files: The Truth Is Out There MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've got a 2 way Pentium III / 550MHz system with 1GB of memory running 4.1-STABLE. For a project I'm working on, I need to have a webserver handle thousands (and 10's of thousands) of simultaneous connections. To do this, it seems the best way is to have lots and LOTS of apache's httpds running at all times. In apache's httpd.conf, I want to set "Start Servers" to a big number. When I set this to 1000, at boot time, I get a message: pmap_collect: collecting pv entries -- suggest increasing PMAP_SHPGPERPROC And evetually, under load, the system will panic. I've tried boosting PMAP_SHPGPERPROC, but the message doesn't go away (at 2000+) (or the machine panics at boot with 20000). Other tweeks I've tried (for perhaps related issues): options NMBCLUSTERS=131072 # 1024 * 128 and these sysctls: net.inet.ip.portrange.last=64000 kern.ipc.somaxconn=4000 net.inet.tcp.sendspace=65536 net.inet.tcp.recvspace=65536 Anyway, I don't know where to go from here, so if someone could steer me in the right direction, and tell me how to get apache scaled... Thanks James Pace -- This letter brought to you by: ************************************* ** James E. Pace ** ** http://www.pobox.com/~jepace ** ******************************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message