Announcement

Collapse
No announcement yet.

Increase the Interactive Desktop Heap Size = Performance Improvement

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Increase the Interactive Desktop Heap Size = Performance Improvement

    So, yesterday, I was bouncing around the internet and came across this post on the MSDN Blog: The default interactive desktop heap size has been increased on 32-bit Vista SP1

    This is going to be a short blog post, but considering the amount of feedback we’ve received on the our two previous desktop heap posts, I think this is worth blogging about. 32-bit Vista SP1 and 32-bit Windows Server 2008 both have a new value for the default size of interactive desktop heaps. Previously, this heap size was 3 MB by default, but on Vista SP1 and Server 2008 the default interactive heap size is 12 MB. We’ve heard your comments about the problems associated with the heap size, and this new default size should go a long way towards avoiding interactive desktop heap depletion.

    On 32-bit systems, running Vista SP1 or Windows Server 2008, you’ll now see that the relevant portion of the registry value looks like this (by default)...

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SubSystems\Windows

    SharedSection=1024,12288,512

    64-bit Windows still has a default interactive desktop heap size of 20MB. Keep in mind that in Vista, session view space (the memory range that desktop heaps are allocated from) is now a dynamic address range. This means that in Vista and Server 2008 the individual desktop heap sizes can be increased to larger sizes with less concern over exhausting session view space.

    - Matthew


    There are a few other posts concerning this stuff. Part 2 takes a look at all Windows Versions which support this feature.

    And the overview page details how to tune the parameter.

    Here is the relevant Registry item that controls this behavior:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SubSystems\Windows


    The default data for this registry value will look something like the following (all on one line):

    %SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,3072,512 Windows=OnSubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16


    The number you want to change is the "3072" in the SharedSection portion. Change it to "12288" to increase the available memory for the Interactive Desktop Heap to 12MB. I did this in Windows XP SP2 and the Shell is MUCH more responsive. There used to be little lags when I would close a program and then immediately open another one or click on the Start button. It is just as snappy as all get out now.

    I would recommend this change to anyone running XP SP2 and Windows Server 2003 32Bit.

    You need to reboot after making the change.

    Please post your results.

    Peace!
    Last edited by caveman-jim; Mar 25, 2008, 08:15 PM.

    #2
    Good find here, and good readin.

    Results? XP is much quicker to respond to input after certain operations. The "snappiness" that people talk about (myself included) is greater by a noticeable amount. Result is very good here.
    Originally posted by Redeemed
    Granted, this is coming from the fella' who's had over 1,000lbs of bucking muscle under neath him.
    Originally posted by John Smith
    "Fail" = verb "Failure" = noun

    Comment


      #3
      Sweet! Thanks for your feedback V-Dub!

      Comment


        #4
        A lil' bit of formattin' and its been added to the Important Info thread! Thanks, Dr.Z!

        Comment


          #5
          Fine! Just do whatever you want with my post. You're a Super Mod and all and I'm just a lowly forum member...

          Thanks!

          Comment


            #6
            Great find. Trying it out myself on xp sp2.

            Comment


              #7
              No 64bit awesomes
              PC
              ~Left 4 Dead, Counter-Strike: Source, Portal, Team Fortress 2, Garry's Mod, C&C3~

              Visit the Roflbox

              Comment


                #8
                It's definatly made my desktop more responsive an snappy, an bringing up programs to top is much more quick.

                Thanks for posting rep heading your way

                PS3 - Mok_ojin - 360 - Mokojin

                " You guys are just jelous - but I guess I can let you 3 going wild in a menage à trois, and record it for the secret R3D pr0n server" - Pr()ZaC

                "Good night child.. It's past your bed time" - Harmon smith Killer7

                "I'm not in this world to live up to your expectations and you're not in this world to live up to mine." - Bruce Lee

                Comment


                  #9
                  Originally posted by benjy355 View Post
                  No 64bit awesomes
                  whats the problem? look again, its there (REG_EXPAND_SZ last line)

                  Comment


                    #10
                    Are there any side effects to this?
                    Member of the Glorious PC Gaming Master Race.
                    Reasons why it’s worth to be a PC gamer in 2012.




                    - The hardest thing about getting a Mac is telling your parents that you're gay.

                    - If I had the choice between being gay and owning a Mac, I would rather be gay, because if I owned a Mac I would be both gay and own a horrible computer.

                    - Imagine a giant cock flying towards your mouth, and there's nothing you can do about it. And you're like "Oh man, I'm gonna have to suck this thing", and you brace yourself to suck this giant cock. But then, at the last moment, it changes trajectory and hits you in the eye. You think to yourself "Well, at least I got that out of the way", but then the giant cock rears back and stabs your eye again, and again, and again. Eventually, this giant cock is penetrating your gray matter, and you begin to lose control of your motor skills. That's when the giant cock slaps you across the cheek, causing you to fall out of your chair. Unable to move and at your most vulnerable, the giant cock finally lodges itself in your anus, where it rests comfortably for 4, maybe 5 hours. That's what using Mac OSX is like.

                    Comment


                      #11
                      Originally posted by spajdr View Post
                      whats the problem? look again, its there (REG_EXPAND_SZ last line)
                      Yeah, its last in the window..
                      Originally posted by Redeemed
                      Granted, this is coming from the fella' who's had over 1,000lbs of bucking muscle under neath him.
                      Originally posted by John Smith
                      "Fail" = verb "Failure" = noun

                      Comment


                        #12
                        Originally posted by genci88 View Post
                        Are there any side effects to this?
                        Yes, there is one: You will be able to create LESS "Virtual" desktops. I wouldn't worry about it.
                        Last edited by Dr. Zhivago; Mar 27, 2008, 08:59 AM.

                        Comment


                          #13
                          Originally posted by Animotion View Post
                          It's definatly made my desktop more responsive an snappy, an bringing up programs to top is much more quick.

                          Thanks for posting rep heading your way
                          Sweet! And thanks!

                          Comment


                            #14
                            Originally posted by benjy355 View Post
                            No 64bit awesomes
                            As spajdr and V-dub mentioned, it's the last entry in the Window. Double-click on the Windows entry. The value you are looking for is near the beginning of the string. Compare the information I posted above to what the string looks like when you double-click the Windows entry.

                            HTH!

                            Comment


                              #15
                              Originally posted by Dr. Zhivago View Post
                              Yes, there is one: You will be able to create LESS "Virtual" desktops. I wouldn't worry about it.
                              Thanks. I don't use multiple virtual desktops, so I will give this tweak a try.

                              And just to make sure: this will not negatively affect my PC games, right?

                              EDIT: Whoops. I missed the "already been increased in Vista SP1", and I do have SP1 installed. I went into the registry editor and was about to apply the tweak, but found out that the new number was already in there.
                              Last edited by genci88; Mar 27, 2008, 09:39 AM.
                              Member of the Glorious PC Gaming Master Race.
                              Reasons why it’s worth to be a PC gamer in 2012.




                              - The hardest thing about getting a Mac is telling your parents that you're gay.

                              - If I had the choice between being gay and owning a Mac, I would rather be gay, because if I owned a Mac I would be both gay and own a horrible computer.

                              - Imagine a giant cock flying towards your mouth, and there's nothing you can do about it. And you're like "Oh man, I'm gonna have to suck this thing", and you brace yourself to suck this giant cock. But then, at the last moment, it changes trajectory and hits you in the eye. You think to yourself "Well, at least I got that out of the way", but then the giant cock rears back and stabs your eye again, and again, and again. Eventually, this giant cock is penetrating your gray matter, and you begin to lose control of your motor skills. That's when the giant cock slaps you across the cheek, causing you to fall out of your chair. Unable to move and at your most vulnerable, the giant cock finally lodges itself in your anus, where it rests comfortably for 4, maybe 5 hours. That's what using Mac OSX is like.

                              Comment


                                #16

                                Comment


                                  #17
                                  workin very nice in xp sp 2. THX for the tweak, i don't use virtual desktops so no worries there

                                  Comment


                                    #18
                                    Changed it to 64mb, seems to be working fine.
                                    "In the year 2004, ATi fans marveled in their own magnificence as ATi gave birth to catalyst A.I . We don't know who struck first, nVidia or us, but it is us who scorched the IQ forever"
                                    R.I.P Vasi, 2002-2011
                                    R.I.P Muha, 2010-2021

                                    Comment


                                      #19
                                      Is this for SP2 only? What about SP3?
                                      "If a terrorist group wanted to hit Britain, all they'd have to do is kill 100 random celebrities. The country would have a nervous breakdown."

                                      Comment


                                        #20
                                        It is not for SP2 only. It applies to any Service Pack Level.

                                        Glad you guys found this useful. It is linked in the "Useful Info" sticky at the top of this forum.

                                        Peace!

                                        Comment


                                          #21
                                          Originally posted by Dr. Zhivago View Post
                                          It is not for SP2 only. It applies to any Service Pack Level.

                                          Glad you guys found this useful. It is linked in the "Useful Info" sticky at the top of this forum.

                                          Peace!
                                          Thanks man. Will give it a shot.
                                          "If a terrorist group wanted to hit Britain, all they'd have to do is kill 100 random celebrities. The country would have a nervous breakdown."

                                          Comment


                                            #22
                                            Are there any step by step instructions on how to do this? I think I know, but I really dont want to **** my computer up again.
                                            I have a PC and a MacBook Pro

                                            Comment


                                              #23
                                              If you read the first post, it describes in detail what to change. Just open Regedit and edit the entry that's listed to the value as it is shown. If you're not comfortable editing the registry, don't.

                                              I can look into creating a *.reg file that you can download and double-click to make the changes, but I would want to see your registry before providing such a file. I'll look into a few machines and compare settings in this area and see if it's generic. I'll post later with an update.

                                              Comment


                                                #24
                                                Originally posted by Turnbull2000 View Post
                                                Thanks man. Will give it a shot.
                                                Let us know how it works out for you. I'm certain you'll notice a positive improvement.

                                                Comment


                                                  #25
                                                  Just gave this a try on my XP install, does seem more responsive now.
                                                  It is regrettable that many personal fortunes are made by people who simply manipulate money and contribute nothing to their society.

                                                  The dream of eternal life is far more compelling than living one.

                                                  Comment


                                                    #26
                                                    Nice find, cheers for sharing !
                                                    Nehalem W3520 4825mhz / 5216mhz maxvalid, kayl 1/3 hp SS
                                                    P6T Deluxe V2 (0006), 6GB KHX12800D3LLK3/6GX
                                                    2x GTX 295's QUAD SLI 633/1380/1152mhz
                                                    3007WFP-HC

                                                    Comment


                                                      #27
                                                      this would explain why I always found xp's interface slow after using vista's i'm guessing...

                                                      Comment


                                                        #28
                                                        Originally posted by Dr. Zhivago View Post
                                                        If you read the first post, it describes in detail what to change. Just open Regedit and edit the entry that's listed to the value as it is shown. If you're not comfortable editing the registry, don't.

                                                        I can look into creating a *.reg file that you can download and double-click to make the changes, but I would want to see your registry before providing such a file. I'll look into a few machines and compare settings in this area and see if it's generic. I'll post later with an update.
                                                        I've done it, I just wanted some one to clarify what to do, exactly

                                                        Dont bother with making a .reg file, but thanks for suggesting it.

                                                        Will post later if its made a difference.
                                                        I have a PC and a MacBook Pro

                                                        Comment


                                                          #29
                                                          Originally posted by traitoR View Post
                                                          Just gave this a try on my XP install, does seem more responsive now.
                                                          You should see a marked difference when opening a closing multiple programs and window switching.

                                                          Originally posted by Anth Seebel View Post
                                                          Nice find, cheers for sharing !
                                                          YW!

                                                          Originally posted by SteadVéx View Post
                                                          this would explain why I always found xp's interface slow after using vista's i'm guessing...
                                                          Especially after SP1 on Vista, yes.

                                                          Originally posted by MysticKiller View Post
                                                          I've done it, I just wanted some one to clarify what to do, exactly

                                                          Dont bother with making a .reg file, but thanks for suggesting it.

                                                          Will post later if its made a difference.
                                                          Okay. Thanks!

                                                          Comment


                                                            #30
                                                            Originally posted by clerick View Post
                                                            Changed it to 64mb, seems to be working fine.
                                                            I've tried it (65536 instead of 3072), but I've totally failed. I wasn't being able to boot up even in safe mode. I managed to do it choosing "Last known configuration that worked". In between, I chose "Do not reboot in case of error" and saw the following:

                                                            STOP c000021a {Serious system error}
                                                            The system process Windows Logon Process halted unexpectedly with the state 0x00000407 (0x00000000 0x00000000)
                                                            The system has been shut down


                                                            (all options and texts originally seen in Spanish, translation may be inaccurate)

                                                            -------------------------------

                                                            Afterwards I yet dared to try again but with 12288 instead of 3072 as originally suggested. This time the system booted as always (I've checked that the tweak remains). I haven't noticed any difference yet, but I'll keep it some days at least.

                                                            I don't use multiple desktops here.

                                                            Windows XP 32 pro + Windows Vista 32 Ultimate, CCC + ATi Tray Tools
                                                            Club3D HD4890 Superclocked Edition (950/1050·4) with Accelero S1 rev2 + Turbo Module (2 80mm low-profile fans w/o frame)
                                                            LCD Samsung SyncMaster T260 (26", 1920x1200)
                                                            Gigabyte GA-MA790FXT-UD5P (socket AM3, chipset AMD-790FX)
                                                            Phenom II X4 955-BE @ stock
                                                            4x2GB Geil DDR3-1333 7-7-7-24-33 1.5V @ 1333MHz 7-7-7-24-33-1T 1.6V; dual channel enabled; unganged mode
                                                            Sound Blaster Live! 5.1 with gameport, AverMedia AVerTV Hybrid Super007
                                                            2x WD 640GB Caviar Blue (SATA) in RAID 0, DVD reader (IDE), 2 DVD recorders (SATA+IDE), floppy drive, card reader
                                                            Corsair VX-550W, one +12V x 41A rail, 81-85% efficiency



                                                            Windows XP 32 pro, no CCC, ATi Tray Tools
                                                            Sapphire X1950pro 512MB AGP (580/702·2 MHz) with Accelero X2
                                                            CRT Nokia 446Xpro (19", 107 kHz) @ 1600x1200x75Hz (desktop) or 1280x1024x85Hz (games)
                                                            Asrock AM2NF3-VSTA (nForce3 250); HT@804 MHz (motherboard limitation, 3216MB/s up + 3216MB/s down)
                                                            Athlon64 X2 5000+ Brisbane (@13*201=2613MHz)
                                                            2x2GB Buffalo 2.1V + 2x1GB Kingston 2.0V, both DDR2-800 4-4-4-12-2T@ 2*373MHz (2613/7) 4-4-4-12-2T 2.0V; dual channel enabled
                                                            56k modem, drives etc
                                                            Corsair VX-450W, one +12V x 33A rail, 81-85% efficiency
                                                            190W maximum consumption from the wall (monitor apart)

                                                            Comment


                                                              #31
                                                              Yeah, I don't think I would try 64MB. Nowhere in the discussions did I see anybody running values this large. I suppose if you are running 64Bit, you could try larger values, although as mentioned, it's already set to 20MB by default for 64Bit versions.

                                                              Comment


                                                                #32
                                                                It worked!

                                                                I can see a difference simply when opening the start menu, or pressing the show desktop in my quick launch.



                                                                Is there anyway to speed firefox up? It sometimes hangs for a short period as a webpage is loading
                                                                I have a PC and a MacBook Pro

                                                                Comment


                                                                  #33
                                                                  Originally posted by MysticKiller View Post
                                                                  Are there any step by step instructions on how to do this? I think I know, but I really dont want to **** my computer up again.
                                                                  I plan on trying it tonight... It's a pretty simple tweak. Just navigate to the right registry branch, change a value, and reboot.

                                                                  This link has more info, should you want it. I would NOT advise setting the value higher than 12288 (from 3072).

                                                                  "The history of intellectual progress is written in the lives of infidels."

                                                                  - Robert Ingersoll (1833 - 1899)

                                                                  Comment


                                                                    #34
                                                                    Originally posted by Djinn View Post
                                                                    I plan on trying it tonight... It's a pretty simple tweak. Just navigate to the right registry branch, change a value, and reboot.

                                                                    This link has more info, should you want it. I would NOT advise setting the value higher than 12288 (from 3072).

                                                                    http://www.techarp.com/showarticle.a...tno=238&pgno=1
                                                                    I've already managed to do it without messing up anything on my computer

                                                                    But thanks!
                                                                    I have a PC and a MacBook Pro

                                                                    Comment


                                                                      #35
                                                                      Originally posted by MysticKiller View Post
                                                                      I've already managed to do it without messing up anything on my computer But thanks!
                                                                      And the result... ?
                                                                      "The history of intellectual progress is written in the lives of infidels."

                                                                      - Robert Ingersoll (1833 - 1899)

                                                                      Comment


                                                                        #36
                                                                        Wooow, just stumbled upon this by chance It really, really works!!!
                                                                        Love can die, but power is forever!

                                                                        Comment


                                                                          #37
                                                                          Originally posted by MysticKiller View Post
                                                                          It worked!

                                                                          I can see a difference simply when opening the start menu, or pressing the show desktop in my quick launch.



                                                                          Is there anyway to speed firefox up? It sometimes hangs for a short period as a webpage is loading
                                                                          You can install the Fasterfox plugin and set it to Optimized or Turbo.

                                                                          Originally posted by Melhisedek View Post
                                                                          Wooow, just stumbled upon this by chance It really, really works!!!
                                                                          Yes, it does. Glad you found it useful.

                                                                          I think it's funny that this thread is getting more traffic now than when I posted it 2 months ago.

                                                                          Comment


                                                                            #38
                                                                            Originally posted by MysticKiller View Post
                                                                            It worked!

                                                                            I can see a difference simply when opening the start menu, or pressing the show desktop in my quick launch.

                                                                            Originally posted by Djinn View Post
                                                                            And the result... ?
                                                                            Its definetly helped, and quiet a bit at that, no more short pauses when minimizing, maximizing and stuff.

                                                                            I think the degree of the difference will depend on how good your computer already is too.
                                                                            I have a PC and a MacBook Pro

                                                                            Comment


                                                                              #39
                                                                              hrmm, is the heap size per monitor? or is it shared?

                                                                              Comment


                                                                                #40
                                                                                Originally posted by MysticKiller View Post
                                                                                ... I think the degree of the difference will depend on how good your computer already is too.
                                                                                Perhaps... I did it, and I see no real difference either way.
                                                                                "The history of intellectual progress is written in the lives of infidels."

                                                                                - Robert Ingersoll (1833 - 1899)

                                                                                Comment

                                                                                Working...
                                                                                X