Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ramfs support #9

Open
123aezakmi123 opened this issue Oct 11, 2023 · 1 comment
Open

Add ramfs support #9

123aezakmi123 opened this issue Oct 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@123aezakmi123
Copy link

I would like to use ramfs instead of tmpfs since ramfs can't swap. So I created a mount point in /etc/fstab
ramfs /mnt/transcodes ramfs nofail,mode=0777 0 0
In transcode.cleanup.sh I changed this line with the size in bit DIR_SIZE=1073741824 (1GB for me) so in this way I can limit ramfs which has no size limit.

Obviously bufmon.sh doesn't work because df $TRANSCODES_DIR -ha doesn't work with this type of filesystem but by checking manually, the limit was never exceeded. I also tried with 100/256/512MB limit.

Could it be officially supported?

@RTUnit
Copy link
Owner

RTUnit commented Oct 11, 2023

Interesting, I did not know that tmpfs can use disk space instead of actual RAM. Thanks for bringing this up. Will not be able to test ramfs so soon (in a few weeks at least). But if you can make it work sooner them please report it here.

@RTUnit RTUnit added the enhancement New feature or request label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants