From owner-freebsd-questions@FreeBSD.ORG Thu Aug 16 20:42:34 2012 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 77707106566C for ; Thu, 16 Aug 2012 20:42:34 +0000 (UTC) (envelope-from steve@sohara.org) Received: from uk1rly2283.eechost.net (relay01a.mail.uk1.eechost.net [217.69.40.75]) by mx1.freebsd.org (Postfix) with ESMTP id 09D788FC0C for ; Thu, 16 Aug 2012 20:42:33 +0000 (UTC) Received: from [31.186.37.179] (helo=rpi-1.marelmo.com) by uk1rly2283.eechost.net with esmtpa (Exim 4.72) (envelope-from ) id 1T26pR-0003iQ-Em; Thu, 16 Aug 2012 21:38:05 +0100 Received: from [192.168.63.1] (helo=steve.marelmo.com) by rpi-1.marelmo.com with smtp (Exim 4.72) (envelope-from ) id 1T26u3-0008Hw-Fn; Thu, 16 Aug 2012 21:42:51 +0100 Date: Thu, 16 Aug 2012 21:42:30 +0100 From: Steve O'Hara-Smith To: Paul Schmehl Message-Id: <20120816214230.0f4fb446.steve@sohara.org> In-Reply-To: <175D3B4E21331C5682EE2148@localhost> References: <47AFB706686083E99B3A3F3E@localhost> <20120816180257.6f5d58e5.steve@sohara.org> <175D3B4E21331C5682EE2148@localhost> X-Mailer: Sylpheed 3.1.3 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) X-Face: %]+HVL}K`P8>+8ZcY-WGHP6j@&mxMo9JH6_WdgIgUGH)JX/usO0%jy7T~IVgqjumD^OBqX, Kv^-GM6mlw(fI^$"QRKyZ$?xx/ Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Auth-Info: 15567@permanet.ie (plain) Cc: freebsd-questions@freebsd.org Subject: Re: Best file system for a busy webserver 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: Thu, 16 Aug 2012 20:42:34 -0000 On Thu, 16 Aug 2012 13:16:26 -0500 Paul Schmehl wrote: > --On August 16, 2012 6:02:57 PM +0100 Steve O'Hara-Smith > wrote: > > > On Thu, 16 Aug 2012 10:45:25 -0500 > > Paul Schmehl wrote: > > > >> Does anyone have any opinions on which file system is best for a busy > >> webserver (7 million hits/month)? Is anyone one system noticeably > >> better than any other? > > > > That's an average of about 3 hits per second. If it's static > > pages then pretty much anything will handle it easily (but please don't > > use FAT). If it's dynamic then the whole problem is more complex than a > > simple page rate. If that load is bursty it may make a difference too. > > > > Thanks for the reply. It's a combination. There are many static pages, > but there is also a php-mysql forum that generates pages on the fly. It > accounts for about half of the traffic. I've always used ufs but am > wondering if switching to zfs would make sense. > > This stats page might answer some of your questions: > > Basically traffic is steady but it's busiest in the evenings (US time > zones) > > > Other considerations may come into play - how big is this > > filesystem (number of files, maximum number of entries in a directory, > > volume of data) ? Are there many users needing to be protected from each > > other ? What about archives ? snapshots ? growth ? churn ? uptime > > requirements, disaster recovery time ? > > I don't even know where to begin. There's about 15G of data on the > server. OK I would say there's no pressing reason to consider ZFS for this purpose. You'd save a bit of time in crash recovery with no fsck going on, and perhaps the checksum mechanism would give some peace of mind - but really in 15GB silent corruption is a very slow process - now if it were 15TB ... > last pid: 40369; load averages: 0.01, 0.03, 0.00 > up 104+09:33:44 13:14:49 > 137 processes: 1 running, 136 sleeping > CPU: 0.7% user, 0.0% nice, 0.1% system, 0.0% interrupt, 99.2% idle > Mem: 229M Active, 6108M Inact, 1056M Wired, 15M Cache, 828M Buf, 514M Free > Swap: 16G Total, 28K Used, 16G Free OTOH you have plenty of memory lying around doing nothing much (6108M inactive) so you can easily support ZFS if you want to play with it's features (the smooth integration of volume management and filesystem is rather cool). > The system is not being stressed. > > If by users, you means shell accounts, there's two, so that's not really > an issue. OK so no need for fancy quota schemes then. > Uptime is not an issue. The owners have repeatedly said if the site is > down for two days they don't care. (The forum users don't feel that way > though!) We've had one "disaster" (hard drive failure and raid failed > while I was on vacation), and it took about 36 hours to get back online, > but that was 10 years ago. The site doesn't go down - it's running on > FreeBSD. :-) It sounds like you have backups or at least some means of restoring the site in the event of disaster so that's all good. If there was a pressing need to be able to get back up fairly quickly and easily I'd be suggesting ZFS in RAID1 with a hot swap bay in which a third disc goes, attached as a third mirror, periodically split it off the mirror take it off site, and replace it with the one that's been off site. There's really nothing here that's pushing you in any particular direction for a filesystem, at 15GB if performance ever becomes a problem a RAID1 of SSDs with UFS would make it fly probably into the hundreds of hits per second range. -- Steve O'Hara-Smith | Directable Mirror Arrays C:>WIN | A better way to focus the sun The computer obeys and wins. | licences available see You lose and Bill collects. | http://www.sohara.org/