https://github.com/spring1843/weight
Adds weight on system resources
https://github.com/spring1843/weight
Last synced: 6 months ago
JSON representation
Adds weight on system resources
- Host: GitHub
- URL: https://github.com/spring1843/weight
- Owner: spring1843
- License: apache-2.0
- Created: 2025-03-02T20:44:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-05T03:57:44.000Z (over 1 year ago)
- Last Synced: 2025-03-05T04:40:40.373Z (over 1 year ago)
- Language: Rust
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# weight
Puts weight on system resources such as memory and soon CPU and disk.
This can be used for testing and troubleshooting purposes. For example it can be used to see if a computer can handle a given amount of memory usage or if a cluster scales up based on CPU usage.
## Usage
You can use the `-h` or `--help` switch to get a list of all available sub-commands and arguments.
Write 1GB of data in memory and wait for 10 seconds before exiting
```shell
weight --memory 1GB --wait 10
```
```
Writing 1GB of memory...
Continuously modifying 1GB = 1073741824B of memory.
Waiting for 10 seconds before exiting.
Exiting after waiting for 10 seconds.
```

## Todo
* Support putting weight on CPU
* Support putting weight on disk