Closed
Bug 127069
Opened 23 years ago
Closed 23 years ago
Default process heap is 1MB
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.0
People
(Reporter: dp, Assigned: blythe)
Details
(Keywords: memory-footprint)
Attachments
(2 files, 1 obsolete file)
1.84 KB,
patch
|
blythe
:
review+
blythe
:
superreview+
shaver
:
approval+
|
Details | Diff | Splinter Review |
3.56 KB,
patch
|
dp
:
review+
scc
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
We waste about 800k of this 1MB default process heap. Garrett thinks we can
shrink this by using EDITBIN.EXE to resize this.
Ideal size would be 256K
Reporter | ||
Updated•23 years ago
|
Assignee | ||
Comment 1•23 years ago
|
||
Reclaim .75 MB of unutilized VM.
Reporter | ||
Comment 4•23 years ago
|
||
Comment on attachment 70826 [details] [diff] [review]
Patch to control default heap size.
r=dp
Would be great if you can do the same to winEmbed.
Attachment #70826 -
Flags: review+
Assignee | ||
Comment 5•23 years ago
|
||
Do the same magic for winEmbed per DP's request.
Attachment #70826 -
Attachment is obsolete: true
Assignee | ||
Comment 6•23 years ago
|
||
As a note to others so I can explain what is going on.
Each Win32 process has at least 1 heap associated with it.
This is the process heap, returned by GetProcessHeap().
If you were a "win32 SDK only" type programmer, this is likely the heap you
would heavily utilize.
As it turns out, the heap we use mainly in mozilla is the MSVCRT heap, which is
created independently by a HeapCreate() call in their CRT source.
We only appear to utilize less than 256k of the GetProcessHeap(), and most the
action happens inside the CRT heap.
The heaps can be enumerated and walked on Win32 (err... NT), which is how we
came about this knowledge (see the heap api for the kernel). We had 9 heaps
last time DP took a look.
Assignee | ||
Comment 7•23 years ago
|
||
Comment on attachment 70832 [details] [diff] [review]
Patch to control default heap size.
brendan said "sr=brendan"
Cathleen wants bake time for this.
Going to request driver approval.
Attachment #70832 -
Flags: superreview+
Attachment #70832 -
Flags: review+
Comment 8•23 years ago
|
||
Comment on attachment 70832 [details] [diff] [review]
Patch to control default heap size.
Sweet. a=shaver for 0.9.9.
Attachment #70832 -
Flags: approval+
Assignee | ||
Comment 9•23 years ago
|
||
Checking in embedding/tests/winEmbed/makefile.win;
/cvsroot/mozilla/embedding/tests/winEmbed/makefile.win,v <-- makefile.win
new revision: 1.19; previous revision: 1.18
done
Checking in xpfe/bootstrap/makefile.win;
/cvsroot/mozilla/xpfe/bootstrap/makefile.win,v <-- makefile.win
new revision: 1.59; previous revision: 1.58
done
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 10•23 years ago
|
||
Garrett, can you make a version of this patch for the gmake windows build? That
build uses Makefile.in's instead of makefile.win's.
Comment 11•23 years ago
|
||
Reopening so that we don't forget to fix it in the new build system (for win32) too.
Btw, which were the 7 other heaps beside the standard process heap and the C
library heap?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 12•23 years ago
|
||
mfcEmbed should get this too (winEmbed is pretty much bitrotted and not used).
Assignee | ||
Comment 13•23 years ago
|
||
Control heap size for mfcEmbed as well.
Address gmake Makefile.in files as well.
Request for r= sr= a= in order to call this one done.
Assignee | ||
Comment 14•23 years ago
|
||
As for the 7 other heaps: Uknown origin.
Any piece of code we load, possibly even system DLLs, could create their own
heap.
Those other heaps were all very small, 64k or 32k in VM size.
dp has the tools to produce their numbers, this is just off the top of my head.
Status: REOPENED → ASSIGNED
Comment 15•23 years ago
|
||
dp, can you r=? shaver, can you sr=?
Comment 16•23 years ago
|
||
anyone going to r=/sr= garrett's latest patch?
Reporter | ||
Comment 17•23 years ago
|
||
Comment on attachment 70951 [details] [diff] [review]
Another patch to control default heap size.
r=dp
Attachment #70951 -
Flags: review+
Comment 18•23 years ago
|
||
nsbeta1+
Comment 19•23 years ago
|
||
Comment on attachment 70951 [details] [diff] [review]
Another patch to control default heap size.
sr=scc
Attachment #70951 -
Flags: superreview+
Comment 20•23 years ago
|
||
Comment on attachment 70951 [details] [diff] [review]
Another patch to control default heap size.
a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #70951 -
Flags: approval+
Assignee | ||
Comment 21•23 years ago
|
||
checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•