memif.png  
 

memif is a Linux-compatible OS service for managing modern heterogeneous memory.

Overview

Memory in modern computers is embracing layers that have disparate capacity, bandwidth, latency, and power consumption. Towards better overall performance and efficiency, we advocate that software should directly manage data move within such heterogeneous memory.

To this end, we build memif, a Linux OS module that supports asynchronous, DMA-accelerated memory move. Unlike userspace DMA drivers, memif is protected and compatible with commodity OSes. Its low-overhead, low-latency interface is constructed based on two primary ideas:

  • Making user and kernel directly share lock-free data structures, including a unique red-blue lock-free queue;

  • Using a kernel thread to fetch memory move requests and post completion notifications without synchronizing with applications.

As of 12/2015, the prototype of memif works on top of TI’s Keystone2 SoC. The Keystone2 features a heterogeneous memory hierarchy: fast, medium-sized on-chip SRAM (called MSMC) and large, slow DRAM.

As of 6/2016, an x86 porting is available.

Publication

Software

For quick start with a pre-built system image, see here.

For source code on ARM, see here.

For source code on x86, see here and here.

For detailed build instructions, check out the documentation that comes with the source.

Acknowledgement

  • memif was supported in part by NSF Award CNS-1464157 and NSF Award CCF-1464357.

  • We thank Texas Instruments for their kind donation of Keystone2 development boards. Thumbsup

  • memif has benefited from various projects, for instance

People

License

All the userspace programs and kernel modules resulted from this project are under FreeBSD license.

Copyright (c) 2015-2016, Purdue University

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of Purdue University.

This page is generated with asciidoc on 2016-04-29. [ source rawlink ]