Giter Club home page Giter Club logo

flipfloyd's People

Contributors

dgruss avatar misc0110 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flipfloyd's Issues

Heavy disk I/O while Waylaying

The "relocate.c" program causes extremely high disk I/O loads while working, because it needs to read the randomized "evict" file to get rid of all page caches.

In order to finally relocate a target binary to the desired physical address, it needs to be executed 10,000+ times, which costs several days according to the Flip-in-the-wall article. During the process, although the memory consumption does remain unchanged, the heavy disk I/O load slows the whole system down and can be easily detected.

So, Is there any more efficient way to relocate a binary to a certain phys-addr? (Outside enclaves, root privileges are also OK). I want to optimize the process so that I won't wait for days for this step.

I have tried (below):

  • Waylaying: ~10-30s per run (depending on hdd speed, mine is slow), memory coverage is good.
  • Chasing (with copy-on-write fork()): very fast, but my program always returns repeated addresses. I can only get ~8MB different pages (~2000 pages). Where did I do wrong?
  • posix_fadvise(): can actually relocate, but only gets ~32MB different pages, coverage is poor.
  • posix_fadvise() + some Waylaying: only gets ~100MB different pages.

I have not tried /proc/sys/vm/drop_caches but I feel it does not help much.

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.