From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by kanga.kvack.org (Postfix) with ESMTP id 1BE376B0007 for ; Tue, 23 Oct 2018 14:16:54 -0400 (EDT) Received: by mail-pl1-f199.google.com with SMTP id o3-v6so1071161pll.7 for ; Tue, 23 Oct 2018 11:16:54 -0700 (PDT) Received: from mga07.intel.com (mga07.intel.com. [134.134.136.100]) by mx.google.com with ESMTPS id n11-v6si1844428plk.333.2018.10.23.11.16.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 11:16:52 -0700 (PDT) Subject: Re: [PATCH 0/9] Allow persistent memory to be used like normal RAM References: <20181022201317.8558C1D8@viggo.jf.intel.com> From: Dave Hansen Message-ID: <2677a7f9-5dc8-7590-2b8b-a67da1cb6b92@intel.com> Date: Tue, 23 Oct 2018 11:16:52 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: owner-linux-mm@kvack.org List-ID: To: "Elliott, Robert (Persistent Memory)" , 'Dan Williams' , Dave Hansen Cc: Tom Lendacky , "Hocko, Michal" , linux-nvdimm , "Huang, Ying" , Linux Kernel Mailing List , Linux MM , "zwisler@kernel.org" , Andrew Morton , Fengguang Wu >> This series adds a new "driver" to which pmem devices can be >> attached. Once attached, the memory "owned" by the device is >> hot-added to the kernel and managed like any other memory. On > > Would this memory be considered volatile (with the driver initializing > it to zeros), or persistent (contents are presented unchanged, > applications may guarantee persistence by using cache flush > instructions, fence instructions, and writing to flush hint addresses > per the persistent memory programming model)? Volatile. >> I expect udev can automate this by setting up a rule to watch for >> device-dax instances by UUID and call a script to do the detach / >> reattach dance. > > Where would that rule be stored? Storing it on another device > is problematic. If that rule is lost, it could confuse other > drivers trying to grab device DAX devices for use as persistent > memory. Well, we do lots of things like stable device naming from udev scripts. We depend on them not being lost. At least this "fails safe" so we'll default to persistence instead of defaulting to "eat your data".