From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com [209.85.218.52]) by kanga.kvack.org (Postfix) with ESMTP id A55776B0253 for ; Tue, 23 Feb 2016 18:34:53 -0500 (EST) Received: by mail-oi0-f52.google.com with SMTP id j125so1364235oih.0 for ; Tue, 23 Feb 2016 15:34:53 -0800 (PST) Received: from mail-ob0-x22d.google.com (mail-ob0-x22d.google.com. [2607:f8b0:4003:c01::22d]) by mx.google.com with ESMTPS id c80si99680oig.118.2016.02.23.15.34.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Feb 2016 15:34:53 -0800 (PST) Received: by mail-ob0-x22d.google.com with SMTP id jq7so1791281obb.0 for ; Tue, 23 Feb 2016 15:34:53 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <56C9EDCF.8010007@plexistor.com> <56CA1CE7.6050309@plexistor.com> <56CA2AC9.7030905@plexistor.com> <20160221223157.GC25832@dastard> <20160222174426.GA30110@infradead.org> <257B23E37BCB93459F4D566B5EBAEAC550098A32@FMSMSX106.amr.corp.intel.com> <20160223095225.GB32294@infradead.org> <56CC686A.9040909@plexistor.com> <56CCD54C.3010600@plexistor.com> Date: Tue, 23 Feb 2016 15:34:52 -0800 Message-ID: Subject: Re: [RFC 0/2] New MAP_PMEM_AWARE mmap flag From: Dan Williams Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Jeff Moyer Cc: Boaz Harrosh , Christoph Hellwig , "Rudoff, Andy" , Dave Chinner , Arnd Bergmann , linux-nvdimm , Oleg Nesterov , linux-mm , Mel Gorman , Johannes Weiner , "Kirill A. Shutemov" On Tue, Feb 23, 2016 at 3:28 PM, Jeff Moyer wrote: >> The crux of the problem, in my opinion, is that we're asking for an "I >> know what I'm doing" flag, and I expect that's an impossible statement >> for a filesystem to trust generically. > > The file system already trusts that. If an application doesn't use > fsync properly, guess what, it will break. This line of reasoning > doesn't make any sense to me. No, I'm worried about the case where an app specifies MAP_PMEM_AWARE uses fsync correctly, and fails to flush cpu cache. >> If you can get MAP_PMEM_AWARE in, great, but I'm more and more of the >> opinion that the "I know what I'm doing" interface should be something >> separate from today's trusted filesystems. > > Just so I understand you, MAP_PMEM_AWARE isn't the "I know what I'm > doing" interface, right? It is the "I know what I'm doing" interface, MAP_PMEM_AWARE asserts "I know when to flush the cpu relative to an fsync()". -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org