From owner-freebsd-arch@FreeBSD.ORG Mon May 4 09:11:48 2015 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 778A5842; Mon, 4 May 2015 09:11:48 +0000 (UTC) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebius.int.ru", Issuer "cell.glebius.int.ru" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 04D7D1317; Mon, 4 May 2015 09:11:46 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.9/8.14.9) with ESMTP id t449BbCx042336 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 4 May 2015 12:11:37 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.9/8.14.9/Submit) id t449Bbgw042335; Mon, 4 May 2015 12:11:37 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Mon, 4 May 2015 12:11:37 +0300 From: Gleb Smirnoff To: Konstantin Belousov Cc: alc@FreeBSD.org, arch@FreeBSD.org Subject: Re: more strict KPI for vm_pager_get_pages() Message-ID: <20150504091137.GH34544@glebius.int.ru> References: <20150430142408.GS546@nginx.com> <20150504082426.GC2390@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150504082426.GC2390@kib.kiev.ua> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2015 09:11:48 -0000 On Mon, May 04, 2015 at 11:24:26AM +0300, Konstantin Belousov wrote: K> Below is the summary of my part of the internal discussion about the changes. Quite short. Is it truncated? K> Traditionally, Unix allows the filesystems to perform the short reads. K> Most fundamental change in the patch removes this freedom from the K> filesystem implementation, and I think that only local filesystems could K> be compliant with the proposed strictness. K> K> IMO, the response from vm_pager_haspages() is only advisory, since K> filesystem might not control the external entities which are the source K> of the required data. That's why remote filesystems use vop_stdbmap() (or similar), which always return zeroes for "after" and "before" hints. -- Totus tuus, Glebius.