Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751636AbdGZRLL (ORCPT ); Wed, 26 Jul 2017 13:11:11 -0400 Received: from mail-yw0-f177.google.com ([209.85.161.177]:34346 "EHLO mail-yw0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750921AbdGZRLK (ORCPT ); Wed, 26 Jul 2017 13:11:10 -0400 MIME-Version: 1.0 In-Reply-To: <20170726170147.GA31930@infradead.org> References: <1500552639-18523-1-git-send-email-sunqiuyang@huawei.com> <20170726072634.GA4684@infradead.org> <20170726170147.GA31930@infradead.org> From: Dan Williams Date: Wed, 26 Jul 2017 10:11:08 -0700 Message-ID: Subject: Re: [PATCH v8 1/1] f2fs: dax: implement direct access To: Christoph Hellwig Cc: "linux-nvdimm@lists.01.org" , Linux Kernel Mailing List , linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel , Jaegeuk Kim , sunqiuyang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1042 Lines: 21 On Wed, Jul 26, 2017 at 10:01 AM, Christoph Hellwig wrote: > On Wed, Jul 26, 2017 at 09:53:07AM -0700, Dan Williams wrote: >> It allows for opt-in for applications, or administrators of those >> applications, that know the type of access. > > That's BS. We need to provide the best possible way to access the > media to an application. And whether that's DAX or the page cache > is an implementation detail that should not matter to the application. > > Which doesn't mean there shouldn't be ways to override the default > that the kernel chose based on hardware details, but it's certainly > not something for the application to hardcode, but something for > the adminstrator to decide. Until HMAT came along we had no data in the kernel how to pick a sane default, but we could now very easily make a "if pmem performance < dram, disable dax by default" policy in the kernel. The question for this patch is do we want to add yet another filesystem that adds "-o dax" or require use of per-inode flags to enable dax.