I have recently resurrected a TP-Link TD-W8980 that I was last using about 18 months ago. The first thing I did before setting it up was I upgraded to OpenWRT 18.06.2. I foolishly didn't take note of the image I was using before, but I think it might have been from LEDE 17.01.
I've noticed that there appears to be a page table leak, of about 20MB per 12 hours. The page table usage is as reported by /proc/meminfo. I've tried removing the ath9k modules and the issue still persists. The individual process memory usage reported in /proc//status doesn't appear to indicate any process that's consuming all these page tables.
My first though was to try installing the last LEDE 17.01 image and see if the problem persists, but I realised I should probably just build the latest OpenWRT and enable some debugging options to narrow down the issue. It's been a couple of years since I did any Linux kernel development, so was looking for any suggestions on suggested config options.
Is kmemleak likely to be sufficient or are there some other methods that are more likely to show where the issue is?