From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 22:45:03 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 06BE6106566B for ; Tue, 28 Apr 2009 22:45:03 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id AB79C8FC08 for ; Tue, 28 Apr 2009 22:45:02 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by gxk24 with SMTP id 24so671148gxk.19 for ; Tue, 28 Apr 2009 15:45:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=wWYZygOwNZmwRFrbx15UitdN16e8JqmOsmDeCJlgSXY=; b=P2OKNSnSZ3NsefgWkLO1TfkFHau0VmcV+BW4VB9rdMx+i7KKy8F3344DJ9/t+c34sV w/Jt/UbqngV9hise5dPWEV5jKd6izaD+Ug3fftnaWPvh77BSmsBkkGNXnCAqLASL0tKB 9H1FVqqO2LjGuyBIJzPcBZKHZJKHZwSfYZqJU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=Ec85u040hXxOgj1LY0UA/nsATJD84tcSipP1+clmjPSSX7++X3E1H2cKYKvVsK4cXq e/D15mYfOG8v4VKhdhojnGiGus73PfJ1N7IwWNrblwbrvw8wtDzOOqQenB04AMaNJI3O p4dV8Eow+2Ver0jtB1JnWzMLCO9gHhea+oOAY= Received: by 10.90.81.11 with SMTP id e11mr9042219agb.119.1240958701726; Tue, 28 Apr 2009 15:45:01 -0700 (PDT) Received: from ?216.16.29.53? (host-53.216-16-29.iw.net [216.16.29.53]) by mx.google.com with ESMTPS id 9sm530850agb.35.2009.04.28.15.45.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 28 Apr 2009 15:45:01 -0700 (PDT) Message-ID: <49F786F6.8000405@gmail.com> Date: Tue, 28 Apr 2009 17:45:10 -0500 From: Adam Vandemore User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: FreeBSD Questions References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 28 Apr 2009 22:45:03 -0000 Charles Howse wrote: > > On Apr 28, 2009, at 2:29 PM, Tom Worster wrote: > >> On 4/28/09 3:14 PM, "Charles Howse" wrote: >> >>> Can anyone see anything that I've commented that I'll be sorry for? >>> Can anyone suggest any more testing I should do? >> >> unfortunately i can't but i'd like to ask you to tell us, once you're >> done >> with removing modules, how much memory you saved relative to where you >> started. >> >> i'm curious because i went through a similar exercise not long ago >> and would >> be interested to compare notes. > > 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. -- Adam Vandemore Systems Administrator IMED Mobility (605) 498-1610