GithubHelp home page GithubHelp logo

moreram's Introduction

More Ram

More Ram is a system-wide malloc replacement which allows you to gain up to an additional 12GB of system RAM.

To use:

$ sysctl -w vm.overcommit_memory=2
$ LD_PRELOAD=moreram.so ./app

How it works

More Ram exploits the video memory using OpenGL to unlock that memory so you can open a couple more tabs in Firefox

Technical description and difficulties

By taking advantage of persistently mapped buffers in OpenGL, we can exploit up to an additional 12GB of memory for system tasks.

There is no guarantee that the persistently mapped buffer technique actually references video memory. The worst case it's shadow memory and this actually wastes memory.

This will work on embedded better than it will on Desktops, where persistently mapped buffers actually do reference video memory. As for desktop, your best bet is a modern NV graphic card or an AMD GPU which supports GL_AMD_pinned_memory.

The logic for using GPU memory is only triggered when malloc/calloc/realloc fail. On systems with overcommit, this will never be the case. To make use of this overcommit must be disabled

Oh yeah, and it's thread safe!

Dependencies

Unfortunately for this to work you need a working X server as a GL context does need to be created

  • SDL2
  • GL 3.3+
  • Working X server

Is this a joke?

Totally a joke but still fun none the less. But it can work.

Why not downloadmoreram ;)

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.