From: Mitch Adair <mitch@theneteffect.com>
To: Teodor.Iacob@astral.kappa.ro (Teodor Iacob)
Cc: linux-kernel@vger.kernel.org
Subject: Re: eth0: memory shortage
Date: Wed, 3 Jul 2002 15:15:12 -0500 (CDT) [thread overview]
Message-ID: <200207032015.PAA23765@mako.theneteffect.com> (raw)
In-Reply-To: <20020703190931.GA13103@linux.kappa.ro> from "Teodor Iacob" at Jul 03, 2002 10:09:31 PM
> I keep getting these messages (like about twice a day) in the messages:
> eth0: memory shortage
> eth0: memory shortage
> eth1: memory shortage
> eth1: memory shortage
>
>
> Any idea what could be the reason behind this?
Well this message is coming from drivers/net/3c59x.c in a bit of code that
goes:
/* Refill the Rx ring buffers. */
for (; vp->cur_rx - vp->dirty_rx > 0; vp->dirty_rx++) {
struct sk_buff *skb;
entry = vp->dirty_rx % RX_RING_SIZE;
if (vp->rx_skbuff[entry] == NULL) {
skb = dev_alloc_skb(PKT_BUF_SZ);
if (skb == NULL) {
static unsigned long last_jif;
if ((jiffies - last_jif) > 10 * HZ) {
printk(KERN_WARNING "%s: memory shortage
\n", dev->name);
last_jif = jiffies;
}
if ((vp->cur_rx - vp->dirty_rx) == RX_RING_SIZE)
mod_timer(&vp->rx_oom_timer, RUN_AT(HZ *
1));
break; /* Bad news! */
}
So basically it looks like it is taking much longer to refill rx ring buffers
than it should.
On past 2.4 kernels I recall the eepro100 would report a message of "out
of resources" and the fix suggested there was to increase the values in
/proc/sys/vm/freepages. Perhaps it's a similar issue with the 3c59x ??
Perhaps one of the guru's could comment?
M
next prev parent reply other threads:[~2002-07-03 20:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-03 19:09 eth0: memory shortage Teodor Iacob
2002-07-03 20:15 ` Mitch Adair [this message]
2002-07-03 20:25 ` Andrew Morton
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=200207032015.PAA23765@mako.theneteffect.com \
--to=mitch@theneteffect.com \
--cc=Teodor.Iacob@astral.kappa.ro \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.