From owner-freebsd-hardware@FreeBSD.ORG Sat May 10 17:07:39 2008 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83D1B1065671 for ; Sat, 10 May 2008 17:07:39 +0000 (UTC) (envelope-from bsd@fluffles.net) Received: from mail.fluffles.net (fluffles.net [80.69.95.190]) by mx1.freebsd.org (Postfix) with ESMTP id 48C3F8FC23 for ; Sat, 10 May 2008 17:07:39 +0000 (UTC) (envelope-from bsd@fluffles.net) Received: from [10.0.0.25] (82-171-210-125.ip.telfort.nl [82.171.210.125]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: info@fluffles.net) by mail.fluffles.net (Postfix) with ESMTP id BAB81B29D5D; Sat, 10 May 2008 18:47:43 +0200 (CEST) Message-ID: <4825D208.5010402@fluffles.net> Date: Sat, 10 May 2008 18:49:12 +0200 From: "fluffles.net" User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: WKK References: <4820B7EC.5040705@wkk.com> In-Reply-To: <4820B7EC.5040705@wkk.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: freebsd-hardware@freebsd.org Subject: Re: industrial computer flash performance issues X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 May 2008 17:07:39 -0000 WKK wrote: > I have a Nagasaki IPC industrial computer that has an 8 GB flash drive > on a 44 pin ATA connector. I have booted FreeBSD 6.2 and 7.0 via a USB > CD drive and I am getting very bad read performance. No wonder, your flash is incapable of DMA mode, at least on FreeBSD it seems. You are using PIO mode to transfer data. This degrades a modern pc to something like pre-pentium age. So unless you are able to get it working in DMA mode (UDMA33 will be fine, the slowest setting) you won't see any good performance and interrupt cpu usage will be extremely high. It will degrade your whole system. > The same CF device connected with a USB adapter (/dev/da0) gets about > 16MB/s In that case it is using DMA and not PIO. Maybe the USB adapter takes care of that? To have good flash performance you need an SSD with advanced controller chip. One example is Mtron Mobi/PRO Serial ATA SSD, which is pricey. Samsung and Transcend have new offerings too, but may offer less performance. SLC flash is better than MLC flash, but more expensive. And i suspect your flash device without controller chip to lack support of wear leveling technique, causing your flash to be weared out in just a couple of months of operation with a lot of writes in /var/log. You may enable soft updates with long update setting to delay this wearing effect. Regards, Veronica fluffles.net