Skip to content

Commit 1cbfc29

Browse files
committed
add README.md
Signed-off-by: FingerLeader <[email protected]>
1 parent accce7c commit 1cbfc29

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
1-
# memStress
1+
# memStress
2+
3+
This is a tool to simulate memory allocation.
4+
5+
## Usage:
6+
7+
```
8+
>memStress -h
9+
10+
Usage of ./memStress:
11+
-size string
12+
size of memory you want to allocate (default "0KB")
13+
-time string
14+
time to reach the size of memory you allocated (default "0s")
15+
-workers int
16+
number of workers allocating memory (default 1)
17+
```
18+
19+
You can generate a model that simulates a memory usage like `memStress --size 1GiB --time 1m --workers 2`. This command will generate two workers, each of which will allocate 1GiB of memory and the **allocation process** will last 1 minute.
20+
21+
(notice: The allocation process will last 1minute, not the program runs for 1 minute.)
22+
23+
## Build:
24+
25+
`make build`
26+
27+
28+
29+
30+

0 commit comments

Comments
 (0)