From owner-freebsd-arch@FreeBSD.ORG Thu Jun 9 19:42:24 2005 Return-Path: X-Original-To: arch@FreeBSD.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A16CC16A41C; Thu, 9 Jun 2005 19:42:24 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from pasmtp.tele.dk (pasmtp.tele.dk [193.162.159.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FE3843D55; Thu, 9 Jun 2005 19:42:23 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (0x535c0e2a.sgnxx1.adsl-dhcp.tele.dk [83.92.14.42]) by pasmtp.tele.dk (Postfix) with ESMTP id E3D931EC319; Thu, 9 Jun 2005 21:42:22 +0200 (CEST) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.4/8.13.3) with ESMTP id j59JgF7v009132; Thu, 9 Jun 2005 21:42:15 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Pawel Jakub Dawidek From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 09 Jun 2005 21:30:08 +0200." <20050609193008.GB837@darkness.comp.waw.pl> Date: Thu, 09 Jun 2005 21:42:15 +0200 Message-ID: <9131.1118346135@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: arch@FreeBSD.org Subject: Re: simplify disksort, please review. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2005 19:42:24 -0000 In message <20050609193008.GB837@darkness.comp.waw.pl>, Pawel Jakub Dawidek writes: >The one example of how the order can be broken (write(offset, size)): > > write(1024, 512) > write(0, 2048) If you issue these two requests just like that, you get no guarantee which order they get written in. It's not just disksort which might surprise you, tagged queuing and write caches may mess up your day as well. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.