MSFN Forum: GDI Heap Extender - MSFN Forum

Jump to content


  • 9 Pages +
  • « First
  • 7
  • 8
  • 9
  • You cannot start a new topic
  • You cannot reply to this topic

GDI Heap Extender Beta is so beta Rate Topic: -----

#161 User is offline   jds 

  • -DOS+
  • PipPipPipPip
  • Group: Members
  • Posts: 595
  • Joined: 03-June 08
  • OS:98SE
  • Country: Country Flag

Posted 27 June 2011 - 12:32 AM

View PostCharlesF, on 26 June 2011 - 09:40 AM, said:

Well, these tricks are rather old now.

They were given by Tihiy and dencorso,
but with the heap optimisation built in last RP (and KernelEx?), do we actually need them?

BTW jds, Tihiy said later that it is inadvisable to allow more than 4 MB to GDIMaxHeapSize as it may deplete too much selectors.

Thanks for the heads-up about that selectors thing, even if I don't quite know what it means.

However, Tihiy didn't specifically say that setting the heap limit above 4M would cause a problem, simply that RP10 would default to 4M and that setting too high a limit may deplete selectors. How high a limit would cause problems is not specified, although we can infer that it is somewhere above 4M. Anyway, I'm still learning these old tricks and simply report my finding, that setting the limit to 8M (on two machines now) has made a noticeable improvement to stability.

Joe.


#162 User is offline   CharlesF 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 421
  • Joined: 13-July 08
  • OS:98SE
  • Country: Country Flag

Posted 27 June 2011 - 05:42 PM

View Postjds, on 27 June 2011 - 12:32 AM, said:

However, Tihiy didn't specifically say that setting the heap limit above 4M would cause a problem

You are right.
For my part, I have tried with 4 MB for USER & GDI and doesn't see a real difference.

So, Tihiy if you are here what would you recommend currently for those tricks? :w00t: (with last builds of RP & KernelEx already installed). :D

#163 User is offline   jds 

  • -DOS+
  • PipPipPipPip
  • Group: Members
  • Posts: 595
  • Joined: 03-June 08
  • OS:98SE
  • Country: Country Flag

Posted 28 June 2011 - 02:18 AM

View PostCharlesF, on 27 June 2011 - 05:42 PM, said:

View Postjds, on 27 June 2011 - 12:32 AM, said:

However, Tihiy didn't specifically say that setting the heap limit above 4M would cause a problem

You are right.
For my part, I have tried with 4 MB for USER & GDI and doesn't see a real difference.

So, Tihiy if you are here what would you recommend currently for those tricks? :w00t: (with last builds of RP & KernelEx already installed). :D

Well, if you use RP, this defaults to 4MB for the GDI heap, so setting this explicitly would make no difference.

As for myself, I should mention that I'm running KernelEx but not RP. Since RP has an inbuilt version of the "GDI Heap Extender", the GDI heap requirements would be lower than for a system without RP (such as mine). I should also mention that 8MB was the one and only setting I've tried, it is possible that a 4MB setting would also be sufficient to exhibit markedly improved stability.

Joe.

This post has been edited by jds: 28 June 2011 - 02:20 AM


#164 User is offline   Hu$tle 

  • Junior
  • Pip
  • Group: Banned
  • Posts: 86
  • Joined: 29-June 06

Posted 09 April 2012 - 11:01 PM

View Postsimco51, on 17 March 2010 - 02:33 PM, said:

Tihiy appears to abandon all his projects without finishing long time ago. May be someone would be interested to pickup where he left, fix the bugs and finish the project.
I'm hoping for the same thing. I don't use anything this guy create because he never finishes no matter what.

#165 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,988
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 10 April 2012 - 12:27 AM

View Postjds, on 27 June 2011 - 12:32 AM, said:

View PostCharlesF, on 26 June 2011 - 09:40 AM, said:

Well, these tricks are rather old now.

They were given by Tihiy and dencorso,
but with the heap optimisation built in last RP (and KernelEx?), do we actually need them?

BTW jds, Tihiy said later that it is inadvisable to allow more than 4 MB to GDIMaxHeapSize as it may deplete too much selectors.

Thanks for the heads-up about that selectors thing, even if I don't quite know what it means.

However, Tihiy didn't specifically say that setting the heap limit above 4M would cause a problem, simply that RP10 would default to 4M and that setting too high a limit may deplete selectors. How high a limit would cause problems is not specified, although we can infer that it is somewhere above 4M. Anyway, I'm still learning these old tricks and simply report my finding, that setting the limit to 8M (on two machines now) has made a noticeable improvement to stability.

Joe.

Well, there is a problem... While I used 16M for both GDIMaxHeapSize and USERMaxHeapSize, I had this issue, which went away when I fell back to 4096. However, since RP calls the Windows native LDT cleanup when LDT is lower than 20%, you won't normally notice that issue, except for the red light. But it's much better to avoid having the LDT cleanup routine (which Tihiy deems not that effective anyway) called more sparingly, to avoid unnecessary system processing, so 4M is the best value to use for both.

#166 User is offline   jds 

  • -DOS+
  • PipPipPipPip
  • Group: Members
  • Posts: 595
  • Joined: 03-June 08
  • OS:98SE
  • Country: Country Flag

Posted 13 April 2012 - 08:26 AM

View Postdencorso, on 10 April 2012 - 12:27 AM, said:

View Postjds, on 27 June 2011 - 12:32 AM, said:

However, Tihiy didn't specifically say that setting the heap limit above 4M would cause a problem, simply that RP10 would default to 4M and that setting too high a limit may deplete selectors. How high a limit would cause problems is not specified, although we can infer that it is somewhere above 4M. Anyway, I'm still learning these old tricks and simply report my finding, that setting the limit to 8M (on two machines now) has made a noticeable improvement to stability.

Well, there is a problem... While I used 16M for both GDIMaxHeapSize and USERMaxHeapSize, I had this issue, which went away when I fell back to 4096. However, since RP calls the Windows native LDT cleanup when LDT is lower than 20%, you won't normally notice that issue, except for the red light. But it's much better to avoid having the LDT cleanup routine (which Tihiy deems not that effective anyway) called more sparingly, to avoid unnecessary system processing, so 4M is the best value to use for both.

A Suffusion of Red? ;)

Thanks for those numbers, Den. I've been using GDIMaxHeapSize=8192 on all my W98SE machines for some months now, to good effect. As for USERMaxHeapSize, I've not been able to set this anyway, from what I've read, this is a string variable in "HKCU\Control Panel\Desktop", yet there seems no effect whatever value is used for it.

Joe.

#167 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,988
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 13 April 2012 - 11:07 AM

A Suffusion of Red indeed! :D
USERMaxHeapSize does work, but it seems, most if not all our resource issues stem just from too little a GDIMaxHeapSize, so it seems to do nothing. And thanks for reporting 8M works! :thumbup I understand you've got no red light from it, right?

#168 User is offline   loblo 

  • Oldbie
  • PipPipPipPip
  • Group: Members
  • Posts: 679
  • Joined: 12-January 10
  • OS:ME
  • Country: Country Flag

Posted 13 April 2012 - 11:50 AM

View Postdencorso, on 13 April 2012 - 11:07 AM, said:

most if not all our resource issues stem just from too little a GDIMaxHeapSize, so it seems to do nothing.

Here it's always been the user resources that have been the main problem and that's why I deeply regret Tihiy didn't finally implement user salvation in RP (as gdi salvation works wonders).

Btw, if you can get your hands on some copy of the old McAffee Nuts & Bolts utilities (sold under various names and packaging), you'll find in it the WinGauge monitoring utility, which is AFAIK (you'll let me know if this is wrong) the only utility showing separately the use of the 16bit and 32bit resource heaps. It also shows use of GDT and LDT (GDT is never an issue).

And Dencorso, I don't think it's accurate at all to say that too little a GDIMaxHeapSize is the main issue with resources as this the 32bit heap and when things go wrong, in my observation, it's always because of the depletion of the 16bit heaps which are limited to 64k.

This post has been edited by loblo: 13 April 2012 - 12:03 PM


#169 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,988
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 13 April 2012 - 12:17 PM

Thanks for the heads up about WinGauge, I'll try it soon. :thumbup

RP does have a rudimentary form of USER salvation. In its current form, RP does reduce the USER issue some.
But the full-fledged version of it that remains just a wish, regretably...

View PostTihiy, on 05 May 2010 - 02:33 PM, said:

Revolutions Pack 9.5.0 RC
lol just 1 year for new release
<snip>

Quote

[General]
* New: RP has been re-architected and partially rewritten into C to improve reliability and performance
* New: system libraries shared memory (IAT) is protected from damaging
* New: a load of user32 functions were rewritten to reduce resource usage, improve system performance and stability
* Critical fix: parts of RP functionality could become disabled if shared libraries were swapped out
* Lots of minor changes

[USER salvation]
* New: window properties are moved out of 64K heap, reducing USER resource usage
* New: SendMessage*/PostMessage* functions have limit on message count per thread to prevent resource drain
(and thus solve hangs after file operations, forever)

<snip>

[Setup]
* Simplified; less options.
* Does not require GDI or USER updates anymore.
* Automatically updates DIBENG.DLL if needed.

Highlights of this release: bugfixes, USER resource usage, Windows 7 skin, RPConfig UI.
I wanna hear first adopters.


#170 User is offline   jds 

  • -DOS+
  • PipPipPipPip
  • Group: Members
  • Posts: 595
  • Joined: 03-June 08
  • OS:98SE
  • Country: Country Flag

Posted 14 April 2012 - 05:47 AM

View Postdencorso, on 13 April 2012 - 11:07 AM, said:

A Suffusion of Red indeed! :D
USERMaxHeapSize does work, but it seems, most if not all our resource issues stem just from too little a GDIMaxHeapSize, so it seems to do nothing. And thanks for reporting 8M works! :thumbup I understand you've got no red light from it, right?

Well, I deleted RP due to its messing up my quick launch / task bar. So I can't say about the coloured lights, however, see below ...

View Postloblo, on 13 April 2012 - 11:50 AM, said:

Here it's always been the user resources that have been the main problem and that's why I deeply regret Tihiy didn't finally implement user salvation in RP (as gdi salvation works wonders).

Btw, if you can get your hands on some copy of the old McAffee Nuts & Bolts utilities (sold under various names and packaging), you'll find in it the WinGauge monitoring utility, which is AFAIK (you'll let me know if this is wrong) the only utility showing separately the use of the 16bit and 32bit resource heaps. It also shows use of GDT and LDT (GDT is never an issue).

And Dencorso, I don't think it's accurate at all to say that too little a GDIMaxHeapSize is the main issue with resources as this the 32bit heap and when things go wrong, in my observation, it's always because of the depletion of the 16bit heaps which are limited to 64k.

Well, I'd not heard of Mcafee "Nuts & Bolts" nor "WinGauge" before, however, I've managed to track down an evaluation copy at some academic/teaching site :
http://www.cbe.name/share.srf/tppmsgs/share.srf?changefolder=1&folder=%5C(03%BF%CE%BC%FE%CB%D8%B2%C4)%5C%B9%B2%CF%ED%C8%ED%BC%FE%5C%B9%B2%CF%ED%C8%ED%BC%FE%BF%E22%5C162
This file seems to have originally been available here (defunct URL) : http://download.mcaf...9x/NB0201AD.EXE

Anyway, after figuring out how to use "WinGauge" (wgpro32.exe), I'm impressed by the range of parameters it can monitor or report. Your assertion that the 16-bit GDI and User resources are most critical seems to be true. As I write this, the 16-bit versions are showing about 40% usage, whereas the 32-bit versions are showing less than 10% usage. However, resource leakage hasn't occurred (much) yet, so that situation may change. Also, GDT shows 1% usage and LDT shows 37% usage.

Joe.

This post has been edited by jds: 14 April 2012 - 05:51 AM


#171 User is offline   jds 

  • -DOS+
  • PipPipPipPip
  • Group: Members
  • Posts: 595
  • Joined: 03-June 08
  • OS:98SE
  • Country: Country Flag

Posted 25 May 2012 - 03:30 AM

View Postloblo, on 13 April 2012 - 11:50 AM, said:

And Dencorso, I don't think it's accurate at all to say that too little a GDIMaxHeapSize is the main issue with resources as this the 32bit heap and when things go wrong, in my observation, it's always because of the depletion of the 16bit heaps which are limited to 64k.

Loblo, now that I've been able to try WinGauge on a number of occasions, I can confirm what you say. With my settings for GDIMaxHeapSize, it's always the 16 bit GDI or User resources that run out when W98 leaks.

Joe.

This post has been edited by jds: 25 May 2012 - 03:31 AM


Share this topic:


  • 9 Pages +
  • « First
  • 7
  • 8
  • 9
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy