Files

9 lines
608 B
Markdown
Raw Permalink Normal View History

2025-08-10 13:29:04 +01:00
# runram
2025-08-10 22:12:21 +01:00
A bash script which creates a RAMdisk, copies the contents of the current directory to it, and runs a command of your choice in that RAMdisk copy of the data. Once the command is complete, the RAMdisk contents are synced back to the original directory.
2025-08-10 22:11:30 +01:00
This allows commands to be performed on a directory at the lowest possible latency regardless of the locations of the files, at the expense of start/end time to swop the entire contents or the file system into memory, and the associated RAM requirement to store the files.
Usage: runram <ramdisk_size> <program_path>
2025-08-10 22:12:21 +01:00
2025-08-10 22:11:30 +01:00
Example: runram 1G dosbox