From owner-freebsd-arch@FreeBSD.ORG Fri Dec 28 22:43:24 2012 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A2E063B2 for ; Fri, 28 Dec 2012 22:43:24 +0000 (UTC) (envelope-from phk@phk.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 5F4598FC12 for ; Fri, 28 Dec 2012 22:43:24 +0000 (UTC) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 7EF4B8A50F; Fri, 28 Dec 2012 22:43:16 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.5/8.14.5) with ESMTP id qBSMhFIf048514; Fri, 28 Dec 2012 22:43:16 GMT (envelope-from phk@phk.freebsd.dk) To: Jeff Roberson Subject: Re: Unmapped I/O In-reply-to: From: "Poul-Henning Kamp" References: <20121219135451.GU71906@kib.kiev.ua> Date: Fri, 28 Dec 2012 22:43:15 +0000 Message-ID: <48513.1356734595@critter.freebsd.dk> Cc: Konstantin Belousov , arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2012 22:43:24 -0000 -------- In message , Jeff Roberson writes: >3) I find the NOTMAPPED negative flag awkward grammatically. UNMAPPED >seems more natural. Or a positive MAPPED flag would be better. Minor >concern, bikeshedding, etc. Given that down the road, MAPPED should be the exceptional case, I think this should not be a negative option. >4) It would be better to have some wrapper functions around the bio >transient map and or sf buf handling. I will need it to map unmapped cam >ccbs in device drivers. We need to come to some agreement on this API. >There should be a fast page-by-page version and a potentially blocking >all-at-once linear version. Do we have credible relevant use-cases for the "map all linear at once" case ? I think it would be better to leave it out, and force those obscure (already pessimized) cornercases to deal with page by page, rather than have them cramp our style WRT to max I/O size. -- 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.