From owner-freebsd-questions@FreeBSD.ORG Wed Apr 29 20:59:34 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 3FFDA1065670 for ; Wed, 29 Apr 2009 20:59:34 +0000 (UTC) (envelope-from chowse@charter.net) Received: from mta11.charter.net (mta11.charter.net [216.33.127.80]) by mx1.freebsd.org (Postfix) with ESMTP id CC2918FC14 for ; Wed, 29 Apr 2009 20:59:33 +0000 (UTC) (envelope-from chowse@charter.net) Received: from imp09 ([10.20.200.9]) by mta11.charter.net (InterMail vM.7.09.01.00 201-2219-108-20080618) with ESMTP id <20090429205920.CYPO22327.mta11.charter.net@imp09> for ; Wed, 29 Apr 2009 16:59:20 -0400 Received: from larry.local ([24.176.106.117]) by imp09 with smtp.charter.net id lYzL1b0092Y01io05YzLF1; Wed, 29 Apr 2009 16:59:20 -0400 Message-Id: <2382B6A6-0ACF-4558-A77A-806E01425A2B@charter.net> From: Charles Howse To: FreeBSD Questions In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Wed, 29 Apr 2009 15:59:19 -0500 References: X-Mailer: Apple Mail (2.930.3) 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:59:34 -0000 On Apr 29, 2009, at 3:18 PM, Tom Worster wrote: > 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. I recall Bill Gates saying, "640k is enough for anybody." I agree, it's not much of a savings, and there's always the possibility that the webmaster may add something later that needs a module that's commented, and run around in circles before she/he realizes it.