From owner-freebsd-questions Fri Apr 6 6:32:13 2001 Delivered-To: freebsd-questions@freebsd.org Received: from i-zone.demon.co.uk (pc-62-31-234-68-se.blueyonder.co.uk [62.31.234.68]) by hub.freebsd.org (Postfix) with ESMTP id 01E1837B422 for ; Fri, 6 Apr 2001 06:32:10 -0700 (PDT) (envelope-from jfm@i-zone.demon.co.uk) Received: (from jfm@localhost) by i-zone.demon.co.uk (8.11.3/8.11.3) id f36DVra18328 for freebsd-questions@freebsd.org; Fri, 6 Apr 2001 14:31:53 +0100 (BST) (envelope-from jfm) Date: Fri, 6 Apr 2001 14:31:43 +0100 From: John To: freebsd-questions@freebsd.org Subject: Re: how can you say ufs is faster? Message-ID: <20010406143143.A16361@i-zone.demon.co.uk> References: <13713697115.20010406121725@21cn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <13713697115.20010406121725@21cn.com>; from bsddiy@21cn.com on Fri, Apr 06, 2001 at 12:17:25PM +0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Apr 06, 2001 at 12:17:25PM +0800, David Xu wrote: > Hello Dan, > > Monday, April 02, 2001, 12:14:17 PM, you wrote: > > DP> I am not disagreeing with you for your case study or OS for that matter as > DP> I do prefer freebsd much over linux anyday. IN a test I did where qmail > DP> was overloaded with mail on both a linux fs then a freebsd fs, linux fs > DP> outperformed freebsd no problems. Ufs , maybe i am wrong but is way slower > DP> when writing to files. Maybe reading sure.....but i am convinced writing > DP> there is no way. What i ended up doing was just striping 3 scsi drives > DP> together with vinum on freebsd because i try not to use linux unless > DP> SMP is a major factor. IF you look over current SMP code in kernel > DP> i can say linux and solaris do it way better......and there is no way fbsd > DP> can do it without a complete re-write of kernel which they are promising > DP> in 5.0....but we will see. I really question your benchmark program.... > DP> what do you use and your stats were based on more than 1 benchmark test > DP> right? > > evaluting a FS performance is difficult, I don't think ext2fs is > fast, you may not test deleting large file in ext2fs, it is a slowest > file system I ever saw, but UFS in FreeBSD is very fast at removing a Hi. In order to compare like with like, set the ufs in fstab to async. This is enabled automatically on linux systems but not on freebsd (as far as I remember). You do it like this: /dev/yourdrive / ufs rw,async 1 1 /dev/yourotherdrive /usr ufs rw,async 2 2 note the async. I do it for all drives apart from /proc which causes weirdness, nfs, swap and cdrom. I beleive there is a small but non-zero risk of data loss in certain situations with this setting, but I have been using it since 2.2.8 and haven't had a problem. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message