Coder Social home page Coder Social logo

pmfs-new's Introduction

Porting PMFS to the latest Linux kernel

Introduction

PMFS is a file system for persistent memory, developed by Intel. For more details about PMFS, please check the git repository:

https://github.com/linux-pmfs/pmfs

This project ports PMFS to the latest Linux kernel so developers can compare PMFS to other file systems on the new kernel.

Building PMFS

The master branch works on the 4.15 version of x86-64 Linux kernel.

To build PMFS, simply run a

#make

command.

Running PMFS

PMFS runs on a physically contiguous memory region that is not used by the Linux kernel, and relies on the kernel NVDIMM support.

To run PMFS, first build up your kernel with NVDIMM support enabled (CONFIG_BLK_DEV_PMEM), and then you can reserve the memory space by booting the kernel with memmap command line option.

For instance, adding memmap=16G!8G to the kernel boot parameters will reserve 16GB memory starting from 8GB address, and the kernel will create a pmem0 block device under the /dev directory.

After the OS has booted, you can initialize a PMFS instance with the following commands:

#insmod pmfs.ko
#mount -t pmfs -o init /dev/pmem0 /mnt/ramdisk 

The above commands create a PMFS instance on pmem0 device, and mount on /mnt/ramdisk.

To recover an existing PMFS instance, mount PMFS without the init option, for example:

#mount -t pmfs /dev/pmem0 /mnt/ramdisk 

There are two scripts provided in the source code, setup-pmfs.sh and remount-pmfs.sh to help setup PMFS.

Current limitations

  • PMFS only works on x86-64 kernels.
  • PMFS does not currently support extended attributes or ACL.
  • PMFS requires the underlying block device to support DAX (Direct Access) feature.
  • This project cuts some features of the original PMFS, such as memory protection and huge mmap support. If you need these features, please turn to the original PMFS.

pmfs-new's People

Contributors

andiry avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.