From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH] ext4: introduce per-inode DAX flag Date: Fri, 11 Aug 2017 05:58:49 -0700 Message-ID: <20170811125849.GA15300@infradead.org> References: <1501690186-17607-1-git-send-email-lczerner@redhat.com> <20170805084601.GA12425@infradead.org> <20170807121212.nuiho4afmdjf5vsd@rh_laptop> <20170808090016.lxfbcrhoybmyfvlc@rh_laptop> <20170811100147.GB7064@infradead.org> <20170811121132.bj5y77scrvkgy7uo@rh_laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Christoph Hellwig , linux-ext4@vger.kernel.org Return-path: Received: from bombadil.infradead.org ([65.50.211.133]:47721 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752823AbdHKM6u (ORCPT ); Fri, 11 Aug 2017 08:58:50 -0400 Content-Disposition: inline In-Reply-To: <20170811121132.bj5y77scrvkgy7uo@rh_laptop> Sender: linux-ext4-owner@vger.kernel.org List-ID: On Fri, Aug 11, 2017 at 02:11:32PM +0200, Lukas Czerner wrote: > Thanks, for the answer. I do not know too much about the DAX enabled HW. > However I do know that there is some variety to it, some can be faster > than DRAM, some can be slower, or on-par with DRAM. Some can be more > expensive, hence probably smaller, some cheaper and bigger. What about > latency and throughput can there be difference as well ? Or it could be similar for reads and much slower for writes. Or it might prefer larger access sizes than a cache line. > That said, it seems to me that there can be some user choice involved in > this at least based on the fact that when DAX is used system memory is not > used. All of the above are charateristics of the medium, not of the application. > So for example when DAX HW is slower than system memory, user can make > a choice to exclude some inodes to speed up particular workload, while > saving system memory where it does not matter as much. What should be factored into the decision might be access hints from the applications, which would be things like madvise/fadvise hints. But the application should not even have to know about something like DAX, and the detailed access characterisics of the medium. And even more importantly we should not encode those complex characterisitcs (see above) into a binary flag in the on-disk format.