#14453: lantiq ar9/vr9 insmod memory leak
-------------------------+-------------------------------------------------
  Reporter:  fld@…       |      Owner:  developers
      Type:  defect      |     Status:  new
  Priority:  high        |  Milestone:  Chaos Calmer (trunk)
 Component:  kernel      |    Version:  Trunk
Resolution:              |   Keywords:  lantiq, ar9, vr9, xway, xrx200,
                         |  insmod, memory leak
-------------------------+-------------------------------------------------

Comment (by anonymous):

 The patches I use can be found at

 
https://gist.githubusercontent.com/ecsv/222d824eb163d069820f/raw/05cb2585ed4ed4875061b7f9a7851d4b3c3a6563/311
 -module_arch_freeing_init-new-hook-for-archs-before-m.patch
 
https://gist.githubusercontent.com/ecsv/353cffef547c6eb45675/raw/ea0bd27ab184136d31f3704f99c9ccdd02783646/312-mips_module_dealloc.patch

 You have to place them in the correct generic kernel patches folder like
 target/linux/generic/patches-3.18/

 I have tested it with:

 {{{
 free -m
 for i in `seq 1 100`; do
 insmod /lib/modules/*/sch_htb.ko >& /dev/null
 insmod /lib/modules/*/cls_fw.ko >& /dev/null
 insmod /lib/modules/*/cls_u32.ko >& /dev/null
 insmod /lib/modules/*/act_mirred.ko >& /dev/null
 done
 free -m
 }}}

 The lost memory (before applying the patches) with each test (100 x 4
 insmods) was a little bit over 2 MB of memory. This problem seems to be
 gone with the patches applied.

--
Ticket URL: <https://dev.openwrt.org/ticket/14453#comment:6>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to