Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2017 10:05:11 +0100
From:      Dave Cottlehuber <dch@skunkwerks.at>
To:        freebsd-wireless@freebsd.org
Subject:   ifconfig(8) consumes all RAM when rtwn is present
Message-ID:  <1485767111.2677905.863819712.63FF232E@webmail.messagingengine.com>

next in thread | raw e-mail | index | archive | help
When the rtwn adapter is plugged in, ifconfig consumes all available
RAM, whether at boot, or later on from a "clean" boot:

dmesg[1] snippet at point where edimax wifi adapter [2] is plugged in:

ugen0.3: <vendor 0x7392 product 0x7811> at usbus0
rtwn0 on uhub0
rtwn0: <vendor 0x7392 product 0x7811, class 0/0, rev 2.00/2.00, addr 7>
on usbus0
rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
wlan0: Ethernet address: 74:da:38:7e:e6:e0
swap_pager: out of swap space
swap_pager_getswapspace(16): failed
pid 62971 (ifconfig), uid 0, was killed: out of swap space
pid 57669 (unbound), uid 59, was killed: out of swap space

swap_pager: out of swap space
swap_pager_getswapspace(16): failed

This also occurs at boot[3]:

info via top:

Mem: 13G active, 28K inactive, 2208M Laundry, 471M Wired, 1584K Buf, 61M
free
ARC: 86M Total, 564K MFU, 81M MRU, 148K Anon, 960 Header, 3181K Other
Swap: 4056M Total, 4056M Used, K Free, 100% Inuse

top's ifconfig line:
SIZE: 98323M
RES: 4061M
SWAP: 0K

- h/w is a macbook pro 15" retina, 16GiB RAM, normally I run swap-less
but atm 4GiB swap configured to catch this error
- built from the drm-next branch
https://github.com/FreeBSDDesktop/freebsd-base-graphics/commit/a86fc44
from 2017/01/28
- 100% reproducible on every boot and every time EW-7811UN is inserted

If I remove the rtwn USB-based thumb NIC then this doesn't happen.

[1]: https://gist.github.com/dch/e7b01cdcc0bbfd57b2899999e1e5fdd2
[2]:
https://www.alternate.co.uk/Edimax/EW-7811Un-WLAN-Adapter/html/product/154657?
[3]: https://usercontent.irccloud-cdn.com/file/ylyhzEWq/1485762701.JPG

I will try latest FreeBSD -current today, in case there's any difference
in behaviour from the FreeBSDDesktop branch I am currently using.

A+
Dave



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1485767111.2677905.863819712.63FF232E>