[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170724135946.srzjfrjfnv6oldjc@armageddon.cambridge.arm.com>
Date: Mon, 24 Jul 2017 14:59:47 +0100
From: Catalin Marinas <catalin.marinas@....com>
To: shuwang@...hat.com
Cc: corbet@....net, akpm@...ux-foundation.org,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: Re: [PATCH v2] kmemleak: add oom=<disable|ignore> runtime parameter
On Mon, Jul 24, 2017 at 05:16:34PM +0800, shuwang@...hat.com wrote:
> When running memory stress tests, kmemleak could be easily disabled in
> function create_object as system is out of memory and kmemleak failed to
> alloc from object_cache. Since there's no way to enable kmemleak after
> it's off, simply ignore the object_cache alloc failure will just loses
> track of some memory objects, but could increase the usability of kmemleak
> under memory stress.
I wonder how usable kmemleak is when not recording all the allocated
objects. If some of these memory blocks contain references to others,
such referenced objects could be reported as leaks (basically increasing
the false positives rate).
--
Catalin
Powered by blists - more mailing lists