From owner-freebsd-questions@FreeBSD.ORG Wed Apr 29 20:18:52 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6B7C106564A for ; Wed, 29 Apr 2009 20:18:51 +0000 (UTC) (envelope-from fsb@thefsb.org) Received: from smtp114.iad.emailsrvr.com (smtp114.iad.emailsrvr.com [207.97.245.114]) by mx1.freebsd.org (Postfix) with ESMTP id C11F68FC14 for ; Wed, 29 Apr 2009 20:18:51 +0000 (UTC) (envelope-from fsb@thefsb.org) Received: from relay1.r1.iad.emailsrvr.com (localhost [127.0.0.1]) by relay1.r1.iad.emailsrvr.com (SMTP Server) with ESMTP id 4013E44C0EA; Wed, 29 Apr 2009 16:18:51 -0400 (EDT) Received: by relay1.r1.iad.emailsrvr.com (Authenticated sender: fsb-AT-thefsb.org) with ESMTPSA id DDAF544C0AC; Wed, 29 Apr 2009 16:18:49 -0400 (EDT) User-Agent: Microsoft-Entourage/12.10.0.080409 Date: Wed, 29 Apr 2009 16:18:45 -0400 From: Tom Worster To: Adam Vandemore , FreeBSD Questions Message-ID: Thread-Topic: Running Apache with as few modules as possible Thread-Index: AcnJB7JLDt8ufvYJzU63RpDnytmulQ== In-Reply-To: <49F786F6.8000405@gmail.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Cc: Subject: Re: Running Apache with as few modules as possible X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2009 20:18:52 -0000 On 4/28/09 6:45 PM, "Adam Vandemore" wrote: >> OK, here we go: >> With Apache running on the development machine, modules commented as >> in my first post -- >> CPU: 0.8% user, 0.0% nice, 0.4% system, 0.8% interrupt, 98.1% idle >> Mem: 27M Active, 139M Inact, 64M Wired, 11M Cache, 34M Buf, 648K Free >> Swap: 512M Total, 60K Used, 512M Free >> >> Apache running on the same machine without any modules commented >> except mod_ssl -- >> CPU: 0.8% user, 0.0% nice, 0.8% system, 0.4% interrupt, 98.1% idle >> Mem: 27M Active, 134M Inact, 64M Wired, 13M Cache, 34M Buf, 3584K Free >> Swap: 512M Total, 60K Used, 512M Free >> >> I just ran 'top' after starting httpd to get these figures, maybe I >> should have done something different? >> 'bout the only thing that makes sense to me is I have more Free Memory >> when commenting all those modules. >> What is the list's opinion on this? >> > You should probably use pmap for a more accurate comparison. you may > also want to set CFLAGS= -Os for size considerations(CPUTYPE as well), > and remove unnecessary modules from kernel if you haven't done so already. agreed. top lines of top are too imprecise to really tell. but so far as the data goes, this is consistent with my findings, i.e. disabling mods in the apache runtime config file doesn't save enough to justify the effort.