Created
May 24, 2024 04:45
-
-
Save tomdavidson/b242f3a17d436f7f425c6b5f3b25d680 to your computer and use it in GitHub Desktop.
idea to use ramdisk for workspace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create ram disk | |
sudo mount -t tmpfs -o size=8G tmpfs /mnt/ramdisk | |
# initial sync without --delete | |
rsync -avP /path/to/your/workspace/ /mnt/ramdisk | |
# keep in sync with 5 sec delay to min overehad | |
chokidar "**/*" --delay 5000 \ | |
--command "rsync -avP --delete /path/to/your/workspace/ /mnt/ramdisk" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment