https://github.com/johnramsden/invokegc
https://github.com/johnramsden/invokegc
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/johnramsden/invokegc
- Owner: johnramsden
- License: mit
- Created: 2024-09-26T02:22:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-26T02:39:24.000Z (almost 2 years ago)
- Last Synced: 2025-06-21T05:43:33.027Z (about 1 year ago)
- Language: C
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Invoke GC
Initiate garbage collection on SSD.
```
Usage: ./invokegc
-d
-w
-r
-s
[-D use O_DIRECT|O_SYNC]
[-o (read only)]
[-l (load)]
```
### Examples
Load RAW disk `/dev/nvme1n1` with 32 write threads:
```shell
./invokegc -d /dev/nvme1n1 -w 32 -r 0 -s 894 -l
```
Run R/W with 32 R/W threads each:
```shell
./invokegc -d /dev/nvme1n1 -w 32 -r 0 -s 894
```
Run R/W with 32 R/W threads each using O_DIRECT|O_SYNC:
```shell
./invokegc -d /dev/nvme1n1 -w 32 -r 32 -s 894 -D
```
Run R/O with 32 R threads:
```shell
./invokegc -d /dev/nvme1n1 -w 0 -r 32 -s 894 -o
```