Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kura/memory-eater
https://github.com/kura/memory-eater
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/kura/memory-eater
- Owner: kura
- Created: 2013-10-09T16:09:04.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2021-08-26T12:57:26.000Z (about 3 years ago)
- Last Synced: 2024-04-16T01:28:35.455Z (7 months ago)
- Language: C
- Size: 1000 Bytes
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
===============
Memory consumer
===============*Use this at your own risk, end of.*
This simple PC of C code will consume 10MB of memory each iteration
until there is no more memory to consume.If you want to modify it to use more or less than 10MB, simply
modify the file `src/consumemem.c` and change the *CONSUME*
value from, i.e.:.. code:: c
#define CONSUME 5 * MB /* will only consume 5MB */
Compilation
===========.. code:: bash
gcc -O2 src/consumemem.c -o consumemem
Usage
=====.. code:: bash
./consumemem