From owner-freebsd-questions Sun Aug 12 1:29:53 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 0C34837B407 for ; Sun, 12 Aug 2001 01:29:48 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 4F9676ACBC; Sun, 12 Aug 2001 18:00:14 +0930 (CST) Date: Sun, 12 Aug 2001 18:00:14 +0930 From: Greg Lehey To: Kevin Hui Cc: Alfred Perlstein , freebsd-questions@freebsd.org Subject: Re: Experiencing very slow raw write speeds on /dev/ad1 Message-ID: <20010812180014.D48115@wantadilla.lemis.com> References: <20010810025156.N85642@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from khui@cs.toronto.edu on Fri, Aug 10, 2001 at 11:17:55AM -0400 Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Friday, 10 August 2001 at 11:17:55 -0400, Kevin Hui wrote: >>> Adding write caching helped a lot. Now the write speed jumps to ~15.8MB/s >>> instead of the previous 3.5MB/s. >>> Are there any other such settings I should pay attention to? I asked >>> because I believe that the performance is still not as good as can be. I >>> have the rawio program running under Linux with the identical hardware >>> (accessing the /dev/raw/raw0, which maps to /dev/hdb) and I got ~38.4MB/s >>> raw write speed (BTW I get ~38.4MB/s from both Linux and FreeBSD when I do >>> the single-process raw sequential read test). >> >> I'm a bit confused, where do the numbers differ and what are the numbers? > > The numbers from simple runs (standard chunk size, single I/O thread, > sequential read and then sequential write) are provided below. The > FreeBSD write number is less than half of what Linux is getting. > > -Kevin. > > Linux running rawio: > -------------------- > Linux# time ./rawio -p 1 -s 8000000000 -r -w /dev/raw/raw1 > Random read Sequential read Random write Sequential write > ID K/sec /sec K/sec /sec K/sec /sec K/sec /sec > aw1 38406.8 2344 38656.5 2359 > > real 0m15.946s > user 0m0.010s > sys 0m1.790s > > > FreeBSD running rawio: > ---------------------- > FreeBSD# time ./rawio -p 1 -s 8000000000 -r -w /dev/ad1 > Random read Sequential read Random write Sequential write > ID K/sec /sec K/sec /sec K/sec /sec K/sec /sec > ad1 38410.4 2344 15732.6 960 > 26.06 real 0.00 user 1.18 sys Linux and rawio are not really compatible. In Linux you have no choice, you must go via buffer cache; this can give you results which look much better. Also, sequential I/O is not very informative, especially if you only have one process. It would be much more interesting to look at random I/O and not change the default rawio parameters (in particular, let 8 concurrent processes run). Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message