SoftPerfect Support Forum
All Forums
► RAM Disk & RAM File System
► Current topic
RFS image file grows too large
|
docsoc
RFS image file grows too large 05 August 2026, 16:26 |
|
|
Re: RFS image file grows too large 05 August 2026, 17:32 |
Admin Registered: 20 years ago Posts: 2 060 |
That was one of the edge cases we unfortunately missed in the initial releases. When there are a large number of very small files, a RAM FS image could become unnecessarily large because each file, no matter how small, occupied a 2 MB block in the image.
We have already discovered and fixed that issue, and a new version will be available in a few days. It will also include a new feature that lets you use a folder instead of an image file. In other words, a RAM FS volume can be populated from a folder at startup and synchronised back on shutdown. This uses a delta-sync mechanism, so only files that have changed, and only the modified portions of those files, are written back to the source folder, thus making it fast and gentle on the SSD.
We have already discovered and fixed that issue, and a new version will be available in a few days. It will also include a new feature that lets you use a folder instead of an image file. In other words, a RAM FS volume can be populated from a folder at startup and synchronised back on shutdown. This uses a delta-sync mechanism, so only files that have changed, and only the modified portions of those files, are written back to the source folder, thus making it fast and gentle on the SSD.
|
docsoc
Re: RFS image file grows too large 05 August 2026, 20:42 |
I still prefer the an image file though, as I've been using it for years in the RAM Disk software. I backup the image file regularly because sometimes some glitches make the image unable to be read by the software, especially when the PC's power supply is accidentally shut down. It's just that the .rfs file now grew to more than 34Gb and the time it takes to back it up to another disk takes too long as it is being copied as a real 34GB file.
|
|
Re: RFS image file grows too large 05 August 2026, 21:23 |
Admin Registered: 20 years ago Posts: 2 060 |
Yes, the excessive image size has been fixed in the upcoming version. Small files are now packed together instead of each occupying a separate 2 MB block. This keeps the image much closer to the amount of data actually stored.
The old image is a sparse file, but some backup programs expand its empty areas while copying it. This explains why the backup becomes a real 34 GB file and takes so long.
After updating, the quickest way to compact an existing image is to save the mounted volume to a new .rfs file. Once you have verified the new image, the old oversized one can be removed.
RFS images are also crash-safe by design. During a save, the previous complete snapshot remains intact while the new one is written. RFS switches to the new snapshot only after it has been fully written to disk. If power is lost midway, it loads the previous complete snapshot instead of a half-written one.
Note: Changes made since the last completed save can still be lost, for example if you lose your power supply, so backups remain advisable.
The old image is a sparse file, but some backup programs expand its empty areas while copying it. This explains why the backup becomes a real 34 GB file and takes so long.
After updating, the quickest way to compact an existing image is to save the mounted volume to a new .rfs file. Once you have verified the new image, the old oversized one can be removed.
RFS images are also crash-safe by design. During a save, the previous complete snapshot remains intact while the new one is written. RFS switches to the new snapshot only after it has been fully written to disk. If power is lost midway, it loads the previous complete snapshot instead of a half-written one.
Note: Changes made since the last completed save can still be lost, for example if you lose your power supply, so backups remain advisable.