From owner-freebsd-questions@FreeBSD.ORG Thu Nov 9 17:55:16 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 DBAB916A407 for ; Thu, 9 Nov 2006 17:55:15 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5615A43D6E for ; Thu, 9 Nov 2006 17:55:14 +0000 (GMT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id kA9Hs7Kg082983; Thu, 9 Nov 2006 12:54:07 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id kA9Hs7Dg082982; Thu, 9 Nov 2006 12:54:07 -0500 (EST) (envelope-from jerrymc) Date: Thu, 9 Nov 2006 12:54:07 -0500 From: Jerry McAllister To: Alex Zbyslaw Message-ID: <20061109175407.GA82958@gizmo.acns.msu.edu> References: <2cd0a0da0611082139g7a529a61x76db1c52638fdec9@mail.gmail.com> <20061109155632.GA82382@gizmo.acns.msu.edu> <455364CE.9080100@dial.pipex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <455364CE.9080100@dial.pipex.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org, VeeJay 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:55:16 -0000 On Thu, Nov 09, 2006 at 05:26:38PM +0000, Alex Zbyslaw wrote: > 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. Sort of, but don't forget paging. The system always pages - pushes out pages that don't get used so often, but are still part of the active processes. The system pages to swap space. Paging and possible core dumps are the main uses of swap space, not actual swapping. > >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...). I tend to agree, but there are lots of things that assume otherwise. So, you either accept that or manually rearrange, as I suggested, or in some other fashion. > 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. Yes. I prefer to do this. I even stick /uer/src and /usr/ports and /usr/local and /var/log in that large omnibus filesystem. ////jerry > > --Alex > >