• Stars
    star
    804
  • Rank 56,681 (Top 2 %)
  • Language
    C
  • Created over 8 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Get more system memory

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 ;)

More Repositories

1

incbin

Include binary files in C/C++
C
946
star
2

breaking_the_physical_limits_of_fonts

Breaking the physical limits of fonts
JavaScript
319
star
3

glsl-parser

A GLSL parser
C++
251
star
4

lambdapp

Anonymous functions in C
C
247
star
5

gmqcc

An Improved Quake C Compiler
C++
159
star
6

normals_revisited

revisiting a known normal transformation in computer graphics
149
star
7

codin

Odin to C compiler
C
141
star
8

fpinspect

Inspect floating point computations
C
135
star
9

cvec

No bullshit vector library for C
C
78
star
10

neothyne

Engine and game
C++
77
star
11

libintrusive

Intrusive data structures for C
C
55
star
12

NVFC

OpenSource tool for monitoring, configuring and overclocking NVIDIA GPUs
C
44
star
13

scope_stack_alloc

A scoped stack allocator
C++
36
star
14

deshade

dump and replace shaders of any OpenGL or Vulkan application
C++
29
star
15

gml

Dynamically typed, higher-order, semi-functional, interpreted and embeddable programming language
C
28
star
16

0xABAD1DEA

Static global objects with constructors and destructors made useful in C++
C++
27
star
17

fibers

The fiber sourcebook
HTML
21
star
18

smbf

Static model binary format
C++
19
star
19

gmrtdxt

Realtime DXT compressor and optimizer
C++
19
star
20

fpot

Fast Point Overlap Test
C
17
star
21

dep_sort

Generic topological sorting for sorting a list of dependencies in C++17
C++
13
star
22

wfstd

Standard library I developed while working for Wayforward
C
11
star
23

vector_benchmark

Benchmarking a trivial replacement for std::vector
C++
11
star
24

alice

A barebones kernel for i386
C
10
star
25

bbgl

OpenGL Rendering as a seperate process (Black Box)
C
10
star
26

redroid

The ultimate IRC bot
C
9
star
27

lua-vec

highly efficent, caching, copy-on-write lua vector math library
Lua
7
star
28

printer-display

Use your printer as a display
C
7
star
29

odin_review

A review of the Odin programming language
HTML
6
star
30

pastes

Just a place where I store my pastes
C
6
star
31

discord-rogue

A tiny rogue like for Discord on nodejs
JavaScript
6
star
32

pds2tc

Public domain S2TC implementation
C
5
star
33

aau

Almost Always Unsigned
HTML
5
star
34

Kaizen

a small, embeddable continous integration framework for small projects
C
4
star
35

libpartial

Partially applied functions for C
C
4
star
36

xcpumemperf

Benchmark to determine cross CPU memory performance for UNIX/POSIX systems
C
3
star
37

zbar-lite

Stripped down light weight version of the zbar library
C
3
star
38

aoc

advent of code 2018 solutions https://adventofcode.com/
C++
3
star
39

glsl-compiler

GLSL compiler targeting a simple SSA IR
3
star
40

smm_video_scraper

Scrape level codes from SMM videos
Python
3
star
41

nra

patch games for nes mini and snes mini to use retroarch cores automatically
C
2
star
42

windows_explicide_runtime_imports

Explicit runtime imports for Windows
C
1
star
43

CV

CV, resume of @graphitemaster
1
star