From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by kanga.kvack.org (Postfix) with ESMTP id B91D66B0255 for ; Mon, 16 Nov 2015 12:29:01 -0500 (EST) Received: by wmec201 with SMTP id c201so130742772wme.1 for ; Mon, 16 Nov 2015 09:29:01 -0800 (PST) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com. [2a00:1450:400c:c09::235]) by mx.google.com with ESMTPS id ci5si47260097wjc.170.2015.11.16.09.29.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2015 09:29:00 -0800 (PST) Received: by wmdw130 with SMTP id w130so121196205wmd.0 for ; Mon, 16 Nov 2015 09:29:00 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20151116140526.GA6733@quack.suse.cz> References: <1447459610-14259-1-git-send-email-ross.zwisler@linux.intel.com> <1447459610-14259-4-git-send-email-ross.zwisler@linux.intel.com> <22E0F870-C1FB-431E-BF6C-B395A09A2B0D@dilger.ca> <20151116133714.GB3443@quack.suse.cz> <20151116140526.GA6733@quack.suse.cz> Date: Mon, 16 Nov 2015 09:28:59 -0800 Message-ID: Subject: Re: [PATCH v2 03/11] pmem: enable REQ_FUA/REQ_FLUSH handling From: Dan Williams Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Jan Kara Cc: Andreas Dilger , Ross Zwisler , "linux-kernel@vger.kernel.org" , "H. Peter Anvin" , "J. Bruce Fields" , Theodore Ts'o , Alexander Viro , Dave Chinner , Ingo Molnar , Jan Kara , Jeff Layton , Matthew Wilcox , Thomas Gleixner , linux-ext4 , linux-fsdevel , Linux MM , "linux-nvdimm@lists.01.org" , X86 ML , XFS Developers , Andrew Morton , Matthew Wilcox , Dave Hansen On Mon, Nov 16, 2015 at 6:05 AM, Jan Kara wrote: > On Mon 16-11-15 14:37:14, Jan Kara wrote: [..] > But a question: Won't it be better to do sfence + pcommit only in response > to REQ_FLUSH request and don't do it after each write? I'm not sure how > expensive these instructions are but in theory it could be a performance > win, couldn't it? For filesystems this is enough wrt persistency > guarantees... We would need to gather the performance data... The expectation is that the cache flushing is more expensive than the sfence + pcommit. -- 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