[GUIDE] Using ImDisk to set up RAM disk(s) in Windows with no limit on disk size

Discussion in 'Operating Systems' started by k1net1cs, Dec 21, 2011.

  1. sykozis

    sykozis Ancient Guru

    Messages:
    22,492
    Likes Received:
    1,537
    GPU:
    Asus RX6700XT
    PAE is not enabled by default. PAE is only enabled if a processor supporting NX (AMD) or DX (Intel) is detected as both require PAE to be enabled to function.
     
  2. gammelhat

    gammelhat Active Member

    Messages:
    96
    Likes Received:
    0
    Microsoft introduced DEP in XP/SP2. It is enabled by default. DEP requires PAE, thus PAE is enabled by default.

    The point is, it is enabled by default, and I don't think you can find a CPU today that doesn't meet the requirements.

    When Microsoft speak of stability problems it is mostly regarding memory above 4G, not PAE-mode.
     
    Last edited: Jan 6, 2012
  3. deltatux

    deltatux Guest

    Messages:
    19,040
    Likes Received:
    13
    GPU:
    GIGABYTE Radeon R9 280
    Absolutely nothing. However, the Page File is actually used for keeping some state information which helps the operating system. It's not only used for "virtual memory". Keeping it on RAM also helps ensure that information is flushed on every reboot which is pretty good seeing how there's almost no way to retrieve the RAM info unless you implement a cold boot attack (which isn't guaranteed to work unless you actually know how to do it).

    This goes the same with web browser caches, it's actually safer to use a RAM drive to store your web browser caches so that any personal data that may end up being cached will reset every time you reboot your system. Again, yes, it's prone to the cold boot attack but the attacker will need physical access to your desktop and be able to do the entire attack fast enough before the RAM loses all of its contents while in the OFF state.

    As for PAE, I wrote extensively about it a few years ago in a small FAQ I created on my website: http://www.kwokinator.com/book/operating-systems-faq/windows

    PAE in Windows desktop is rather broken and is usually used with servers. It's not recommended to use 32-bit Windows if you have more than 4 GB of RAM as PAE only extends the physical address but not the virtual addresses.

    deltatux
     
    Last edited: Jan 7, 2012
  4. Riou

    Riou New Member

    Messages:
    6
    Likes Received:
    0
    GPU:
    MSI HD 6970 2GB CFX

  5. Watcher

    Watcher Ancient Guru

    Messages:
    2,697
    Likes Received:
    371
    GPU:
    Asus Dual RX6700 XT
    We'll I'll be damned. I never knew that the Ram disk actually takes away from the commit memory. I'll have to change my advise. Thank you for the information.

    From Mark Russinovic:

    Following link from article from OP information:

    Pushing the Limits of Windows: Virtual Memory

    You might need to log in with a Windows Live ID to be able to read the article : ex Hotmail, Messenger, Xbox LIVE — and other Microsoft services.

    http://blogs.technet.com/b/markrussinovich/archive/2008/11/17/3155406.aspx

    Here is an article about " The Windows 7 Page file And Running Without One " which I have posted / mentioned before:

    http://www.tweakhound.com/2011/10/10/the-windows-7-pagefile-and-running-without-one/

    Virtual Memory in Windows XP:

    http://aumha.org/win5/a/xpvm.php

    RAM, Virtual Memory, PageFile and all that stuff:

    http://members.shaw.ca/bsanders/WindowsGeneralWeb/RAMVirtualMemoryPageFileEtc.htm

    Lots to read. Good to know.
     
    Last edited: Jan 9, 2012
  6. gammelhat

    gammelhat Active Member

    Messages:
    96
    Likes Received:
    0
    What did you think? :) Everytime you execute something, you take a bite from the commit pool :)
     
  7. Watcher

    Watcher Ancient Guru

    Messages:
    2,697
    Likes Received:
    371
    GPU:
    Asus Dual RX6700 XT
    I never gave it a thought. Any time you start a program you take from the commit pool. I never really thought about the limit it might have.

    Back in the good old days of DOS, Ram Disks were common. Never heard about it being an issue with other limits on memory. Then again, I'm talking about DOS, not a modern OS.
     
  8. The Chubu

    The Chubu Ancient Guru

    Messages:
    2,537
    Likes Received:
    0
    GPU:
    MSi GTX560 TwinFrozrII OC
    From the TweakHound article
    lol, that wasnt necesary at all. He mad.
     
  9. S†v0r

    S†v0r Guest

    Messages:
    1,027
    Likes Received:
    0
    GPU:
    570GTX 1.3Gb @900/2200mhz
    I was thinking about setting it to 1 - 1.5gb, i've read this guide
    http://www.ocztechnologyforum.com/f...ks-Utilities-*&p=442160&viewfull=1#post442160
    and it says this

    Will it dump complete 1.5gb or just used part? btw it would dump it to normal hdd.. so i guess if its whole 1.5gb then ~ 25sec longer?

    I would use it for Firefox cache and maybe temp files, but idk if 1.5gb is enough for temp files?

    Thanks :nerd:
     
  10. The Chubu

    The Chubu Ancient Guru

    Messages:
    2,537
    Likes Received:
    0
    GPU:
    MSi GTX560 TwinFrozrII OC
    Try it, at worst, Windows will tell you that you're out of free space.
     

  11. k1net1cs

    k1net1cs Ancient Guru

    Messages:
    3,783
    Likes Received:
    0
    GPU:
    Radeon HD 5650m (550/800)
    It would dump the exact size of the RAM disk.
    e.g, if you set it to 1GB and only filled it to around 200MB, then it'll dump the entire 1GB, not just the 200MB you used.

    It's enough in most cases.
    But since you use it along with FF cache, then you might want to limit the space that FF cache will use by limiting the maximum cache size.
     
  12. midweskid

    midweskid Guest

    I use 500mb on my system for internet temp files, and system temp files and it works perfectly. I have never used all that space at once.
     
  13. TruMutton_200Hz

    TruMutton_200Hz Guest

    Messages:
    2,760
    Likes Received:
    1
    GPU:
    Iris Xe
    Ahh ye but he has a Ph.D so he's a damn fine philosopher but he knows jack **** about systems engineering.

    Effectively, having no page file at all can give you a minor performance boost but the problem with that is some apps refuse to run without one (regardless of whether you have enough physical RAM).

    So, rather than simply disabling the page file altogether, a nice workaround to this specific problem is to put the page file on a ramdisk and, optionally, to reduce the page file's size to the minimum size allowed by the OS (or set it to the size required by the app) so that it doesn't have to waste more RAM than what's necessary for the workaround to be able to work around.

    However, obviously, if you don't have enough RAM to begin with then the point is still moot (same as when you don't have enough RAM to be able to run without a page file, anyway). A small side bonus IMO is it's quicker to re-enable the page file on a ramdisk than it is to re-enable it on a harddisk, should you encounter an app that requires it.

    http://www.romexsoftware.com/en-us/vsuite-ramdisk/index.html

    :deflate:

    EDIT: And if you just read through that whole OCN thread you linked, you might find a few more good reasons why putting the page file on a ramdisk can, in some peculiar situations, be a great idea after all.
     
    Last edited: Jan 17, 2012
  14. S†v0r

    S†v0r Guest

    Messages:
    1,027
    Likes Received:
    0
    GPU:
    570GTX 1.3Gb @900/2200mhz



    Ok thanks you two for all the info.

    I'll try something later tonight :)
     
  15. Mineria

    Mineria Ancient Guru

    Messages:
    5,540
    Likes Received:
    701
    GPU:
    Asus RTX 3080 Ti
    Which apps?
    Provide some proof before comming which such a claim.
     

  16. Mineria

    Mineria Ancient Guru

    Messages:
    5,540
    Likes Received:
    701
    GPU:
    Asus RTX 3080 Ti
    It will be less than 8GB dependent on the filesystem and allocation uinit size.
    So there is some overhead caused by MFT and cluster size.
    I think it's around 13% for NTFS? 12.5 default MFT and approximate 0.5% for data.
     
    Last edited: Jan 18, 2012
  17. TruMutton_200Hz

    TruMutton_200Hz Guest

    Messages:
    2,760
    Likes Received:
    1
    GPU:
    Iris Xe
    It's in that same OCN thread to which Riou kindly posted the link (the link, which, for your convenience, I had put in my quote). It was also pointed out by a fellow guru3d forum member a while ago but I can't remember the name.

    Anyway, I am by no means claiming it all makes sense. Putting the page file on a ramdisk should not be necessary but, on a rare occasion at least, it very well might be and I hope this shows how trial and error is often still the one best way to finding solutions that work.
     
  18. Mineria

    Mineria Ancient Guru

    Messages:
    5,540
    Likes Received:
    701
    GPU:
    Asus RTX 3080 Ti
    Maybe I'm blind, but I do not see a single claim about any app that requires a paging file to run on a system with plenty of memory.
    Heck, I have not seen any single app that I had to test eating up my memory neither require a paging file, so I would really love to know which app's your on about.

    It is kinda like your claim about Mark.
    He knows a bit more about system engineering than you are aware of, so saying he knows nothing about it is not a fact, stick to facts please. ;)
     
    Last edited: Jan 18, 2012
  19. k1net1cs

    k1net1cs Ancient Guru

    Messages:
    3,783
    Likes Received:
    0
    GPU:
    Radeon HD 5650m (550/800)
    I presume you've never played Dawn of War II or ran any other apps that do check for the existence of a page file, regardless of the currently available memory.
    I'm pretty sure in that "8GB RAM with no PF" thread some people have mentioned that game quite a few times.

    Yes, the check can be disabled with -disablepagefilecheck, but my point is that there are still some apps that can't run properly without a page file when started normally.
     
  20. Pill Monster

    Pill Monster Banned

    Messages:
    25,211
    Likes Received:
    9
    GPU:
    7950 Vapor-X 1100/1500
    However this is not the same as there are some apps that can't run without a pagefile. Period.

    Bottom line is Dawn of War can run without a pagefile...;)
     

Share This Page