* What should wireless drivers do under -ENOMEM
@ 2008-11-21 18:55 Luis R. Rodriguez
2008-11-21 19:01 ` Michael Buesch
0 siblings, 1 reply; 2+ messages in thread
From: Luis R. Rodriguez @ 2008-11-21 18:55 UTC (permalink / raw)
To: linux-wireless
Under heavy stress you can sometimes run into -ENOMEM and you inform
the callers. Now ath5k/ath9k both require dev_alloc_skb()'ing some
buffers when RXing. Right now we simply move on, but I think it'd be
nicer to inform mac80211 and let mac80211 decide. If the system is
under complete load I don't expect my drivers to bail out but to
somehow gracefully wait a while and then try again. But after a while
data starts to become pretty useless if you keep running into -ENOMEM.
What should we do then? Thoughts?
Luis
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: What should wireless drivers do under -ENOMEM
2008-11-21 18:55 What should wireless drivers do under -ENOMEM Luis R. Rodriguez
@ 2008-11-21 19:01 ` Michael Buesch
0 siblings, 0 replies; 2+ messages in thread
From: Michael Buesch @ 2008-11-21 19:01 UTC (permalink / raw)
To: Luis R. Rodriguez; +Cc: linux-wireless
On Friday 21 November 2008 19:55:12 Luis R. Rodriguez wrote:
> Under heavy stress you can sometimes run into -ENOMEM and you inform
> the callers. Now ath5k/ath9k both require dev_alloc_skb()'ing some
> buffers when RXing. Right now we simply move on, but I think it'd be
> nicer to inform mac80211 and let mac80211 decide. If the system is
Well, what should mac80211 decide?
If you are under such heavy load that memory allocations fail, we really have
only one chance. That is drop the network traffic until memory allocation
works again.
I don't see anything else we can do.
--
Greetings Michael.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-21 19:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21 18:55 What should wireless drivers do under -ENOMEM Luis R. Rodriguez
2008-11-21 19:01 ` Michael Buesch
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).