Author: cgutman
Date: Sun Dec 4 19:06:40 2011
New Revision: 54589
URL:
http://svn.reactos.org/svn/reactos?rev=54589&view=rev
Log:
[NTOSKRNL]
- Print a warning and signal RosMm to trim pages if we drop below MmMinimumFreePages in
MiRemovePageByColor and MiUnlinkFreeOrZeroedPage
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/pfnlist.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/pfnlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/pfnlist.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/pfnlist.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/pfnlist.c [iso-8859-1] Sun Dec 4 19:06:40 2011
@@ -206,6 +206,11 @@
if (--MmAvailablePages < MmMinimumFreePages)
{
/* FIXME: Should wake up the MPW and working set manager, if we had one */
+
+ DPRINT1("Running low on pages: %d remaining\n", MmAvailablePages);
+
+ /* Call RosMm and see if it can release any pages for us */
+ MmRebalanceMemoryConsumers();
}
#if MI_TRACE_PFNS
@@ -330,6 +335,11 @@
if (--MmAvailablePages < MmMinimumFreePages)
{
/* FIXME: Should wake up the MPW and working set manager, if we had one */
+
+ DPRINT1("Running low on pages: %d remaining\n", MmAvailablePages);
+
+ /* Call RosMm and see if it can release any pages for us */
+ MmRebalanceMemoryConsumers();
}
#if MI_TRACE_PFNS