Jump to content

ramdrv4m - Universal RAM Drive for Windows 9x


SweetLow

Recommended Posts

ramdrv4m - Universal RAM Drive for Windows 9x

https://github.com/LordOfMice/Tools/blob/master/ramdrv4m.zip

Features description:
1. Memory support above 4GiB (default mode).
Primary purpose of creating this software.
2. A full-fledged 32-bit protected mode driver.
3. High speed of operation.
4. Can utilize RAM Drives created in memory
by other software. In particular, it is compatible with
RAMDSK32/64 from RLoew.
5. It consumes only 4MiB of virtual address space.
In addition to the real memory used for RAM Drive itself, of course.
6. Works on Pentium and higher class processors 
(i.e. it does not work on 80486).

As usual - readme is your best friend...

Link to comment
Share on other sites


A very interesting decision. It seems that this is the first full-fledged PSE ramdisk in history that
installs and works directly under WINDOWS! No more downloading of HIMEMEX (by Rudolph R. Loew). HIMEMEX
itself, by the way, is not full-fledged: the PREALLOCATION function stated in the Readme does not work
in it, as a result of which you have to use them together with BURNMEM (the first, in fact, for the
RamDisk; the second for limiting memory). And, as it turned out during operation, the order in which
they are launched (Together with HIMEM) in CONFIG.SYS is crucial. The most stable sequence turned out to
be HIMEMEX > BURNMEM > HIMEM. This solved most of the problems associated with it. Now, thanks to
RAMDRV4M, in the future it will be possible to completely exclude HIMEMEX from this scheme. But first
you need to make sure that RAMDRV4M works as well, does not cause problems and is compatible with all
the programs you use, and this will take time. Also, knowing a little history of the development of
RAMDSK64 and its performance, depending on the newness of the hardware and, apparently, the BIOS
version, the question also arises of the compatibility of RAMDRV4M with more promising hardware (In
particular, based on LGA1700, in combination with the CREGFIX necessary there to fix VCACHE). It would
be nice if someone (who already uses such hardware) checked this right away. I'm starting testing on
HASWELL. And I’ll check the speed first:

initial results with RAMDSK64:

RAMDSK64.PNG.1d7ba97a96969881ec1b7b1776fd43cd.PNG

result with RAMDRV4M installed on top of RAMDSK64:

RAMDRV4MRAMDSK64.PNG.ef579cf1e597a71efb15a28b128f63c6.PNG

clean result with RAMDRV4M:

RAMDRV4M.PNG.c29e8f09145549f034ff21166e20aeb6.PNG

Amazing! Which, by the way, is quite remarkable, when I deleted the HIMEMEX boot line from CONFIG.SYS,
rebooted and saw the drive letter "G:", instead of "M:", I expected to see it, of course, empty. As
usually happens with RAMDSK64 after a reboot (If you don’t copy anything to it at the DOS stage or
immediately after starting WINDOWS). But when I opened it, I was quite surprised: all the files and
folders that were on the "M:" RamDisk before the reboot remained (On "G:")! Even the folder
"CrystalDiskMark22_9x" was already there! It turns out that this data was stored somewhere during the
reboot? But where? Is it really in RAM? I definitely didn’t have enough free space on the "C:" drive to
store a backup of the appropriate size there.

Simply fantastic. Well, okay, I will now test the pure version (Without RAMDSK64) under real conditions
of use with regular programs. This may take a long time. Thank you.

PS: How can I change the drive letter? I want to change it back to "M:", my software is copied when
loading to "M:" and the shortcuts also lead to "M:" and all sorts of "TEMP", "Temporary Internet Files"
are also registered there. I looked in the Readme and didn't see it. I opened the disk properties -
there is a gray "G:" there. I understand that you need to install LetterAssigner?

PSS: There was also a funny incident. When I installed it (Directly on top of RAMDSK64, without
disconnecting the existing disk) - at first it seemed that the system was frozen (Everything froze and
nothing could be done) and, after waiting a little, I was already reaching for the reboot button, when
suddenly everything came to life and a message appeared on a blue background "Windows The volume that
was removed had open files on it. Next time please check first to see if the volume can really be
removed. Press any key to continue." Nevertheless, even in this situation, everything went well and the
system continued to work normally after that, and the installed RAMDRV4M appeared in the device manager.

Edited by defuser
Link to comment
Share on other sites

Impressive benchmarks, very interesting, I haven't dealt with RamDisk or RamDriver so far and unfortunately I don't have a suitable test system yet. My systems have 2 or 4 GB Ram (RLoews Ram Patches), but not more. If I buy two 4 GB bars or four 2 GB bars, I could expand the memory to 8 GB on two boards. Does it affect dual channel operation, especially with only two 4 GB bars?

Link to comment
Share on other sites

Posted (edited)
On 4/13/2024 at 7:59 AM, defuser said:

How can I change the drive letter?

As with any PM only drive - in Device Manager made it Removable, set letter, made it non Removable. And as drive can stopped and started in Device Manager - no reboot needed (if no swap file on this drive, of course).

>It seems that this is the first full-fledged PSE ramdisk in history that
installs and works directly under WINDOWS!

The first PSE drive for Windows was made by Intel for Windows NT 4.0 ~ 25 years ago :)

>It would be nice if someone (who already uses such hardware) checked this right away.

You have to know already that I'am running one of my Windows 98 SE on Core i7 10700...

>the question also arises of the compatibility of RAMDRV4M with more promising hardware

There is no problem for compatibility for pure protected mode software. The problem of RLoew's solution is transition from real mode code that drives something to protected mode code that access memory and back.

>and a message appeared on a blue background "Windows The volume that
was removed had open files on it. Next time please check first to see if the volume can really be
removed. Press any key to continue."

Read readme...

> Is it really in RAM?

Read readme...

Edited by SweetLow
Link to comment
Share on other sites

Posted (edited)
On 4/13/2024 at 7:59 AM, defuser said:

the PREALLOCATION function stated in the Readme does not work in it

There is minor error in himemex, i described it on ru-board. I recommend you read there too.

Edited by SweetLow
Link to comment
Share on other sites

Quote from Readme:

Quote

"UseGoodDriveAfterReboot"=hex:00
use of the drive after a "hot" reboot. It is disabled by default.
It is not safe to turn it on even for drivers with memory higher than 4GiB - on modern 
BIOSes, the drive header at the beginning of the 4GiB+ address space may be preserved,
but the memory is changed somewhere in the middle of the address space.
(It's not clear why, but that's the way it is). So it is necessary to first proof
(copy something on the drive to the whole drive size, reboot and then compare
it with the original data). To give you an example: on my laptop rebooting works
neatly, but on the new working machine - not anymore, memory changes around
5 gigabyte.

I checked and noticed the following. The contents of the RamDisk are preserved even after rebooting to XP and back. But if the PC is turned off (Even for a short time), the information is permanently deleted. That is, within the framework of a working session, you can safely make reboots, including rebooting in XP and returning back, and the information on the RamDisk remains. However, this does not work if RAMDRV4M is used on top of RAMDSK64 (which may be necessary if you need to copy something to RamDisk already at the DOS stage). It only works when using the pure RAMDRV4M variant. But it still works well. My checks showed complete data safety (based on the results of checking checksums) even after returning from WinXP. In XP itself, of course, PAE\PSE is disabled (Not used).

Link to comment
Share on other sites

@SweetLow Excellent work!

I've been intending to write something like this, myself. I may still take a whack at it, for the educational result of the challenge. But, who knows how long it would have taken me to start? I'm spread too thin, lately.

Looking forward to taking your work for a test drive. You've done some neat things. But this one is an attention grabber. Would have tried it sooner, but my main browser is terrible, on github. Seems that a lot of the things you work on, have been things I've see people discus a desire for (at the usual Win9x places).

Link to comment
Share on other sites

38 minutes ago, awkduck said:

But this one is an attention grabber.

Attention grabber? :rolleyes: My friend, if you want to see what is attention grabber look at hidusbf...

 

42 minutes ago, awkduck said:

a lot of the things you work on

Yes, subject is not the last thing in my TODO list.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...