netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* reserving skbuffs for the drivers
@ 2002-10-20 21:03 Ben Greear
  2002-10-21  3:20 ` Andi Kleen
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Greear @ 2002-10-20 21:03 UTC (permalink / raw)
  To: 'netdev@oss.sgi.com'

I'm getting dropped rx packets because the network
driver cannot allocate an skbuf in time, evidently....

I have 256MB of RAM, is there some way to increase the amount of RAM
that the kernel keeps around for GFP_ATOMIC allocations?

Documentation I find talks about buffermem and freepages, which looks
hopeful, but they appear to no longer be in the proc file system as
tunables???

Ben

-- 
Ben Greear <greearb@candelatech.com>       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: reserving skbuffs for the drivers
  2002-10-20 21:03 reserving skbuffs for the drivers Ben Greear
@ 2002-10-21  3:20 ` Andi Kleen
  2002-10-21  5:00   ` Ben Greear
  0 siblings, 1 reply; 3+ messages in thread
From: Andi Kleen @ 2002-10-21  3:20 UTC (permalink / raw)
  To: Ben Greear; +Cc: 'netdev@oss.sgi.com'

On Sun, Oct 20, 2002 at 02:03:46PM -0700, Ben Greear wrote:
> I'm getting dropped rx packets because the network
> driver cannot allocate an skbuf in time, evidently....
> 
> I have 256MB of RAM, is there some way to increase the amount of RAM
> that the kernel keeps around for GFP_ATOMIC allocations?
> 
> Documentation I find talks about buffermem and freepages, which looks
> hopeful, but they appear to no longer be in the proc file system as
> tunables???

You should be asking on linux-mm, not on netdev.

I've been complaining to the MM guys for years that they dropped freepages 
in 2.4, which makes it impossible to tune the VM for heavy network load, but 
so far nobody was interested in fixing it.

-Andi

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: reserving skbuffs for the drivers
  2002-10-21  3:20 ` Andi Kleen
@ 2002-10-21  5:00   ` Ben Greear
  0 siblings, 0 replies; 3+ messages in thread
From: Ben Greear @ 2002-10-21  5:00 UTC (permalink / raw)
  To: Andi Kleen; +Cc: 'netdev@oss.sgi.com'

Andi Kleen wrote:
> On Sun, Oct 20, 2002 at 02:03:46PM -0700, Ben Greear wrote:
> 
>>I'm getting dropped rx packets because the network
>>driver cannot allocate an skbuf in time, evidently....
>>
>>I have 256MB of RAM, is there some way to increase the amount of RAM
>>that the kernel keeps around for GFP_ATOMIC allocations?
>>
>>Documentation I find talks about buffermem and freepages, which looks
>>hopeful, but they appear to no longer be in the proc file system as
>>tunables???
> 
> 
> You should be asking on linux-mm, not on netdev.
> 
> I've been complaining to the MM guys for years that they dropped freepages 
> in 2.4, which makes it impossible to tune the VM for heavy network load, but 
> so far nobody was interested in fixing it.
> 
> -Andi

Lord knows I don't mind complaining...didn't know a linux-mm list
existed...

I wonder though...since we use the skbuff malloc/free wrappers in the
networking code, maybe we could just keep a local cache of some
tunable size.  That may make the skb-malloc call as simple as popping
something off of a head of list for the majority of the cases, and should
free us from having to use the VM.  The kernel default could be quite small
so that low memory machines can still function w/out wasting memory...

The other thing is that my dropped packet problem was mostly fixed by
changing the rx buffer ring to be 512 instead of the 32 it was originally.
As Becker notes, this is not a real solution though...just a hack to make
the problem harder to trigger...

After I made that change, I noticed that most of my dropped packets happened
when the transmitter sent a packet, but the receiving NIC has no record of
receiving the packet (errors or otherwise).  I think there may be some bug
with running multiple ports at once (I never see the problem with 2 of the 4 ports
running, it's rare with 3, but with 4, it drops packets all over the place.)


Thanks,
Ben


-- 
Ben Greear <greearb@candelatech.com>       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-21  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-20 21:03 reserving skbuffs for the drivers Ben Greear
2002-10-21  3:20 ` Andi Kleen
2002-10-21  5:00   ` Ben Greear

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).