OSR Dev Blog

Pool and Memory Events
(By: Hector J. Rodriguez | Published: 17-Nov-04| Modified: 17-Nov-04)

Starting in Windows Server 2003, the memory manager sets and clears a set of event (notification) objects to signal various memory conditions.  You can use these event in your driver to guide how paged and/or non-paged pool is allocated.  These events are:

\KernelObjects\HighPagedPoolCondition
\KernelObjects\HighNonPagedPoolCondition

These events are signalled whenever there's plenty of free space available in the indicated pool.  When set, a driver can freely allocate large blocks.

\KernelObjects\LowPagedPoolCondition
\KernelObjects\LowNonPagedPoolCondition

These events are signalled whenever there's a relatively small amount of space available in the indicated pool.  Note that these events don't necessarily signal a serious pool shortage, but rather that pool users should "cool it" and refrain from aggressive allocations in the indicated pool to help avoid a future serious shortage.

Before you ask: No, the parameters (that is, the specific amounts of memory) that cause these flags to be set and cleared aren't public.

The pool events add to the following which have been present in Windows since at least Windows 2000:

\KernelObjects\HighMemoryCondition
\KernelObjects\LowMemoryCondition
 

This article was printed from OSR Online http://www.osronline.com

Copyright 2017 OSR Open Systems Resources, Inc.