Messages in this thread | | | Date | Thu, 2 Feb 2006 23:00:18 -0500 | From | Kevin O'Connor <> | Subject | Re: Size-128 slab leak |
| |
On Wed, Feb 01, 2006 at 11:10:01PM -0800, Andrew Morton wrote: > "Kevin O'Connor" <kevin@koconnor.net> wrote: > > > > I have an annoying slab leak on my kernel. Every day, I lose about > > 50Megs of memory to the leak. It seems to be related to disk > > accesses, because the count only goes up noticeable around 4:00am when > > the system locate utility runs. > > > > I can tell there is a leak because /proc/slabinfo shows "size-128" > > growing continuously. For example, it currently reads: > > -mm kernels have a patch (slab-leak-detector.patch) which will help. > Here's a version for 2.6.16-rc1. It requires CONFIG_DEBUG_SLAB. Thanks.
Thanks Andrew.
I've applied the patch and found the leak. It's in kzalloc. :-)
With kzalloc inlined, however, it appears that selinux is the likely culprit. I would not have expected that.
After running updatedb I got 23530 occurrences of:
kernel: obj ffff81003f04f000/12: ffffffff801ed7b7 <selinux_inode_alloc_security+0x37/0x100>
I'm not sure how to debug selinux issues, but at least I can disable it.
-Kevin - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |