Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rajiska/memstresstest
A simple docker image to test OOM scenarios in a docker environment
https://github.com/rajiska/memstresstest
Last synced: 10 days ago
JSON representation
A simple docker image to test OOM scenarios in a docker environment
- Host: GitHub
- URL: https://github.com/rajiska/memstresstest
- Owner: RaJiska
- Created: 2024-04-08T15:50:53.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-09T09:50:52.000Z (7 months ago)
- Last Synced: 2024-10-13T02:09:35.812Z (25 days ago)
- Language: C
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Memstresstest
This program allocates memory according to specified configurations. Just wanted to have a docker image ready to simulate various scenarios of OOM in clusters and docker environments.
## Usage
### Environment Variables
| Variable | Description | Default Value |
|--------------------|---------------------------------------------------|---------------|
| `ALLOC_CHUNKS_SZ` | Size of each memory chunk in bytes | - |
| `ALLOC_CHUNKS_NB` | Number of memory chunks to allocate | 1 |
| `ALLOC_DELAY` | Delay in milliseconds between each allocation | 0 |
| `ALLOC_FINAL_DELAY`| Final delay in milliseconds after allocations | 0 |## Configuration Details
- `ALLOC_CHUNKS_SZ`: Must be set to a positive number.
- `ALLOC_CHUNKS_NB`: If set, must be a positive number.
- `ALLOC_DELAY`: If set, must be a non-zero positive number.
- `ALLOC_FINAL_DELAY`: If set, must be a non-zero positive number.