Giter Site home page Giter Site logo

openfam-1's Introduction

OpenFAM

Recent technology advances in high-density, byte-addressable non-volatile memory (NVM) and low-latency interconnects have enabled building large-scale systems with a large disaggregated fabric-attached memory (FAM) pool shared across heterogeneous and decentralized compute nodes. In this model, compute nodes are decoupled from FAM, which allows separate evolution and scaling of processing and memory. Thus, the compute-to-memory ratio can be tailored to the specific needs of the workload. Compute nodes fail independently of FAM, and these separate fault domains provide a partial failure model that avoids a complete system shutdown in the event of a component failure. When a compute node fails, updates propagated to FAM remain visible to other compute nodes.

OpenFAM is is an API designed for clusters that contain disaggregated memory. The primary purpose of the reference implementation at this site is to enable experimentation with the OpenFAM API, with the broader goal of gathering feedback from the community on how the API should evolve. The reference implementation, thus, is designed to run on standard commercially available servers. More documentation about the API itself is available here

Assumptions

  • We assume that the fabric attached memory is modelled using memory servers implemented using standard hardware that expose their memory as FAM to other servers. Unlike target architectures, a memory server is an active entity on the FAM side, and participates in managing FAM-resident data. We also assume that RDMA transports are available to efficiently access the memory exposed by the memory servers. To the extent possible, we are using standard RDMA and communication libraries that are being developed in the community in our implementation.
  • While we are interested in making the API functionally available, it is not our immediate goal to optimize performance or scale of the reference implementation. Optimizing performance at scale necessarily has significant dependencies on the hardware and software available at the OS/middleware level, which we are initially trying to avoid. However, we do plan to benchmark the reference implementation and understand where performance bottlenecks exist, so that they can be addressed as the implementation evolves to a true FAM architecture.
  • We are initially not assuming fault tolerance in the implementation of the OpenFAM library.

Building(Ubuntu 18.04 LTS)

  1. Download the source code by cloning the repository. If you wish to contribute changes back to OpenFAM, follow the contribution guidelines.

  2. Change into the source directory (assuming the code is at directory $OpenFAM):

$ cd $OpenFAM
  1. Build third-party dependencies as described in the README under the third-party directory.

  2. Build and Test with the script. Note that this script will build OpenFAM under build/build-rpc directory and run unit tests and regression tests.

$ ./build_and_run.sh
  1. (Optional) Build and Test manually.

    a. Create and change into a build directory under the source directory $OpenFAM.

    $ cd $OpenFAM
    $ mkdir build
    $ cd build
    

    b. Run cmake.

    $ cmake ..
    

    The default build type is Release. To switch between Release, Debug and Coverage, use one of the below command:

    $ cmake .. -DCMAKE_BUILD_TYPE=Release
    $ cmake .. -DCMAKE_BUILD_TYPE=Debug
    $ cmake .. -DCMAKE_BUILD_TYPE=Coverage
    

    c. make and install OpenFAM under the current build directory.

    $ make -j
    $ make install
    

    d. Start the memoryserver on localhost(127.0.0.1) as a background process on the current terminal.

    $ ./src/memoryserver -m 127.0.0.1 &
    

    e. Run the unit tests and regresssion tests.

    $ make unit-test
    $ make reg-test
    

    f. Stop the memoryserver running locally on the current terminal.

    $ pkill memoryserver
    
  2. (Optional) If you only wish to test code coverage.

    a. Perform steps 5-a to 5-d using build type as Coverage in step 5-a

    $ cmake .. -DCMAKE_BUILD_TYPE=Coverage
    

    b. Clean previous coverage information

    $ make cov-clean
    

    c. Run unit-test and reg-test

    $ make cov-run-tests
    

    If required, run other tests to improve coverage results before generating report.

    d. Generate code coverage reports

    $ make cov-report
    

    A summary report is displayed on the terminal, while the details coverage results in html format is placed under build/test/coverage directory. To collect additional coverage information of memoryserver, repeat this step after stopping memoryserver instance(5-f).

Note: cmake command should be re-run if fam_rpc.proto file is modified to generate updated fam_rpc.grpc.pb.cc and fam_rpc.pb.cc files

openfam-1's People

Contributors

vrashiponnappa avatar gautham-bhat-k avatar ssinghal53 avatar mashoodk avatar faizanbarmawer avatar ba-ramya avatar faizan-barmawer avatar soumya-pn 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.