Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 54723 invoked from network); 1 Jun 2010 14:18:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jun 2010 14:18:28 -0000 Received: (qmail 49030 invoked by uid 500); 1 Jun 2010 14:18:27 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 48967 invoked by uid 500); 1 Jun 2010 14:18:27 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 48959 invoked by uid 99); 1 Jun 2010 14:18:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 14:18:27 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bmcquade@google.com designates 216.239.44.51 as permitted sender) Received: from [216.239.44.51] (HELO smtp-out.google.com) (216.239.44.51) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 14:18:22 +0000 Received: from wpaz1.hot.corp.google.com (wpaz1.hot.corp.google.com [172.24.198.65]) by smtp-out.google.com with ESMTP id o51EI0Yq016883 for ; Tue, 1 Jun 2010 07:18:01 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1275401881; bh=f3MeRvOI2qqoxx8m3aUPPma5BV8=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Content-Type; b=hdaO5T3FoRQjnDU/GZIUsrjGSvLrxrQVrpS0p8JvJwVx4Vl7s2EshMXn+cyoD9f0t U1MNTnWopxvcOl1kS8Wmw== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: content-type:x-system-of-record; b=r67Lium48wJAVuyw+l/k0O/9uCOX2NT0hZTUJ/HmtAgWv/dsjmr2/0+8KKgCjh5+s P5PjqzFeM9BEas2rnQeUQ== Received: from pvg12 (pvg12.prod.google.com [10.241.210.140]) by wpaz1.hot.corp.google.com with ESMTP id o51EHxb8026699 for ; Tue, 1 Jun 2010 07:18:00 -0700 Received: by pvg12 with SMTP id 12so2067586pvg.4 for ; Tue, 01 Jun 2010 07:17:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.55.17 with SMTP id d17mr4545043rva.209.1275401879159; Tue, 01 Jun 2010 07:17:59 -0700 (PDT) Received: by 10.141.130.15 with HTTP; Tue, 1 Jun 2010 07:17:59 -0700 (PDT) In-Reply-To: <92291B8A-73CB-4FCB-B95B-BEA91FD17046@sharp.fm> References: <92291B8A-73CB-4FCB-B95B-BEA91FD17046@sharp.fm> Date: Tue, 1 Jun 2010 10:17:59 -0400 Message-ID: Subject: Re: Fast by default From: Bryan McQuade To: dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true On Tue, Jun 1, 2010 at 5:38 AM, Graham Leggett wrote: > On 01 Jun 2010, at 2:30 AM, Bryan McQuade wrote: > >> I had a conversation with a well known hosting provider recently and >> they told me they use the default Apache configuration for their >> shared hosting service. When I asked if they provide gzip as an option >> for their users, they said no, since it was not enabled by default. >> When I explained to them that enabling gzip has significant benefits >> for end users they were very interested in turning on gzip. This >> company just used the default Apache config, assuming that it was >> reasonably well tuned by default. You can claim that they're making >> bad, uninformed decisions, or whatever you want to, but the fact >> remains: some Apache users assume that the default config is a >> reasonably good config, and use it as-is. > > The very definition of "tuned" means "tailored for your local setup". > > The default httpd configuration works reasonably well out the box. It is > only when your site has special needs that it should start changing the > setup, and the site should understand what their needs are and whether it is > appropriate to turn it on. > > Zooming into mod_deflate, mod_deflate only makes sense if you have the CPU > to support it. If you don't have enough CPU support (think virtualised > hosts), mod_deflate will be a performance drag, not a boost. Typically, you > would want to front a mod_deflate with an HTTP cache, such as mod_cache (or > equivalent). Here mod_cache only makes sense if you have the disk space to > support it, and there is no real one-size-fits-all cache setup. I agree that there are cases where the CPU costs are too great for mod_deflate, but I claim that this is a very small minority in 2010. Paul Buchheit (creator of Gmail, Friendfeed) did a nice analysis of the cost/benefit tradeoffs of enabling gzip about a year ago. His finding was that enabling gzip is a significant cost saver for most servers: http://paulbuchheit.blogspot.com/2009/04/make-your-site-faster-and-cheaper-to.html > > The next problem is that you only want to enable mod_deflate on compressible > content - that means "not images" for most people, but might not be. Again, > not every site has the same content, and therefore not every site has the > same setup for mod_delate. > > This said, our default config is 15 years old, and attempts to disable > deflate for browsers that don't support it, like "Netscape 4". Unless there > are modern browsers that have broken protocol support for transfer encoding, > these obsolete examples need to be removed. > > Regards, > Graham > -- > >