Search Linux Wireless

Re: [PATCH] libipw: split ieee->networks into small pieces

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

 



On Mon, 2010-03-08 at 16:01 +0800, Johannes Berg wrote:
> On Mon, 2010-03-08 at 13:18 +0800, Zhu Yi wrote:
> > The ieee->networks consists of 128 struct libipw_network entries. If
> > we allocate this chunk of memory altogether, it ends up with an
> > order 4 page allocation. High order page allocation is likely to
> fail
> > on system high load. This patch splits the big chunk memory
> allocation
> > into small pieces, each is 344 bytes, allocates them with 128 times.
> > 
> > The patch fixed bug http://bugzilla.kernel.org/show_bug.cgi?id=14989
> 
> Could it use cfg80211's scan list stuff and the wext handlers for
> scanning there? 

Probably yes. It all depends on how we organize the network list
internally. The ipw firmware sends raw management frames (assoc, beacon,
etc) to driver directly. So We can use cfg80211_bss to track beacons.
But it can require some effort since libipw_network is used throughout
libipw.

Thanks,
-yi

--
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