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
Is possible enable write defer-write ? #50
Comments
@Augusto7743 A deferred write would essentially be a write-back caching policy which rapiddisk is not designed to do at the moment, for a couple of reasons. The most important being that when write data is being cached to RAM, we cannot guarantee data integrity of the backing store in the event of a failure (i.e. power or other hardware). Also, as it relates to btrfs, if btrfs is being used on more than a single volume, relying on solutions such as rapiddisk, dm-cache or bcache becomes very problematic, which is described in a tiny bit of detail here: https://btrfs.wiki.kernel.org/index.php/Project_ideas#dm_cache_or_bcache_like_cache_e.g._on_a_SSD It would be nice though, if btrfs were to introduce an intent log (to an SSD) or some sort of ARC in RAM. |
Thanks for reply. Seeing in I am new Linux user and wait not return to windows. I not understand exactly if the configuration value above is about exactly the feature that I wait use in write-back caching. Rapiddisk have any command option to help to avoid repeated write in disk ? If yes what is the command ? Thanks and have an nice week. |
Sadly, today, Rapiddisk does not have such a command option. I am not sure if it will in the near future either. The implementation would be quite complicated. I would recommend that you look at dm-writecache (https://www.admin-magazine.com/HPC/Articles/Linux-Writecache) and possibly dm-cache. There may be some parameters or tunables in its module that will help you achieve what you are trying to achieve to delay flushing writes. You also highlighting the commit interval for btrfs. Nearly all file systems have this mount option. You can test this one out as well. |
It seems like dm-writecache does offer something similar with the
Closing since it will likely not be implemented in RapidDisk and function already exists in an upstream kernel module. |
Note that a similar feature will be implemented as part of the #23 work. |
Hello rapiddisk creator.
I wait to use your software to write cache using an time latency in system and user data partitions formated with BTRFS.
Is possible enable write defer-write ? If yes possible what command to enable an write cache with defer-write latency time ?
Thanks for read.
The text was updated successfully, but these errors were encountered: