-
Notifications
You must be signed in to change notification settings - Fork 7
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
Memory Use Not Reduced As Files Are Removed From Ram Disk #7
Comments
Hi and thank you for finding my project useful! |
Hello. Wow. Thanks for getting back. I sort of figured that it was something like that. Thanks for confirming that I wasn't doing something wrong. This whole refusing to run exe files on IMDisk Ramdisk is a rather annoying wrinkle in Windows 11 24H2. On my 32 GB desktop, I configure the RamDIsk with 20 GB of dynamic memory. I used it mainly for TEMP files (which were never very large) and temporary storage when editing large video files (mostly from my TV tuner/dvr PCIe card). The dynamic memory allocation in IMDisk Ramdisk was perfect for this since I'd get the memory back when I was done with the large temporary files. Oh well. I'm not ready to pay the hefty price for Primo RamDisk yet (I'd need at least the pro version). So, I'm keeping the IMDisk Ramdisk and I've just put the TEMP files back on my Drive C SSD for now. Sooner or later, there will be a free or more economical ramdisk alternative that both has dynamic memory and doesn't offend Microsoft. I almost wonder if Microsoft did this by accident since it doesn't seem to serve any obvious security objective. Maybe this problem will just disappear in one of the upcoming monthly Windows updates. |
Oh, these newer EXE's are annoying not just on Win11 but on Win7, too! |
Great project, looking forward to seeing more progress! @tmcdos
Due to Windows 11 errors and the fact that the ImDisk driver is no longer maintained by the author, the ImDisk Toolkit author w77 has planned to move to Arsenal like you, maybe you can contact him to speed up the development of the project. https://sourceforge.net/p/imdisk-toolkit/discussion/general/thread/041e10fe01/
I made a small fix for the ImDisk error on Windows 11 24H2, but as the ImDisk driver is no longer maintained, it can only be a temporary relief, the real solution is to migrate to Arsenal. |
@oood Thank you! |
Thank you for taking the time to develop this project. I think things are heading in the right direction anyway. Looking forward to seeing the next generation of ImDisk. VxKex project is also an outstanding personal project. I sympathize with the developer's mother's experience. I have also experienced similar things. Thank you! |
@oood you should try out Arsenal Image Mount cli tool, just create a dynamic VHD with Windows 11 native tools, assign it a letter, label and filesystem, you can mount the VHD right there as well to change its content, then you can unmount it and mount it using aim_cli.exe. All that's left to do is to add a command to scheduler to mount it on startup, and you'll get your RAM disk with memory being dynamically allocated/deallocated! |
@oood After looking at the source code of the driver my conclusion is that TRIM-ing is performed only in |
Mark from Arsenal replied to me and forwarded a response from Olof.
Since I am scratching my own itch with this GUI, I have particular goals which do not align well with VHD image:
So apparently the only option for dynamic RAM allocation is
as suggested by @igorbaryshev |
@tmcdos actually, you don't have to update the contents of VHD, mine is only used as a preload template and is not being updated at all. So, you can just mount VHD and preload content from your folder after mounting it, and copy over whatever you need before shutdown, no changes will be written to the VHD. |
@tmcdos here's the VHD I use for my RAMDisk, and, as you can see, it hasn't been touched ever since I first created it. |
@igorbaryshev Got it. Okay, I will add the ability to preload the RAM-disk from a VHD image instead of regular folder. |
@tmcdos also, maybe the neat thing for you would be the fact that you can format the VHD, assign it a label and a letter, save it at that state, keep it and then use that to mount on startup, instead of reassigning the drive letter every time. |
@igorbaryshev Oh, don't get me wrong - I am not against the suggestion of using a VHD image. It just was not a requirement for me when I developed this GUI and since grabbing all the RAM at once is not an headache for me - I am just postponing the moment when I will have enough time to sit down and add the missing feature. Especially when the functionality can be achieved with the AIM CLI :) |
Very interesting project you took on here. I got it working on Windows 11 24H2. And I definitely saw that memory allocated dynamically as I added 15GB of files to the ramdisk. However, I did not see the memory usage (in Task Manager) come back down after I deleted the 15GB of files from the RamDisk. I waited several minutes and the memory usage stayed the same. Not sure if this is the expected behaviour or if freeing the the memory was not something you had time to implement. I didn't see any settings that might be relevant to this.
Anyway, if you ever have time to work on the project again, I will definitely test it out again.
The text was updated successfully, but these errors were encountered: