From owner-freebsd-questions@FreeBSD.ORG Thu Nov 9 17:26:46 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 830CA16A599 for ; Thu, 9 Nov 2006 17:26:46 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out4.blueyonder.co.uk (smtp-out4.blueyonder.co.uk [195.188.213.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id C752F43D5C for ; Thu, 9 Nov 2006 17:26:42 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.146] (helo=anti-virus03-09) by smtp-out4.blueyonder.co.uk with smtp (Exim 4.52) id 1GiDfk-0000oY-KK; Thu, 09 Nov 2006 17:26:40 +0000 Received: from [80.192.2.119] (helo=[192.168.0.2]) by asmtp-out3.blueyonder.co.uk with esmtp (Exim 4.52) id 1GiDfj-0002HH-U6; Thu, 09 Nov 2006 17:26:39 +0000 Message-ID: <455364CE.9080100@dial.pipex.com> Date: Thu, 09 Nov 2006 17:26:38 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20061106 X-Accept-Language: en MIME-Version: 1.0 To: VeeJay References: <2cd0a0da0611082139g7a529a61x76db1c52638fdec9@mail.gmail.com> <20061109155632.GA82382@gizmo.acns.msu.edu> In-Reply-To: <20061109155632.GA82382@gizmo.acns.msu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Jerry McAllister , freebsd-questions@freebsd.org Subject: Re: HELP! Installation Questions 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, 09 Nov 2006 17:26:46 -0000 Jerry McAllister wrote: >On Thu, Nov 09, 2006 at 06:39:50AM +0100, VeeJay wrote: > >>.Ideal Space required for MySQL DBs: 140GB. >>(Contents: Many MySQL databases backing name based virtual websites) >> >>.Ideal Space required for Virtual Hosted Websites: 140GB >>(Contents: HTML, PHP, Images, Mail, Logs, Sites Backups, etc) >> >>Maximum space required for SWAP to get high performance. >> >> If you end up using swap space you will *not* get performance. The second you start swapping is the second that your performance goes into a downward spiral, especially with multi-user servers. If 4Gb of main memory won't cover your needs then get more memory (and go for 64-bit), or look at using two or more servers. Swap space is for emergencies - unexpected, infrequent memory load peaks - and if your server starts using it regularly, it's overwhelmed. >databases tend to be put in /var/db by default, so if you must >have 140 GB database size, then you need a /var of more than 140 GB. > Note that Linux (at least newer RedHat) would also tend to put the virtual host space on /var as well. IMHO, both these ideas are complete crocks. /var is for *system* variable data - package databases, log files, pid files and all kinds of other *trashable* data. (Yes, mail is an obvious exception but if you do serious mail you put it on a separate partition anyway, or use maildir or...). Mixing up application/user data with /var just makes for unmaintainability somewhere down the line. >An easier, or at least more flexible way to deal with it is to get >a very large second disk - about 340 GB - and make one big file >system on it. > It is much better to keep both your application requirements together, as suggested here. There is nothing to stop you using one disk (or RAID array) but just make sure that your application data is in a separate tree (such as /home) which, personally, I would always put on a separate partition. For optimum performance, though, you might want one disk/RAID for the OS and one disk/RAID for the applications. --Alex