Coder Social home page Coder Social logo

nvm-emulator's Introduction

Non-Volatile Memory Emulator

Copyright (C) 2015-2018 Yizhou Shan <[email protected]>. All rights Reserved.

(Project done in Institute of Computing Technology, Chinese Academy of Science (ICT, CAS) around 2016. It is not maintained anymore. Happy to know one group in HUST has extended this emulator and used it in their research.)

The basic idea is to use Intel PMU to count number of read/writes requests issued from CPU to Memory. Based on this, the emulator manually inject delays to the CPU by running an idle function to emulate the extra read/write latency of NVM. The bandwidth is emulated by limiting the memory controller requests. The whole emulation model is similar to what Quartz is doing.

For anyone who interested in this project:
This emulator is much more complex that it shoud be. We SHOULD leverage the PMU facility already provided by linux kernel. I saw kernel-events improved a lot during These 2 or 3 years. Previously all x86-pmu-events code is in arch/x86/kernel/cpu/, now they have a standalone directory in arch/x86/events/.

Anyway, let us see when toothpaste company Intel will have PM ready for markets.

Publications use this emulator

[1] Caching or Not: Rethinking Virtual File System for Non-Volatile Main Memory, HotStorage'18

nvm-emulator's People

Contributors

lastweek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nvm-emulator's Issues

give some hits about code

hi, there

I happened to see this repository. I am just curious about how this emulator work.s Could you please give me some hints or docs? PS. I am currently also working on NVM, have already tried some emulator.

Best,

Wei

Re: Error while make

Hello, I am getting some errors while doing make. Can you please tell how to fix that? Thanks.

make -C /lib/modules/5.4.0-52-generic/build/ M=/home/mukti/NVM-Emulator-1.0 modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-52-generic'
CC [M] /home/mukti/NVM-Emulator-1.0/uncore_pmu.o
In file included from ./include/linux/kernel.h:15,
from ./include/linux/list.h:9,
from ./include/linux/pci.h:32,
from /home/mukti/NVM-Emulator-1.0/uncore_pmu.h:27,
from /home/mukti/NVM-Emulator-1.0/uncore_pmu.c:36:
/home/mukti/NVM-Emulator-1.0/uncore_pmu.c: In function ‘uncore_print_pci_boxes’:
/home/mukti/NVM-Emulator-1.0/uncore_pmu.c:369:37: error: ‘refcount_t’ {aka ‘struct refcount_struct’} has no member named ‘counter’
369 | box->pdev->dev.kobj.kref.refcount.counter);
| ^
./include/linux/printk.h:303:33: note: in definition of macro ‘pr_printk_hash’
303 | printk(level pr_fmt(format), ##VA_ARGS)
| ^~~~~~~~~~~
/home/mukti/NVM-Emulator-1.0/uncore_pmu.c:360:4: note: in expansion of macro ‘pr_info’
360 | pr_info("......Box%d, in Node%d, %x:%x:%x, %d:%d:%d, Kref = %d",
| ^~~~~~~
make[2]: *** [scripts/Makefile.build:275: /home/mukti/NVM-Emulator-1.0/uncore_pmu.o] Error 1
make[1]: *** [Makefile:1757: /home/mukti/NVM-Emulator-1.0] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-52-generic'
make: *** [Makefile:37: all] Error 2

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.