Share via


Hey where did /3GB go in Longhorn and Vista?

If you did not already know there is no boot.ini in Vista/LH.  So how do you set usermode space to 3GBs?

If you recall on x86 platforms there is 4GBs of addressable VM space.  So by default that is split up equally.  2GBs for kernel mode and 2GBs for use mode.  Now this is usually fine, but if you have a server that could use more usermode space like domain controllers, SQL servers, exchange sevrers, etc.  You could really use another GB for caching of the database in user mode.  Or you could suck it up and by an x64 machine.

In 2k3 you would do this by using the /3GB switch in the boot.ini which would split the VM, giving 1GB to kernel and 3GBs to user.  Allowing LSASS to cache more of the database on a domain controller for example.

So how do we do this in Vista and LH?  It's actually pretty simple: 

BCDEDIT /Set IncreaseUserVa 3072

You do not have to specify the boot selection GUID.  If you do not specify, it will modify the current selection, which is what you want to do anyways.

 

 

Technorati tags: Vista, Vista Tips, Longhorn

Comments

  • Anonymous
    January 01, 2003
    Hacking Visual Studio to Use More Than 2Gigabytes of Memory

  • Anonymous
    January 01, 2003
    Hey Ofek, here is your answer: http://technet2.microsoft.com/WindowsVista/en/library/85cd5efe-c349-427c-b035-c2719d4af7781033.mspx?mfr=true And yes it is an exe: C:WindowsSystem32bcdedit.exe

  • Anonymous
    January 01, 2003
    Eduardo, the /3GB switchdoes not increase the physical memory that the OS can see it just splits the virtual memory up so that user mode prcoesses see 3GB of the VM space.  If you are having issues seeing all the RAM in your system, I'd check some of the forums on the internet for your desktop model. -Brad

  • Anonymous
    January 01, 2003
    The comment has been removed

  • Anonymous
    January 01, 2003
    To boot into DSRM in Longhorn use MSCONFIG.  It's under the safe boot options.

  • Anonymous
    January 01, 2003
    I imagine you were'nt running the bcdedit command via an elevated cmd prompt? :) For verification just type BCDEDIT at the cmd prompt and you should see the increaseuserva value listed.  If you want to know how to verify from the debugger than thats a differnet story.

  • Anonymous
    January 01, 2003
    Hi Raiden, to take advantage of that much RAM you should use an x64 OS.  The 3GB switch is for x86 systems, and wouldn't help with a situation where you want to use 8GBs.

  • Anonymous
    January 01, 2003
    Hey Sharon, just find the command prompt link in the start menu and alt-click and choose "run as administrator"

  • Anonymous
    January 01, 2003
    I'd say just stick with the default of 2GB for Usermode and 2GB for Kernel. The only real reason to use 3GB is if you have an application that can take advantage of it, like a small SQL database or domain controller. If you find that virtual server is consuming a lot of usermode space then you could increase the USerVA space as much as you need.

  • Anonymous
    November 18, 2006
    The comment has been removed

  • Anonymous
    December 20, 2006
    Brad- Thanks for this post! Can you recommend what configuraton I should use on a Vista laptop w/ 4GB of RAM running: Vista 32-bit, Office 2007, Virtual PC/Virtual Server, IE, etc... My main concern is will system services have enough memory to run well (e.g., SuperFetch). Thanks!

  • Anonymous
    January 30, 2007
    When I run BCDEDIT... I get the following error. The boot configuration data store could not be opened. Access is denied. Any suggestions?

  • Anonymous
    January 30, 2007
    I figured out my problem. But how do I verify the switch has worked?

  • Anonymous
    February 01, 2007
    Thanks Brad for your help! It's all working beautifully. Now, let's say I need to remove or reset the switch (ie. get rid of increaseuserva when I go to BCDEDIT). How would I do this? I have a machine that I tested this on but now I need to get it back to the state it was in before I started tinkering with it. Thanks.

  • Anonymous
    April 05, 2007
    How do I delete the IncreaseUserVa entry once set?

  • Anonymous
    April 05, 2007
    To delete the entry use the following. bcdedit /deletevalue increaseuserva

  • Anonymous
    April 08, 2007
    Worked great.  Thanks Irvin.

  • Anonymous
    May 15, 2007
    i dont understand what is BCDEDIT is it a program????

  • Anonymous
    September 15, 2007
    Brad, I used bcdedit, checked through cmd and it's there; however, it does not show on task manager 4gb. I am using an Intel DQ965GF with latest bios updated. could you help what I should be doing wrong?

  • Anonymous
    February 05, 2008
    Thank you Brad for your patience and solid information

  • Anonymous
    April 26, 2008
    My 4G only read as 3 on a 32 bit Vista...common situ, I see...when I run BCDEDIT I get: The boot configuration data store could not be opened. Access is denied. You mentioned in a prior post running that from "elevated" command prompt...admit I'm clueless in this arena...help? Thanks...

  • Anonymous
    June 05, 2008
    Can I connect my USB wireless aircard (Sierra 875U) to a desktop PC and the PC to a wireless router and use the connection for both my desktop & laptop? Or vice versa--aircard to router and ethernet to PC, laptop?

  • Anonymous
    June 07, 2009
    should this work with 8GO RAM ?? i mean could i take full advantage of 8go ram installed ???

  • Anonymous
    September 07, 2009
    I am unable to use bcdedit I get permishion denied I am the Admin? Tried C: c:windows c:windows/boot Vista 32 Larry

  • Anonymous
    March 12, 2010
    Perfect, thx for this. Helps us out a great deal here when a particular mem-hungry commercial game engine kept running out of memory for non-programmers ( programmers seemed to have this set already somehow - maybe Visual Studio does it sneakily during install?). Whatever, worked fine, and gained our people nearly another 1GB to work with.

  • Anonymous
    November 14, 2010
    I have a CORE i7 with 8GB RAM and I am running Windows 7. How can I change the settings for my Visual Studio 2008? I tried this appriach and the command was not accepted. Thanks!!

  • Anonymous
    November 14, 2010
    I have a CORE i7 with 8GB RAM and I am running Windows 7. How can I change the settings for my Visual Studio 2008? I tried this appriach and the command was not accepted. Thanks!!

  • Anonymous
    November 23, 2010
    Great help. thanks :)

  • Anonymous
    April 27, 2011
    Would it be a good idea to use this in vista that has only 3GB of ram ?