Modify

Opened 10 years ago

Closed 10 years ago

#2403 closed defect (fixed)

madwifi memleak in ad-hoc mode

Reported by: j-nox@… Owned by: developers
Priority: normal Milestone:
Component: other Version:
Keywords: Cc:

Description

After day of work - the device do not response, 
but through the console (minicom) here these lines: 


printk: 2 messages suppressed.
swapper: page allocation failure. order:0, mode:0x20
Mem-info:
DMA per-cpu:
CPU    0: Hot: hi:    0, btch:   1 usd:   0   Cold: hi:    0, btch:   1 usd:   0
Active:93 inactive:9 dirty:0 writeback:0 unstable:0
 free:68 slab:7027 mapped:1 pagetables:18 bounce:0
DMA free:272kB min:720kB low:900kB high:1080kB active:372kB inactive:36kB present:32512kB pages_scanned:1500 all_unreclaimable? yes
lowmem_reserve[]: 0 0
DMA: 0*4kB 0*8kB 1*16kB 0*32kB 0*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 272kB
Free swap:            0kB
8192 pages of RAM
107 free pages
708 reserved pages
7027 slab pages
9 pages shared
0 pages swap cached

printk: 13 messages suppressed.
---------//--------------------

These messages repeat with different numbers in parameters. 
After reboot - all again works well. It is necessary swap?

a configuration following: 
iproute2 (tc ip) but it is not used (for the future use), 
iptables - for NAT, 
madwifi
here startup script:

#!/bin/sh
ifconfig eth0 down
cat /bin/NPE-B > /dev/ixp4xx_ucode
ifconfig eth0 10.0.1.154 netmask 255.255.255.0 up

wlanconfig ath0 create wlandev wifi0 wlanmode adhoc
iwconfig ath0 channel 6
iwconfig ath0 essid xxxx
iwconfig ath0 rate 54M

sysctl -w dev.wifi0.txantenna=1
sysctl -w dev.wifi0.rxantenna=1
sysctl -w dev.wifi0.diversity=0

ifconfig ath0 192.168.1.2 netmask 255.255.255.0 up
route add default gw 10.0.1.128
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Attachments (0)

Change History (9)

comment:1 Changed 10 years ago by anonymous

the problem only in ad-hoc mode (madwifi)
if to destroy ath0 interface, or in ap / sta mode all is good

in ad-hoc mode:
if to type cat /proc/meminfo some times - "Slab" increase each time for 1-4kb
also command "free" shows that free memory decrease with this speed

it is look like /ticket/2121.html, but patches in this ticket already applied to madwifi cource

ni = ieee80211_dup_bss(vap, wh->i_addr2, 0); in ieee80211_node.c
and 
if (ni == vap->iv_bss) {     in ieee80211_input.c
is present

comment:2 Changed 10 years ago by j-nox@…

sorry, i forgot type my email

comment:3 Changed 10 years ago by j-nox@…

I have found the localize a problem:
All works well in ad-hoc mode - if a network only between two ad-hoc stations.
If to include the third ad-hoc station - there is an "memory leak"

If third station is disconnected - memory leak is disappear
(but the "lost memory" does not return)

comment:4 Changed 10 years ago by j-nox@…

Excuse, after switching-off of the third station - some part of "leaked" memory was released, but later

comment:5 Changed 10 years ago by kaloz

  • Summary changed from ixp4xx kamikaze_7.07 After day of work - the device do not response to madwifi memleak in ad-hoc mode

comment:6 Changed 10 years ago by nbd

this should be fixed in 7.09, please verify

comment:7 Changed 10 years ago by j-nox@…

the problem is not fixed in 7.09
but on http://madwifi.org/ticket/1595 this problem is solved, i try to use this patch, maybe will help.

comment:8 Changed 10 years ago by j-nox@…

I download http://snapshots.madwifi.org/madwifi-ng/madwifi-ng-r2794-20071029.tar.gz
and install into kamikaze "by hand" - all works fine, no memleaks.

ath_rate_sample: 1.2 (svn r2794)
ath_pci: 0.9.4.5 (svn r2794)
PCI: enabling device 0000:00:02.0 (0340 -> 0342)
ath_pci: switching rfkill capability off
ath_pci: switching per-packet transmit power control off
wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36
Mbps 48Mbps 54Mbps
wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 5.6 phy 4.1 radio 3.6
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0x48000000, irq=27
ath_hal: 0.9.30.13 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF54
13, RF2133, REGOPS_FUNC)
wlan: 0.8.4.2 (svn r2794)
wlan: mac acl policy registered

comment:9 Changed 10 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

should be fixed in [9466]

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.