https://github.com/kijewski/mlockdir
Lock directories in memory.
https://github.com/kijewski/mlockdir
Last synced: about 1 year ago
JSON representation
Lock directories in memory.
- Host: GitHub
- URL: https://github.com/kijewski/mlockdir
- Owner: Kijewski
- License: apache-2.0
- Created: 2024-02-28T11:28:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-09T22:27:57.000Z (about 2 years ago)
- Last Synced: 2025-01-24T17:34:39.162Z (over 1 year ago)
- Language: Rust
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# mlockdir
Lock a directory / directories in memory.
```sh
$ mlockdir
Enumerating files in 1 folder(s) ... 30.98µs
Allocating empty memory map with 24 KiB ... 6.77µs
Mapping 4 files with 24 KiB in memory ... 48.92µs
Locking 4 files with 24 KiB in memory ... 25.97µs
Files locked ... Press any key to terminate.
Releasing memory ... 25.08µs
```
If no argument is given, then the current working directory is locked.
Otherwise you can specify multiple directories as arguments.