How would you create a ramdisk on boot ?
#1
Posted 14 January 2009 - 05:19 PM
How does ImDisk compare to Gavotte's RamDisk.
How would you go about creating a RamDisk upon bootup ?
And how would you go about tempory directories in this ramdisk on boot up ? Such as Temp directories ?
#2
Posted 14 January 2009 - 05:55 PM
#3
Posted 14 January 2009 - 06:37 PM
But more importantly, windows will not put a pagefile on a removeable drive, so this can't be done with imdisk at the moment.
(Best not to double post, else you risk the wrath of jaclaz )
#4
Posted 14 January 2009 - 07:04 PM
It is stupid to use a RAMdisk for the pagefile. The pagefile is meant to be used for PCs that don't have enough RAM.
Well, this is not entirely true, even if it has been better handled with recent features like AWE with > 2GB RAM etc.
The problem is that Windows is from ground up designed to use a pagefile.
Some of the drawbacks of running without a pagefile are discussed in some forums:
http://www.ghostreco...showtopic=29731
http://www.themssfor...indows-running/ (not accessible right now, it seems...)
http://www.techrepli...agefile-340085/
Regards,
#5
Posted 14 January 2009 - 07:12 PM
http://www.techrepli...agefile-340085/If the PCI card is available at boot and your ram disk driver is loaded at
boot and the OS is configured to use your ram disk as the paging file home,
then things are set up so that it might work for you.
Your Ram Disk driver would need to be a boot start driver and provide the
ram disk at the time that the OS looks for a memory dump signature in the
paging file. Obviously, your PCI card would need to be up and running at
this time too.
--------
Temporary folders can be set at the registry level, I'm not completely sure as I haven't verified (please someone correct me if this is wrong) but I'd check on the registry hives that are available at each user profile's folder that are loaded when the user logs onto the system.
#6
Posted 14 January 2009 - 07:48 PM
start imdisk via txtsetup.sif with mounted compressed IMA file
(no need to format the disk)
@Olof
Is it right?
Is it possible to use this drive for pagefile?
could it be a nice idea to use an ini file to format the disk?
something like this:
(\Services\ImDisk\Parameters","FileName0","\SystemRoot\hddinfo.ini")
hddinfo.ini:
[0] <--- disk offset
33C08ED0BC007CFB50.... <--- disk data
[40] <--- disk offset
F0AC3C0074FCBB0700.... <--- disk data
[80]
BC813EFE7D55AA740B....
the size of hddinfo.ini file (for a blank ntfs formatted disk) is only 6KB.
Thank you
Peter
#7
Posted 14 January 2009 - 08:10 PM
I have tried to use ImDisk drive to locate a pagefile in the past without success. ImDisk disks aren't listed under 'System\MountedDevices' and so the pagefile is not created.It is possible to use this drive for pagefile?
Regards,
Galapo.
#8
Posted 14 January 2009 - 08:17 PM
Already happened :(Best not to double post, else you risk the wrath of jaclaz )
http://www.boot-land...?...ic=6748&hl=
@ALL
IF, as it is probable, the drive/partition with the pagefile is "identified" by windows by using it's MBR signature, there is NO way in the world that IMDISK can work as it only works as filesystem driver.
Best bet for using as pagefile - of limited dimension - but although some parts of Windows do "require" a pagefile, it WON'T be used if enough RAM is available, is the Perisoft demo driver miniram :
http://www.perisoft....iport/index.htm
(page is down right now)
I think - but it has to be verified - that Gavotte's RRamdisk, being a direct evolution of MS own Ramdisk is as well limited to "partitions" as opposed to "Physicaldrive" type.
jaclaz
#9
Posted 14 January 2009 - 08:33 PM
I have tried to use ImDisk drive to locate a pagefile in the past without success. ImDisk disks aren't listed under 'System\MountedDevices' and so the pagefile is not created.
I have tested to put pagefile on ImDisk drives in the past and it seem to work for what I have tested at least. The problem is that the ImDisk drive is not created early enough in the boot process to use the normal settings for pagefile. When Session Manager reads the registry settings about pagefiles the ImDisk ramdisk does not exist yet...
However, the good news is that pagefiles can be added in Windows at any time and there is easy-to-use API available for it. Therefore I created a tool called swapadd that adds pagefiles immediately. That tool could be used in this case for example.
http://www.ltr-data....les/swapadd.zip
Type swapadd /? for syntax help.
#10
Posted 14 January 2009 - 08:37 PM
However, the good news is that pagefiles can be added in Windows at any time and there is easy-to-use API available for it.
....
VERY good news!
jaclaz
#11
Posted 15 January 2009 - 12:00 AM
However, the good news is that pagefiles can be added in Windows at any time and there is easy-to-use API available for it...
Very Very Very good news I will try it tomorrow,
Also i have a question, For a while ago in a turkish forum i read that (also asked personally to get confirmation for details) Super Disk Ramdisk Plus is used on xp32bit to use unused ram as page file.
A text from Super Disk Ramdisk website:
RamDisk Plus 9 has a most unique feature. Our patent pending technology can access memory beyond the limitation imposed by a Windows 32-bit operating system! In other words, RamDisk Plus 9 can use "unmanaged" Windows' memory e.g. above 4GB. It can also use the stubbornly inaccessable memory between 3.2GB and 4GB.
What was written on turkish topic is this (simply translating):
On a hardware with 4GB ram, XP 32 is installed.
XP 32 bit use 3070mb ram as os defined,
For Remaining 1026mb a ramdisk created with "Super Disk Ramdisk", and a pagefile created with size 1007mb in this ramdisk.
Can it be done with imdisk ?!
ps: I love imdisk, this is a question only for curiosity (I dont know if it effects (or how much effects) the overall performance of windows), I have 2GB ram and using 2k3x64 resulting that i can not test the info i wrote .
Edit: Adding made
#12
Posted 15 January 2009 - 12:40 AM
Thanks, Olof.I have tested to put pagefile on ImDisk drives in the past and it seem to work for what I have tested at least. The problem is that the ImDisk drive is not created early enough in the boot process to use the normal settings for pagefile. When Session Manager reads the registry settings about pagefiles the ImDisk ramdisk does not exist yet...
However, the good news is that pagefiles can be added in Windows at any time and there is easy-to-use API available for it. Therefore I created a tool called swapadd that adds pagefiles immediately. That tool could be used in this case for example.
http://www.ltr-data....les/swapadd.zip
Type swapadd /? for syntax help.
For whatever reason, I still am unable to create a pagefile on the ImDisk ramdisk in LiveXP.
E:\>swapadd b:\pagefile.sys 8M 64M
Page file creation failed: The specified request is not a valid operation for
the target device.
E:\>
Regards,
Galapo.
#13
Posted 15 January 2009 - 01:26 PM
I get "OK." on a physical HD, but not the ramdisk.
#14
Posted 16 January 2009 - 07:23 AM
I see the same problem here now...I get the same error in bartpe/xpe with imdisk 1.0.3.10
I get "OK." on a physical HD, but not the ramdisk.
I wonder what broke it, really. It has been a long time since I tested this successfully so lots of changes has been made to ImDisk since that time. A wild guess is that it might have something to do with the hotplug/removable information returned by recent ImDisk versions. The same error is returned for any disk where caching is disabled because of hotplug settings etc. But I need to investigate this further...
#15
Posted 18 January 2009 - 11:28 AM
What was written on turkish topic is this (simply translating):
On a hardware with 4GB ram, XP 32 is installed.
XP 32 bit use 3070mb ram as os defined,
For Remaining 1026mb a ramdisk created with "Super Disk Ramdisk", and a pagefile created with size 1007mb in this ramdisk.
Can it be done with imdisk ?!
As ImDisk works right now it cannot use such memory. But I have thought about adding support for it because it would be useful on many modern machines. I have looked at the API for it and it seem pretty straight-forward (even though there are very few examples out there for how to use it form kernel mode).
#16
Posted 18 January 2009 - 03:06 PM
Thank you for response,
I will be glad to tell x86 users to have the ability to use unused ram with imdisk when implemented,
Maybe 2k3x86 users can use more ram with this method , As far as i know xp have a 4gb max limit but 2k3x86 have higher limit, maybe with a 8gb ram computer, an 2k3x86 user may use remaining 5gb with ramdisk
But as pointed out by Galapo, For me creating a pagefile on the ImDisk ramdisk in LiveXP is much more important which i wait for a while
#17
Posted 18 January 2009 - 05:53 PM
You will still need any of the more expensive versions of Windows Server 2003/2008 however. Standard Editions have the same 4GB limit as XP/Vista. http://msdn.microsof...y/aa366778.aspxMaybe 2k3x86 users can use more ram with this method , As far as i know xp have a 4gb max limit but 2k3x86 have higher limit, maybe with a 8gb ram computer, an 2k3x86 user may use remaining 5gb with ramdisk
I will take a look at why it does not work as soon as possible!But as pointed out by Galapo, For me creating a pagefile on the ImDisk ramdisk in LiveXP is much more important which i wait for a while
#18
Posted 18 January 2009 - 08:00 PM
Latest news: I see now that it works under Windows NT 3.51/4.0 and Windows 2000, but not XP, Vista or Windows 7... So, there must be something that disk drivers for disks with pagefiles must support on newer Windows versions that was not needed on older...(...) I need to investigate this further...
#19
Posted 18 January 2009 - 08:09 PM
Latest news: I see now that it works under Windows NT 3.51/4.0 and Windows 2000, but not XP, Vista or Windows 7... So, there must be something that disk drivers for disks with pagefiles must support on newer Windows versions that was not needed on older...
Whch is exactly what the good MS guys would call "improvement" in the advertisements and "by design" in kb's....
jaclaz
#20
Posted 26 January 2009 - 11:37 PM
I have to use ImDisk "regually" as temp ramdisk. I like it.
So, I have two small batch file created:
load_image.cmd
imdisk -a -t vm -f c:\ramdisk.img -m r:save_image.cmd
rawcopy -lm \\.\r: C:\ramdisk.img imdisk -d -m r:I have this script into the system policy integrated (with gpedit.msc) as "logon" and "logout" script.
I have trouble with the size ...
If the ramdisk 50MB or 100MB large, then is allways ok. But if I make a 500MB ramdisk then I get a problem at loading.
The XP freezes.
Are the parameters OK?
#21
Posted 26 January 2009 - 11:44 PM
Hi!
I have to use ImDisk "regually" as temp ramdisk. I like it.
So, I have two small batch file created:
load_image.cmdimdisk -a -t vm -f c:\ramdisk.img -m r:save_image.cmdrawcopy -lm \\.\r: C:\ramdisk.img imdisk -d -m r:I have this script into the system policy integrated (with gpedit.msc) as "logon" and "logout" script.
I have trouble with the size ...
If the ramdisk 50MB or 100MB large, then is allways ok. But if I make a 500MB ramdisk then I get a problem at loading.
The XP freezes.
Are the parameters OK?
Mammuth
i love imdisk!
don't load 500 MB into memory!!
use:
imdisk -a -t file -f c:\ramdisk.img -m r:
Peter
#22
Posted 27 January 2009 - 07:37 AM
I will "speed up" my system, and I have 4GB ramdon't load 500 MB into memory!!
Is there a size limit for Ramdisk?
#23
Posted 27 January 2009 - 08:18 AM
No, not a size limit but 500 MB will take a long time to load into memory from disk and that is why you feel that XP hangs when you try it. It is actually loading the image file into memory, not hanged...I will "speed up" my system, and I have 4GB ram
Is there a size limit for Ramdisk?
Also, to save such an image to disk again later will also be time consuming.
What do you use this RAM disk for? If it is mostly temporary storage that do not really need to be saved you could create a RAM disk from a small image file and later extend the size of the RAM disk.
#24
Posted 27 January 2009 - 10:59 AM
Mammuth,I will "speed up" my system, and I have 4GB ram
Is there a size limit for Ramdisk?
maybe using sparse files can reduce I/O overhead:
download attached utility
create ramdisk.img (use NTFS volume for ramdisk.img):
ApiRegUtil.exe makehdd 20000200 "PathToHddInfo\hddinfo.txt" "PathToImageFile\ramdisk.img" sparsefile (creates 512MB blank HDD image)
mount image:
imdisk -a -t vm -f "PathToImageFile\ramdisk.img" -s 536739840 -b 32256 -o hd,rem -m r:
Peter
Attached Files
#25
Posted 27 January 2009 - 06:33 PM
I don't think so. During the loading process, freezes the XP.No, not a size limit but 500 MB will take a long time to load into memory from disk and that is why you feel that XP hangs when you try it. It is actually loading the image file into memory, not hanged...
To load 200MB takes 7sec. If I will load 210MB it takes to long. I switch off my computer after 2 Minutes.
So I belive 200MB is the max for my system. (I have 4GB RAM)
Actually, I try to load the XP to a RAMDISK.What do you use this RAM disk for? If it is mostly temporary storage that do not really need to be saved you could create a RAM disk from a small image file and later extend the size of the RAM disk.
I try to get a "cheaper" HyperOS Ramdrive. But it is not possible (only with DisklessAngel).
So, I plan to install all of my program into a ramdisk. Such a "semi solution"
It will be nice to install the XP into a RAMDISK, but I don't belive that is possible. Or load a disk image (hdd Image) to RAMDISK at boot time, and start the system from there.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users