Author: fireball
Date: Wed Feb 18 10:35:14 2009
New Revision: 39662
URL:
http://svn.reactos.org/svn/reactos?rev=39662&view=rev
Log:
- Display memory usage in the installer as Kernel Cache and Kernel Pool, instead of Paged
and Nonpaged Pool, which doesn't reveal the source of the memory leak.
- Remove 40% memory delay hack.
- Patch by Alex Ionescu.
Modified:
trunk/reactos/base/setup/usetup/interface/usetup.c
Modified: trunk/reactos/base/setup/usetup/interface/usetup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/interfac…
==============================================================================
--- trunk/reactos/base/setup/usetup/interface/usetup.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/interface/usetup.c [iso-8859-1] Wed Feb 18 10:35:14
2009
@@ -3053,18 +3053,9 @@
}
/* Set current values */
- ProgressSetStep(CopyContext->MemoryBars[0], PerfInfo.PagedPoolPages);
- ProgressSetStep(CopyContext->MemoryBars[1], PerfInfo.NonPagedPoolPages);
+ ProgressSetStep(CopyContext->MemoryBars[0], PerfInfo.PagedPoolPages +
PerfInfo.NonPagedPoolPages);
+ ProgressSetStep(CopyContext->MemoryBars[1], PerfInfo.ResidentSystemCachePage);
ProgressSetStep(CopyContext->MemoryBars[2], PerfInfo.AvailablePages);
-
- /* Check if memory dropped below 40%! */
- if (CopyContext->MemoryBars[2]->Percent <= 40)
- {
- /* Wait a while until Mm does its thing */
- LARGE_INTEGER Interval;
- Interval.QuadPart = -1 * 15 * 1000 * 100;
- NtDelayExecution(FALSE, &Interval);
- }
}
static UINT CALLBACK
@@ -3138,7 +3129,7 @@
13,
44,
FALSE,
- "Paged Memory");
+ "Kernel Pool");
/* Create the non paged pool progress bar */
CopyContext.MemoryBars[1] = CreateProgressBar((xScreen / 2)- (mem_bar_width / 2),
@@ -3148,7 +3139,7 @@
(xScreen / 2)- (mem_bar_width / 2),
44,
FALSE,
- "Nonpaged Memory");
+ "Kernel Cache");
/* Create the global memory progress bar */
CopyContext.MemoryBars[2] = CreateProgressBar(xScreen - 13 - mem_bar_width,