TechTalkz.com Logo Ask the Expert

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft Device Drivers

Notices

NdisMAllocateNetBufferSGList keeps failing.

Microsoft Device Drivers


Reply
 
Thread Tools Display Modes
Old 03-12-2007, 06:24 AM   #1
Praveen Kumar A
Guest
 
Posts: n/a
NdisMAllocateNetBufferSGList keeps failing.

Hi,

When I do large ftp xfers, I receive a huge request from NDIS (which it
received from app).

NdisMallocateNetBufferSGList consistently fails and the ftp connection ends
up getting aborted.

Questions:

1. How do I analyze the failures from NdisMallocateNetBufferSGList ().. The
error return is NDIS_STATUS_RESOURCES.
This does not change irrespective of whether I provide buffer to store
the SGLIST or not..

2. How do I find whether there are any real memory issues?

3. What reasons can the above call fail? Is it lack of kernel memory? Is it
due to lack of non-paged pool memory?


Thanks for your answers.
-Praveen


  Reply With Quote
Old 03-12-2007, 06:26 AM   #2
Alireza Dabagh [MS]
Guest
 
Posts: n/a
Re: NdisMAllocateNetBufferSGList keeps failing.

How big is the data and how many fragments is it?
How many outstanding xmits do you have at the point of failure?
Is this 32 bit or 64 bit Vista?
How much memory the system has?
When you called NdisMRegisterScatterGatherDma, what did you set
DmaDescription->MaximumPhysicalMapping to? Can your hardware do 64 bit DMA?
If yes, did you set NDIS_SG_DMA_64_BIT_ADDRESS flag on
DmaDescription->Flags?
Are you sure the NET_BUFFER is formed properly (the MDL chain, the data
length and data offset are not bogus)?

-thanks, ali

--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Praveen Kumar A" <apraveen.kumar@gmail.com> wrote in message
news:ufbnpjaQHHA.1016@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> When I do large ftp xfers, I receive a huge request from NDIS (which it
> received from app).
>
> NdisMallocateNetBufferSGList consistently fails and the ftp connection
> ends up getting aborted.
>
> Questions:
>
> 1. How do I analyze the failures from NdisMallocateNetBufferSGList ()..
> The error return is NDIS_STATUS_RESOURCES.
> This does not change irrespective of whether I provide buffer to store
> the SGLIST or not..
>
> 2. How do I find whether there are any real memory issues?
>
> 3. What reasons can the above call fail? Is it lack of kernel memory? Is
> it due to lack of non-paged pool memory?
>
>
> Thanks for your answers.
> -Praveen
>



  Reply With Quote
Reply

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 09:24 AM.


vBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2010, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional