From owner-freebsd-hackers Tue Nov 18 01:32:35 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA07495 for hackers-outgoing; Tue, 18 Nov 1997 01:32:35 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA07484 for ; Tue, 18 Nov 1997 01:32:30 -0800 (PST) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.7/8.8.5) id EAA01115; Tue, 18 Nov 1997 04:32:24 -0500 (EST) From: "John S. Dyson" Message-Id: <199711180932.EAA01115@dyson.iquest.net> Subject: Re: Optimizing HD I/O. What size to use to read/write? In-Reply-To: <199711180759.XAA20331@super.zippo.com> from Francisco Reyes at "Nov 18, 97 02:59:09 am" To: reyesf@super.zippo.com Date: Tue, 18 Nov 1997 04:32:24 -0500 (EST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Francisco Reyes said: > I am going to start working on a program which will be heavy on I/O. > I was wondering what would be a good size to read/write at a time. > > What is the minimun block size FreeBSD allocates? 4K? 8K? Is it HD > dependent? > One more comment, if you are doing sequential I/O, you really don't want to do read/writes less than 4K-8K. You are likely into diminishing returns beyond 8K. -- John dyson@freebsd.org jdyson@nc.com