From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754478AbbIRQSh (ORCPT ); Fri, 18 Sep 2015 12:18:37 -0400 Received: from mga01.intel.com ([192.55.52.88]:36705 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754290AbbIRQSf (ORCPT ); Fri, 18 Sep 2015 12:18:35 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,553,1437462000"; d="scan'208";a="808193270" Date: Fri, 18 Sep 2015 10:18:13 -0600 From: Ross Zwisler To: Lin Yongting Cc: ross.zwisler@linux.intel.com, dan.j.williams@intel.com, axboe@fb.com, akpm@linux-foundation.org, richard@nod.at, willy@linux.intel.com, wangxiaozhe@huawei.com, mingo@kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pramdisk: new block disk driver to perform persistent storage Message-ID: <20150918161813.GA4274@linux.intel.com> References: <1442562390-91051-1-git-send-email-linyongting@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1442562390-91051-1-git-send-email-linyongting@huawei.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 18, 2015 at 03:46:30PM +0800, Lin Yongting wrote: > In embed devices, user space applications will use reserved memory > (i.e. persistent memory) to store business data, the data is kept > in this memory region after system rebooting or panic. > > pramdisk is a block disk driver based on Persistent memory, it provide > file system interface for application to read/write data in persistent > memory. Application can use pramdisk to store log file or business data > in persistent memory in the way of file system operation, avoid operating > or managing memory directly. > > pramdisk support multiple Persistent menory regions and each one is a > block device named as /dev/pram. > > Usage: > modprobe pramdisk.ko pmem=@ [ pmem=@ ... ] > > For example: > modprobe pramdisk.ko pmem=20M@2050M pmem=20M@2150M > mkfs.ext3 /dev/pram1 > mkdir /tmp/test1 > mount -t ext3 /dev/pram1 /tmp/test1 > > Signed-off-by: Lin Yongting > Signed-off-by: Wang xiaozhe I think you already have this functionality with the PMEM driver and the memmap=nn[KMG]!ss[KMG] command line parameter? What are you trying to accomplish with this driver that you can't do with PMEM?