How many size of memory can EngAllocMem() alloc in PagedPool one time?

Hi all,
Since the system Maximum PagedPool still has more than 200MB pagedpool
memory, but I failed to alloc about 67MB memory from this pool.
**
*PVOID
EngAllocMem(*
* IN ULONG **Flags**,*
* IN* *ULONG **MemSize**, //Is there any limit of this MemSize
here??*
* IN ULONG **Tag*
* );*
**
*Thanks*
*xcr.seven*
**

It is quite conceivable that there is no single contiguous 67mb chunk.

You should in general not rely on being able to acquire vast regions of contiguous kernel address space. You might have a better shot at boot time if it is paged pool and not session paged pool, but it is not good pratice to begin with.

  • S

From: Xu Chunrong
Sent: Tuesday, August 26, 2008 03:02
To: Windows System Software Devs Interest List
Subject: [ntdev] How many size of memory can EngAllocMem() alloc in PagedPool one time?

Hi all,
Since the system Maximum PagedPool still has more than 200MB pagedpool memory, but I failed to alloc about 67MB memory from this pool.

PVOID
EngAllocMem(
IN ULONG Flags,
IN ULONG MemSize, //Is there any limit of this MemSize here??
IN ULONG Tag
);

Thanks
xcr.seven

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer