Skip to content

Simple C program to allocate memory from the command line. Useful to test programs or systems under high memory usage conditions

License

Notifications You must be signed in to change notification settings

rnalrd/eatmemory

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#eatmemory

##1. Introduction Simple utility to allocate memory on a computer

##2. What can I use this for?

  • Test swap
  • Test behaviors on a machine when there is little memory available

##3. Usage

###Installation

cd /tmp
git clone https://github.com/julman99/eatmemory.git
cd eatmemory
sudo make install

###Running

eatmemory <size>

Size is in number of bytes, megabytes or gigabytes.

###Examples

eatmemory 1024
eatmemory 10M
eatmemory 4G

About

Simple C program to allocate memory from the command line. Useful to test programs or systems under high memory usage conditions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 95.2%
  • Makefile 4.8%