Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1269671ybg; Wed, 23 Oct 2019 13:04:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzasQksdZ+iEnEjF46A67Fu00FQ1U118ceqcjXZ+rNNmcIWUgcvFP5R8dlKqlo+iM4U4ccK X-Received: by 2002:a05:6402:134e:: with SMTP id y14mr40725101edw.55.1571861062485; Wed, 23 Oct 2019 13:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571861062; cv=none; d=google.com; s=arc-20160816; b=eoLmfS8tlD+MQ9Y4KsnJ5+G5qUhZMj4RPkU+ZD7TRc5Gbx7OGhzEbDenVSioe7exsS drlGevYT9fmagZUtyvhRCEF4kwwT1Jjytp5OeOJ3F4bstlQBt9nO0KwoDeT2SI/+f0yD CpUc6GVxWcIyuqL5B7u9/EGUCYUs/pHZot9GWUGXDi+1KNOPDt480OgNfly0XGe7Q3Zm T6mRWHiALlSYuTllNT20cGw/ZEum59RIXVVNUWp0kDNdjK5Bgy25iuRJmYXR0Min0AVz STqjokX2+y142szka2nztvE4R9RaVpNi0xZ528bZYdEAAOZNaCEFZyUv5A1Su1/KYNo1 W8VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=NinmgajUCfhO7+tZ41dBDs+Wf/QWxDVGKSCH9dLTzRQ=; b=uT2jbzLw3oJ/7sTaEc7mO8vdVSKpr2fnVxOxpbL0XBg9ZZqxyBn2CzLr4UZ6WgEAGt /EWM2KYu+Y2XNYuxC0eqw6m/sWdGcHBgeFVVt2RE184TnWxD1/pPvkvVpfBsGps1ifVo BOJaFPdzu4rx+V0L6Yzev/IaXYVJZ4hfJbKMP1jZmjnhMGnIA0fxAZT0H04yNDOgzCnq lr8sm0XEEtvYamJmkcN+q5oqpKOJ9BdzW5xCraYv/EG3cYLu4id59wWQkp1ZxI75moKY U4lY6Th4kyFz0JENpdJVUui56eFMKFEs278ajAyOo44oqIbcrAhPQJn8upAys0mHNu43 iQPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@plexistor-com.20150623.gappssmtp.com header.s=20150623 header.b=Ue6vcAWX; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w32si6301990edc.443.2019.10.23.13.03.48; Wed, 23 Oct 2019 13:04:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@plexistor-com.20150623.gappssmtp.com header.s=20150623 header.b=Ue6vcAWX; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405596AbfJWNJz (ORCPT + 99 others); Wed, 23 Oct 2019 09:09:55 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:37353 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405577AbfJWNJz (ORCPT ); Wed, 23 Oct 2019 09:09:55 -0400 Received: by mail-ed1-f68.google.com with SMTP id r4so15713128edy.4 for ; Wed, 23 Oct 2019 06:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plexistor-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=NinmgajUCfhO7+tZ41dBDs+Wf/QWxDVGKSCH9dLTzRQ=; b=Ue6vcAWXJumSy35CyULE52NwN/O5lBkjnv9W+NBFTDwFNKyvVEU8n3GtW0A6Ip5xMM jYmD3UgNWmMoM/ChyG9SxPC0xzUCQv6UAixpeQlQQ2C3zJ59PtOIwjk0ObIiKceehjFZ 7nyLriOsglh0IubE9caMlAhyGbJwrXIG9V0phNMTWk10nfiM274GVzS8FLdwugR8M8k8 P1Xo6dRBAs+FK8SYRwmsL6zEFZfJH/RkmxttRQvnzuRKKaDHtjgYfnBWBesfjGf4LIRf AzPBR2eR/JBYl9QxjzDlx/EUBfEfjgMcI5SBMS5WscFAhrN+0sft4P4GrzYn5jDd2HQZ TFkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NinmgajUCfhO7+tZ41dBDs+Wf/QWxDVGKSCH9dLTzRQ=; b=NH0WgrOLNvqc0i6Wvg9v9LUJNp4rwF6jtz4jF7+4bCzIe04dAYlE/Mx9mqlYeAY5cx WbtVMk3vAhTr5Do4am90S+UGQodJEXkLvWY74FSV0qm0DomeOSWYfVWlEiLOFR3cUMaA +ZrlgbsRcBkOcNvCPWoU92MrjmPFLlyQQD6OUEob8ORjzfCGRrYq13iFx28DSaeFWEkY uOI483VFaw0ad7O/LJDJhhpU+ko+34RHoMywWCzJ5ByTkpYb6bKDjmHdNBL5uzsxqvGG 4wLOVEl/H5YB+uJ5pyuoxlxpT0rj/tNAZC7oydV3wRlbxWX1mrtMg1DM4O9zvxoKTayz QytA== X-Gm-Message-State: APjAAAX1rnVTzKW8JWMu1WplZfbNcUcgs5NpG5eLFDuEemsYzXqckASv Qg+pe7atbdLDSdckrPRmWLRr5kybtgs= X-Received: by 2002:a17:906:7212:: with SMTP id m18mr32604441ejk.88.1571836193408; Wed, 23 Oct 2019 06:09:53 -0700 (PDT) Received: from [10.68.217.182] ([217.70.210.43]) by smtp.googlemail.com with ESMTPSA id o26sm115518edt.55.2019.10.23.06.09.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Oct 2019 06:09:52 -0700 (PDT) Subject: Re: [PATCH 0/5] Enable per-file/directory DAX operations From: Boaz Harrosh To: ira.weiny@intel.com, linux-kernel@vger.kernel.org Cc: Alexander Viro , "Darrick J. Wong" , Dan Williams , Dave Chinner , Christoph Hellwig , "Theodore Y. Ts'o" , Jan Kara , linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org References: <20191020155935.12297-1-ira.weiny@intel.com> Message-ID: Date: Wed, 23 Oct 2019 16:09:50 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 22/10/2019 14:21, Boaz Harrosh wrote: > On 20/10/2019 18:59, ira.weiny@intel.com wrote: <> >> At LSF/MM we discussed the difficulties of switching the mode of a file with >> active mappings / page cache. Rather than solve those races the decision was to >> just limit mode flips to 0-length files. >> > > What I understand above is that only "writers" before writing any bytes may > turn the flag on, which then persists. But as a very long time user of DAX, usually > it is the writers that are least interesting. With lots of DAX technologies and > emulations the write is slower and needs slow "flushing". > > The more interesting and performance gains comes from DAX READs actually. > specially cross the VM guest. (IE. All VMs share host memory or pmem) > > This fixture as I understand it, that I need to know before I write if I will > want DAX or not and then the write is DAX as well as reads after that, looks > not very interesting for me as a user. > > Just my $0.17 > Boaz > I want to say one more thing about this patchset please. I was sleeping on it and I think it is completely wrong approach with a completely wrong API. The DAX or not DAX is a matter of transport. and is nothing to do with data content and persistency. It's like connecting a disk behind, say, a scsi bus and then take the same DB and putting it behind a multy-path or an NFS server. It is always the same data. (Same mistake we did with ndctl which is cry for generations) For me the DAX or NO-DAX is an application thing and not a data thing. The right API is perhaps an open O_FLAG where if you are not the first opener the open returns EBUSY and then the app can decide if to open without the flag or complain and fail. (Or apply open locks) If you are a second opener when the file is already opened O_DAX you are silently running DAX. If you are 2nd open(O_DAX) when already oppened O_DAX then off course you succeed. (Also the directory inheritance thing is all mute too) Please explain the use case behind your model? Thanks Boaz