# mlockexec **Repository Path**: mirrors_spotify/mlockexec ## Basic Information - **Project Name**: mlockexec - **Description**: tool that keeps locked files into memory while running another process - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-05-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mlockexec mlockexec is a very simple commandline tool for keeping files locked into memory while running another process. This is useful if the process you want to run depends on fast file access. ## Example usage: Usage: mlockexec [options] Options: -h, --help show this help message and exit -m MEMORY, --max-memory=MEMORY maximum amount of memory to lock. -g GLOB, --glob=GLOB glob expression for files to lock -v, --verbose Print verbose information mlockexec -m 1G -g large_file -- myprogram args This will lock `large_file` into memory before executing `myprogram args`. The file will be locked until `myprogram` exits. The parameter `--glob` can be specified multiple times, and you can point to specific fields or glob patterns. If the total filesize of the files matching glob pattern exceeds the mandatory `--max-memory` option, mlockexec will fail to run.