OSRLogo
OSRLogoOSRLogoOSRLogo x Subscribe to The NT Insider
OSRLogo
x

Everything Windows Driver Development

x
x
x
GoToHomePage xLoginx
 
 

    Tue, 23 Oct 2018     118021 members

   Login
   Join


 
 
Contents
  Online Dump Analyzer
OSR Dev Blog
The NT Insider
Downloads
ListServer / Forum
  Express Links
  · The NT Insider Digital Edition - May-June 2016 Now Available!
  · Windows 8.1 Update: VS Express Now Supported
  · HCK Client install on Windows N versions
  · There's a WDFSTRING?
  · When CAN You Call WdfIoQueueP...ously

Pool and Memory Events

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
 

Related Articles
Must Succeed Pool...DEAD!
Who Owns Which Pool Tag
No Pool Tagging for Special Pool
Permanent Pool Overrun Checking Starting With XP SP2
ExAllocatePoolWithQuota Raises Exceptions

User Comments
Rate this article and give us feedback. Do you find anything missing? Share your opinion with the community!
Post Your Comment

Post Your Comments.
Print this article.
Email this article.
bottom nav links