public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Just Marc <marc@corky.net>
To: "linux-os (Dick Johnson)" <linux-os@analogic.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Crash soon after an alloc_skb failure in 2.6.16 and previous, swap disabled
Date: Thu, 30 Mar 2006 20:43:53 +0100	[thread overview]
Message-ID: <442C34F9.8000602@corky.net> (raw)
In-Reply-To: <Pine.LNX.4.61.0603301059420.738@chaos.analogic.com>

Hi
>> I'm running a few machines with swap turned off and am experiencing
>> crashes when the system is extremely low on kernel memory.   So far the
>> crashes observed are always inside the recv function of the Ethernet
>>     
> [SNIPPED...]
>
> Huh? If no buffers are available, received packets get thrown on the
> floor. I see the failure(s) happened in an interrupt. If so, the
> problem is in the network driver and your starved memory situation
> brought out a bug.
>
>   
The printout to the kernel log I attached to the previous email still 
does not mean the crash occurred there and then.
>> The benefits of running a system without swap are arguable, but in my
>> particular scenario I prefer to have connections dropped rather than
>> experience the overheads and latencies of a heavily swapping system.
>>     
>
> I read this as; "I want the advantages of swap, but I don't want
> to use swap." Or, "It doesn't work as I expected so therefore it's
> broken!" In any event, swap is used to handle the problems with a
> finite amount of memory. Normally sleeping tasks get swapped out,
> freeing their memory for your network stuff. If you don't have swap,
> that memory can't be freed. Tough! You did it, so you live with
> it -- but contact the maintainer of your network card. You may
> have forced a bug to come to the surface.
>
>   
In most cases you are right, in my case, there is almost no application 
used RAM and therefore nothing to be freed.   In my particular case I 
don't *really* need memory freed, I know a little odd.

But, as this is issue is occurring with at least e1000 and tg3 the bug 
might not be in these particular drivers.   As I do not have a crash 
dump or log of what happened when the system froze, I have no way of 
knowing.

As this problem is easily reproducible, I'll leave it to the kernel 
people involved to dig into it, that is of course, if they are interested.

Thanks

  reply	other threads:[~2006-03-30 18:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-30 16:47 Crash soon after an alloc_skb failure in 2.6.16 and previous, swap disabled Just Marc
2006-03-30 16:10 ` linux-os (Dick Johnson)
2006-03-30 19:43   ` Just Marc [this message]
2006-03-30 22:54 ` Andrew Morton
2006-03-31  8:16   ` Just Marc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=442C34F9.8000602@corky.net \
    --to=marc@corky.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-os@analogic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox