At once.
Common buffers (called “shared memory” by NDIS) are page-sized, so, allocating 4096 common buffers is a huge waste of memory for unused tails.
Max
----- Original Message -----
From: kxverma
To: NT Developers Interest List
Sent: Tuesday, April 23, 2002 10:56 AM
Subject: [ntdev] Memory allocation
Hi All,
What ur suggestion on following…
Writing a NDIS miniport driver… Want to allocate shared memory
for receive buffers( total= 4096, size= 1536 bytes each ).
Should I allocate it at once i.e. size of 4096*1536 bytes OR
should I allocate individually 1536, 4096 times.
Writing a NDIS miniport driver... Want to allocate shared memory for receive buffers( total= 4096, size= 1536 bytes each ).
Should I allocate it at once i.e. size of 4096*1536 bytes OR should I allocate individually 1536, 4096 times.
What generally you guys do in such cases?
Thanks in adavance Kishore
------------------------------------------------------------------------------ Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in