Allocate the memory VERY early during system initialization. If
fragmentation is not a problem then ExAlloc… if fine, but if you need
contiguous memory then you need to use a DMA adapter object and allocate
contiguous memory. Once you have, do not release it. Piggish I know, but
there is no guarantee you will get it the second time.
Gary G. Little
Broadband Storage, Inc.
xxxxx@broadstor.com
xxxxx@inland.net
-----Original Message-----
From: Andreas Roth [mailto:xxxxx@arsoft-online.de]
Sent: Thursday, January 17, 2002 11:36 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Allocate more than 100MB
I need a replacement for ExAllocatePool. The memory is needed for a RAM
Disk. So any suggestions are welcomed !
A. Roth
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Gary Little
Sent: Donnerstag, 17. Januar 2002 18:44
To: NT Developers Interest List
Subject: [ntdev] RE: Allocate more than 100MB
BUT … rerquesting memory from NPP is subject to availability, and
requesting 100MB of NPP may not be available, if it is requested as
contiguous. Fragmentation may cause a memory request to be refused, even
though available memory exceeds the request. That explains why sometimes
he/she/it gets it and sometimes they don’t.
Gary G. Little
Broadband Storage, Inc.
xxxxx@broadstor.com
xxxxx@inland.net
-----Original Message-----
From: Jason LaVoie [mailto:lavoie@us.ibm.com]
Sent: Thursday, January 17, 2002 9:24 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Allocate more than 100MB
“If you don’t set proprietary registry key manually, system calculates the
size of
Non-Paged-Pool basing on amount of avalable system memory, so it’s usually
even less.”
On machines with 1GB, the system ‘should’ - (I didn’t actually do the calc)
calculate the size of NPaged Pool to be 256MB. A rough calculation can be
found in the MS Knowledgebase - Q126402. I do not recommend playing with
the registry entry. Also, do not use up the entire 256MB or else
MUST_SUCCEED calls with fail.
“Is there an alternativ for ExAllocatePool to get NonPagedPool memory?”
Depends on what you need the memory for.
Jason
You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@arsoft-online.de
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com