Author Topic: Increasing windows desktop heap (xp)  (Read 2325 times)

Offline quadz

  • Loquaciously Multiloquent Member
  • ****
  • Posts: 5352
    • View Profile
  • Rated:
Increasing windows desktop heap (xp)
« on: November 13, 2009, 03:22:24 PM »
Not sure to what degree this applies to Vista, or Win 7.

But I like to run lots of applications, and XP frustratingly runs out of 'resources' too quickly, so that I can't open as many apps as I want.  (I don't run win2k anymore, but it used to have the same problem.)

Annoyingly, it never helped to add more RAM to the system.  The system could have plenty of free RAM, and yet run into a limit that would prevent more applictions or windows from being opened.

Here's a technical explanation:

http://blogs.msdn.com/ntdebugging/archive/2007/01/04/desktop-heap-overview.aspx

Last night, I increased the SessionViewSize maximum from 48MB to 96MB, and increased the csrss.exe SharedSection desktop heap from 3072 to 32768.

I also increased the per-process GDIProcessHandleQuota and USERProcessHandleQuota from 10000 to 16000.  These I mostly increased just for the hell of it, as I don't tend to have a single process that ever tries to allocate more than 10000 GDI or USER handles, anyway.

The main thing is the desktop heap.

After rebooting, I have so far been able to launch as many concurrent applications as I feel like, without problems.

With luck, this has solved a problem that has been practically a daily annoyance to me for years.

:dohdohdoh:
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
"He knew all the tricks, dramatic irony, metaphor, bathos, puns, parody, litotes and... satire. He was vicious."

Offline QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1357
    • View Profile
  • Rated:
Re: Increasing windows desktop heap (xp)
« Reply #1 on: November 13, 2009, 06:19:26 PM »
Wow, you must really have a lot of apps open or one of them is a big fat resource hog. I thought I was bad with 17 applications and 57 processes. I ran dheapmon and only had 39% usage of WinSta0 heap. Perfmon says my handle count total is about 13,600 but I have never seen a resource problem in XP, I have bumped the pagefile size limit a couple of times.

Are you running all the tastyspleen servers on your desktop? :)
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline quadz

  • Loquaciously Multiloquent Member
  • ****
  • Posts: 5352
    • View Profile
  • Rated:
Re: Increasing windows desktop heap (xp)
« Reply #2 on: November 13, 2009, 07:30:59 PM »
Wow, you must really have a lot of apps open or one of them is a big fat resource hog. I thought I was bad with 17 applications and 57 processes. I ran dheapmon and only had 39% usage of WinSta0 heap.

There seem to be a couple factors... lots of apps, and also leaky apps (including the desktop explorer.exe)

I tend to go 50 or 60 days between reboots...  and XP just gets more and more resource starved over time.

I would end up having to force-quit the desktop explorer.exe process, just to reclaim some of its leaked handles... but that sucked, because I lose the arrangement of my applications on the taskbar (which I purposely open in a certain order so that they are in known locations so i can sort of use muscle memory to find them rather than hunting for them.)

No single app tends to be an exterme hog... The big ones have been firefox, iTunes, visual studio (which I run several instances of)... as well as msimn.exe (outlook express) which leaks handles like a seive.  (Fortunately OE is simple to quit and restart, so, i didn't really care about that much, just restarted it every day.)

As an aside - I upgraded iTunes a couple days ago from 8.x to 9.x ... and much to my surprise, the new version uses about 4.6 times fewer GDI handles than the old iTunes used to.  It used to use around 1800, now it's 390.  I would never have expected that sort of improvement, but I'm happy to see it.

Currently I have 80 processes and 31 "applications" (although, really, some of those applications are root-level windows belonging to a single process, like firefox.exe (7) or explorer.exe (3).)

But over time, that will end up more like firefox.exe (21) and explorer.exe (13) ... as well as numerous cmd.exe instances, and telnet and ssh instances, etc...


Are you running all the tastyspleen servers on your desktop? :)

Haha, noooo.  All leeenux.

(Although I do telnet to their admin consoles from here.)


:)
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
"He knew all the tricks, dramatic irony, metaphor, bathos, puns, parody, litotes and... satire. He was vicious."

Offline RRBM [NL]

  • Full Member
  • ***
  • Posts: 123
  • That's a Frag Folks!
    • View Profile
  • Rated:
Re: Increasing windows desktop heap (xp)
« Reply #3 on: November 14, 2009, 11:21:20 AM »
In xp i use Cleanmem http://www.pcwintech.com/node/145 for memory leaks. Works fine for me.

  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

 

El Box de Shoutamente

Last 10 Shouts:

 

-Unh0ly-

March 18, 2024, 03:51:45 AM

https://www.youtube.com/watch?v=NjGjxwHT6ok

played guitar drums bass and sang cuz everyone too lame to start a band with me

0rbisson

March 14, 2024, 04:29:08 AM
HT1 or whatever the stupid map name is instant server killer. the map is trash, Everyone leaves
 

Costigan_Q2

March 10, 2024, 04:00:02 PM
This is my fave TS post.

And quadz posted it - some ppl must haaate that. :)
 

-Unh0ly-

February 29, 2024, 08:35:47 AM
MONDAY NIGHT RAILWARZ GAMES   74.91.120.171:27910 -- BIG FUCKIN GAMES.... LETS GO!!!!!!!
 

|iR|Focalor

February 29, 2024, 01:19:58 AM
 

|iR|Focalor

February 27, 2024, 12:23:01 AM

0rbisson

February 26, 2024, 11:38:19 AM
player "shogun" known hacker back on ts servers. http://forum.tastyspleen.net/quake/index.php?topic=21160.msg201752#msg201752
 

|iR|Focalor

February 17, 2024, 10:11:59 PM
 

Costigan_Q2

February 16, 2024, 07:45:01 AM
Almost 4 months ey? that's a new record.

Last accepted: profile;u=7126
Date Registered:17-10-2023
WaKy-FeLa

Last registered: profile;u=7150
Date Registered:09-02-2024
damsonpharmacy

0rbisson

February 14, 2024, 10:51:18 PM
pings back up to 400+ on dm

Show 50 latest
Welcome, Guest. Please login or register.
March 28, 2024, 07:05:29 AM

Login with username, password and session length