Jump to content
xisto Community
Sign in to follow this  
Ain

4gb In Xp 32bits Using the wasted RAM

Recommended Posts

32bits Operational System address a maximum of 4GB of RAM. But... There's a problem. Any 32 bit OS can only address 4 GB of total memory, and so when booting into the OS, it first addresses I/O devices with their own onboard memory like VGAs and things like that first. If you have a 512mb VGA, it will be less 512mb of avaliable RAM. So, what can be done to avoid this waste of RAM?

 

It's simple. Use a RAM disk. What is that?

A RAM disk works like a new partition, but this partition isn't created in your Hard Disk... it's created in your RAM. We can say that RAM memory is a really fast HD used to archive temporary data used by running programs. So, it's possible to create a partition using that.

 

Enough of explanation, let's go to the Tutorial.

 

Step 1

First of all, you're going to need to do some calculations. For example, if I have: 6GB of total RAM and 1GB VGA my system will adress only 4GB. So, it wastes 2GB of unseen RAM plus 1GB of RAM due VGA's RAM, giving total of 3GB of unseen RAM. (Remeber, 32bts OS address 4GB of total RAM).

If you have 4GB it's easier, yours VGA RAM will be the amount of wasted RAM.

 

Now you know your wasted RAM, we're going to the next step.

 

Step 2

You need to download Gavotte's RAMdisk. There's many options, but usually they are paid options, or they aren't able to make use of the unadress RAM. It's not the case of Gavotte's Ramdisk, it's a freeware that can use that unseen RAM.

http://www.crocko.com/1907118935/Gavot5_200811130.zip

 

Step 3

Unzip the folder and double-click "ram4g.reg" file. You need this Registry before doing anything else.

 

Step 4

Go to C:\ and open your boot.ini with Notepad. Here you're going to see something like that:

[operating systems]			   multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

Add /pae ate the end of the line:

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect /pae

If you aren't seeing any file with this name, select the Tools menu and click Folder Options. After the new window appears select the View tab. Here you need to put a checkmark in the checkbox labeled Display the contents of system folders. Under the Hidden files and folders section select the radio button labeled Show hidden files and folders. Remove the checkmark from the checkboxs labeled Hide file extensions for known file types and Hide protected operating system files.

Now, press the Apply button and then the OK button.

 

Step 5

Reboot your system. Now, at your System Properties you can see "Physical Address Extension" under system's specs. You can run now "ramdisk.exe" inside the RAMdisk folder.

 

Now Install your RAMdisk... Check "Fixed Media" and type your wasted RAM, apply and check ok.

Posted Image

 

Reboot again. If you enabled your PAE before install RAMdisk and set the right amount of RAM, it will appear as RamDisk-PAE (R:). If not, redo the steps from 3 and try to adress less memory on the RAMdisk's installation.

 

Step 6

You can ask me "Ok, I've done every thing. Now, what can I do with this thing?!". Simple. You can use it to your browser cache for example, or do what I do... use it for my system's virtual memory.

 

To do that open My Computer, right click and select System Properties, go to Advanced tab, under Performance click on Settings button. Here click on Advanced again, and go to Virtual Memory. Here select your RAMdisk, write the amount and click in "set".

 

Enjoy.

 

But Attention! Any data stored on RAMdisk disappears upon restart. It's not a good idea try to use it like a normal partition...

And it isn't a good idea to do that on 64bits OS. There aren't any proofed benefits.

 

More about the subject:

https://en.wikipedia.org/wiki/Memory_address

https://en.wikipedia.org/wiki/Physical_Address_Extension

Share this post


Link to post
Share on other sites

Excellent tutorial!Very nice way to recover what you've been missing. A friend of mine did something similar to unused A drive or the floppy drive by using it as browser's cache directory and use it as Page File (PF) for virtual memory as well.But this integration is by far robust usage of all.

Share this post


Link to post
Share on other sites

Hmmm..I dunno because PC's have been limited to only 3.5GB of RAM regardless of how much you put into it, which the max is 8GB if you put 2GB sticks in each slot. Like Spider mention this is just like the Vista ReadyBoost but I don't see how you can hit the 4GB limit and even then virtual memory still needs to run off your actual memory and so more information is needed then a 6 step tutorial and some wikipedia articles.com

Share this post


Link to post
Share on other sites

Actually, the limit is 4GB. Windows hides 0.5gb, because this RAM is essential for the operational system tasks, and hides something else depending on how much RAM your VGA has, also how much of your RAM exceeds the 4GB limit.

 

Only 32bits OS have 4GB limits, it's happens due 32bits architecture. That's why people using 64bits Vista doesn't have this problem.

 

Wikipedia quotes:

(...) For instance, a computer said to be "32-bit" also usually allows 32-bit memory addresses; a byte-addressable 32-bit computer can address 232 = 4,294,967,296 bytes of memory, or 4 gibibytes (GiB). This seems logical and useful, as it allows one word to be efficiently stored in one address.

 

(...)

A modern byte-addressable 64-bit computer—with proper OS support can address 264 bytes (or 16 exbibytes[update]) which as of 2009 is considered practically unlimited.

By the way, readyboost isn't a program that uses flash drives - like pendrives - to increase RAM? Or it enables the use of unseen RAM, on the real RAM hardware? Because the main problem here isn't the limit, it's wasting the RAM that you already have, but the OS can't "see" or address. Enabling PAE allows the system to see this ram, but not address yet due the architecture limitation, and that's why something like ramdisk is needed. If you can't use that RAM like "Physical memory" you still having the option to set it as "Virtual memory". In theory it should be as fast as physical memory, because you still acessing your RAM.

 

Flash drives are slower than your RAM, paging file at hard disk also gives you lag.

Edited by Ain (see edit history)

Share this post


Link to post
Share on other sites
Success!4gb In Xp 32bits

Awesome tutorial!  I just installed XP_Pro_32bit_SP2 on a machine with 8GB of RAM.  When I booted, I found that windows had enabled PAE by default without the boot.Ini option mentioned in step 4.  I looked at windows documentation https://msdn.microsoft.com/en-us/library/windows/hardware/Dn613975(v=vs.85).aspx.  It stated that XP might automatically enable PAE if Data Execution Prevention is already enabled, which it already was in my system.  So, I was able to skip step 4 completely.  After the RAMdisk was installed, I had a 4.74GB RAM drive. /txtmngr/images/smileys/smiley4.Gif pictures below.Fig 1 - System Properties shows 3.25GB of RAM (http://i29.tinypic.com/301nh36.Gif)Fig 2 - Z: is my newly created RamDisk with 4.74GB free disk space (http://i25.tinypic.com/2z8vyap.Gif)Fig 3 - Properties of Z: (http://i25.tinypic.com/k02ao8.Gif)

P.S.  I tried running Portal on the drive.  Works perfectly.  I would say loading times take about 1/4 as long as a Sata2 7200RPM 1.5TB Seagate.  Loading times in the elevators are very fast - only a few frames I'd say.  FPS is unchanged of course.

-reply by Shroom1000

Share this post


Link to post
Share on other sites

i just HAVE TO thank you for that one, thank you! :-)i hate win 7, but love xp because its so simple to work on, i will keep xp for a long timei know win 7 is faster but i hate the design, xp are more simpel

Share this post


Link to post
Share on other sites

Note, when you enable PAE, memory operations are going to be a little slower. Also, there is no guarantee, that this will work, especially on Intel chipsets or CPUs or certain BIOS. They have many revisions of chipset/CPU combos where > 4GB is not supported in 32bit mode.

 

On other note, if you have capable hardware, it is better to use Windows7, because it is really more secure than Windows XP with process memory allocation randomization, sandboxes, stack protection, security fixes and allows you to actually use unprivileged user for everyday operations.

Share this post


Link to post
Share on other sites

I cant find any Boot.ini under W7 32bHow can I manage to put the PAE thing into it ??( I have alredy downloaded Gavotte RamDisk)any thx for any suggestions !!

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.