tmcdos / ramdisk

Replacement (GUI + windows service) for ImDisk Toolkit - by using Arsenal Image Mounter as a driver for RAM-disks.
MIT License
39 stars 7 forks source link

Release memory when space is freed from Ramdisk #4

Closed Lord-Malgus closed 4 months ago

Lord-Malgus commented 4 months ago

Thank you for this tool. It works great.

Is there anyway to free the memory allocated to the Ramdisk as data is deleted from it? The driver/system seems to hold on to the memory once allocated never releasing it.

tmcdos commented 4 months ago

This is handled by the driver while my tool is just a nice GUI to configure it. I don't think it ever releases the memory but I am not good enough with C++ and could be wrong. Here is the source code - if you can find how to ask the driver to release the memory, I can then find a way to add this feature to the GUI. But I am not very optimistic. And in my case I am totally okay to have 8-10 GB of RAMdisk out of 32 GB total :) I believe ImDisk was able to reserve memory on demand and then release it - but it has the issues which led to the birth of this GUI :)) Arsenal-Image-Mounter (src).zip

Lord-Malgus commented 4 months ago

Thank you for the quick response. ImDisk supported this feature with its 'dynamic allocation' option. Perhaps that is just no longer available. I will take a look at the arsenal source. Much obliged.