Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/graphitemaster/moreram
Get more system memory
https://github.com/graphitemaster/moreram
Last synced: 15 days ago
JSON representation
Get more system memory
- Host: GitHub
- URL: https://github.com/graphitemaster/moreram
- Owner: graphitemaster
- Created: 2016-04-24T05:38:47.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2020-06-15T23:27:49.000Z (over 4 years ago)
- Last Synced: 2024-07-31T15:02:39.780Z (3 months ago)
- Language: C
- Size: 11.7 KB
- Stars: 803
- Watchers: 22
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 ;)