Search Linux Wireless

Re: intel 5100/iwlagn bug in 2.6.35-rc2 during large file transfer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



reinette chatre wrote:
Hi Richard,

On Thu, 2010-06-24 at 09:12 -0700, Richard Farina wrote:
reinette chatre wrote:
On Wed, 2010-06-16 at 19:56 -0700, Richard Farina wrote:
The repeated line appears ad infinitum filling my dmesg buffer. This of hangcheck timer seem to trigger with every large file transfer on my intel 5100. What would you like me to do to provide a more useful output as this is currently extremely easy to reproduce. Kernel 2.6.34 using compat-wireless stable 2.6.35-rc2

Thanks,
Rick Farina

phy0: failed to reallocate TX buffer
phy0: failed to reallocate TX buffer
phy0: failed to reallocate TX buffer
phy0: failed to reallocate TX buffer
phy0: failed to reallocate TX buffer
phy0: failed to reallocate TX buffer
phy0: failed to reallocate TX buffer
First mac80211 runs out of memory ... it cannot even allocate enough
memory for a skb header.

net_ratelimit: 22 callbacks suppressed
__alloc_pages_slowpath: 3799 callbacks suppressed
swapper: page allocation failure. order:1, mode:0x4020
Pid: 0, comm: swapper Not tainted 2.6.34-pentoo #5
Call Trace:
 <IRQ>  [<ffffffff8109cb74>] __alloc_pages_nodemask+0x571/0x5b9
 [<ffffffff816732e9>] ? skb_release_data+0xc4/0xc9
 [<ffffffffa04701e4>] iwlagn_rx_allocate+0x98/0x25a [iwlagn]
Next driver runs out of memory.

Note that the above are all atomic allocations that fail and should be
able to recover.
Is your system low on memory? Are you running applications that take a
lot of memory? Does your wifi connection drop or otherwise suffer at the
time you see these messages?

I have 4GB of RAM on this system, I often run a VM which wastes like half that but that still leaves 2GB for linux and I'm running XFCE4 so not exactly a memory hog. It's possible that firefox leaks ram until I'm out but that would be a LOT of leak, much more than I usually see.

There has been an issue with atomic memory allocations ever since
2.6.31. This used to be easy to trigger with iwlagn, but we fixed a
number of issues. There are still issue with any atomic memory
allocation (not just iwlagn) and this issue is still open. You can find
more information at https://bugzilla.kernel.org/show_bug.cgi?id=14141

Yeah, as you may guess these errors cause my wifi connection to slow drastically.

The driver, when unable to allocate memory atomically, will reattempt
the allocation later when it can use GFP_KERNEL. I think there may be
ways in which we can try to optimize this since right now it will only
schedule this when there are about 8 buffers remaining. I was looking at
your trace again and even though you state "Kernel 2.6.34 using
compat-wireless stable 2.6.35-rc2" ... the trace you provide does not
seem to match the driver code from 2.6.35-rc2. Could you please confirm
which version of driver you are running so that I can prepare a patch?

There were two compat-wireless releases for 2.6.35_rc2 because Luis had asked me to test and then he changed it for the official release. I'll use the official 2.6.35_rc2 release for the current testing so if there are any patches you wish to toss my way please base them on that. The other option is you tell me what to do, I can run any kernel, any git snapshot, whatever you say. Like I said, all I have to do is download something or transfer something large so it is pretty easily reproducible here so I'll test whatever you like.

Thanks,
Rick Farina
If I had to guess, since this happens when I make a large file transfer it is likely that something related is leaking RAM. I'm using wget or axel to download and NFS to dump the files on a NAS. I'll try to trigger this again

Does this happen every time you run this test? I would like to get an
idea whether we will get a clear indication whether our changes will
help or not.

and watch memory usage to see if I can find something other than the driver that could be leaking. Failing that, what do I need to enable to find a leak in the driver?

Perhaps kmemleak?

Reinette





--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux