* [PATCH] mm: kmemleak: Change kmemleak default buffer size [not found] <AANLkTimb7rP0rS0OU8nan5uNEhHx_kEYL99ImZ3c8o0D@mail.gmail.com> @ 2010-06-22 6:59 ` Sankar P 2010-06-22 8:11 ` Pekka Enberg 2010-06-22 16:55 ` [PATCH] mm: kmemleak: Change kmemleak default buffer size Luis R. Rodriguez 0 siblings, 2 replies; 12+ messages in thread From: Sankar P @ 2010-06-22 6:59 UTC (permalink / raw) To: linux-kernel Cc: lethal, linux-sh, lrodriguez, penberg, catalin.marinas, rnagarajan, teheo, linux-mm, Sankar P If we try to find the memory leaks in kernel that is compiled with 'make defconfig', the default buffer size seem to be inadequate. Change the buffer size from 400 to 1000, which is sufficient in most cases. Signed-off-by: Sankar P <sankar.curiosity@gmail.com> --- arch/sh/configs/sh7785lcr_32bit_defconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/sh/configs/sh7785lcr_32bit_defconfig b/arch/sh/configs/sh7785lcr_32bit_defconfig index 71f39c7..b02e5ae 100644 --- a/arch/sh/configs/sh7785lcr_32bit_defconfig +++ b/arch/sh/configs/sh7785lcr_32bit_defconfig @@ -1710,7 +1710,7 @@ CONFIG_SCHEDSTATS=y # CONFIG_DEBUG_OBJECTS is not set # CONFIG_DEBUG_SLAB is not set CONFIG_DEBUG_KMEMLEAK=y -CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE@0 +CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE\x1000 # CONFIG_DEBUG_KMEMLEAK_TEST is not set CONFIG_DEBUG_PREEMPT=y # CONFIG_DEBUG_RT_MUTEXES is not set -- 1.6.4.2 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] mm: kmemleak: Change kmemleak default buffer size 2010-06-22 6:59 ` [PATCH] mm: kmemleak: Change kmemleak default buffer size Sankar P @ 2010-06-22 8:11 ` Pekka Enberg 2010-06-22 8:58 ` [PATCH] kmemleak: config-options: Default buffer size for kmemleak Sankar P 2010-06-22 16:55 ` [PATCH] mm: kmemleak: Change kmemleak default buffer size Luis R. Rodriguez 1 sibling, 1 reply; 12+ messages in thread From: Pekka Enberg @ 2010-06-22 8:11 UTC (permalink / raw) To: Sankar P Cc: linux-kernel, lethal, linux-sh, lrodriguez, catalin.marinas, rnagarajan, teheo, linux-mm Sankar P wrote: > If we try to find the memory leaks in kernel that is > compiled with 'make defconfig', the default buffer size > seem to be inadequate. Change the buffer size from > 400 to 1000, which is sufficient in most cases. > > Signed-off-by: Sankar P <sankar.curiosity@gmail.com> > --- > arch/sh/configs/sh7785lcr_32bit_defconfig | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/sh/configs/sh7785lcr_32bit_defconfig b/arch/sh/configs/sh7785lcr_32bit_defconfig > index 71f39c7..b02e5ae 100644 > --- a/arch/sh/configs/sh7785lcr_32bit_defconfig > +++ b/arch/sh/configs/sh7785lcr_32bit_defconfig > @@ -1710,7 +1710,7 @@ CONFIG_SCHEDSTATS=y > # CONFIG_DEBUG_OBJECTS is not set > # CONFIG_DEBUG_SLAB is not set > CONFIG_DEBUG_KMEMLEAK=y > -CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE@0 > +CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE\x1000 > # CONFIG_DEBUG_KMEMLEAK_TEST is not set > CONFIG_DEBUG_PREEMPT=y > # CONFIG_DEBUG_RT_MUTEXES is not set I'm pretty sure you want to do this change in lib/Kconfig.debug. ^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] kmemleak: config-options: Default buffer size for kmemleak 2010-06-22 8:11 ` Pekka Enberg @ 2010-06-22 8:58 ` Sankar P 2010-06-22 11:31 ` Paul Mundt 0 siblings, 1 reply; 12+ messages in thread From: Sankar P @ 2010-06-22 8:58 UTC (permalink / raw) To: penberg Cc: lethal, linux-sh, linux-kernel, lrodriguez, catalin.marinas, rnagarajan, teheo, linux-mm, paulmck, mingo, akpm, Sankar P If we try to find the memory leaks in kernel that is compiled with 'make defconfig', the default buffer size of DEBUG_KMEMLEAK_EARLY_LOG_SIZE seem to be inadequate. Change the buffer size from 400 to 1000, which is sufficient for most cases. Signed-off-by: Sankar P <sankar.curiosity@gmail.com> --- Thanks to Pekka Enberg's comments on my previous mail, I am sending a better patch, and adding new reviewers as suggested by the get_maintainer script. lib/Kconfig.debug | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index e722e9d..5eb9463 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -382,7 +382,7 @@ config DEBUG_KMEMLEAK_EARLY_LOG_SIZE int "Maximum kmemleak early log entries" depends on DEBUG_KMEMLEAK range 200 40000 - default 400 + default 1000 help Kmemleak must track all the memory allocations to avoid reporting false positives. Since memory may be allocated or -- 1.6.4.2 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] kmemleak: config-options: Default buffer size for kmemleak 2010-06-22 8:58 ` [PATCH] kmemleak: config-options: Default buffer size for kmemleak Sankar P @ 2010-06-22 11:31 ` Paul Mundt 2010-06-22 12:05 ` [PATCH] kmemleak: config-options: Default buffer size for Catalin Marinas 0 siblings, 1 reply; 12+ messages in thread From: Paul Mundt @ 2010-06-22 11:31 UTC (permalink / raw) To: Sankar P Cc: penberg, linux-sh, linux-kernel, lrodriguez, catalin.marinas, rnagarajan, teheo, linux-mm, paulmck, mingo, akpm On Tue, Jun 22, 2010 at 02:16:43PM +0530, Sankar P wrote: > If we try to find the memory leaks in kernel that is > compiled with 'make defconfig', the default buffer size > of DEBUG_KMEMLEAK_EARLY_LOG_SIZE seem to be inadequate. > > Change the buffer size from 400 to 1000, > which is sufficient for most cases. > Or you could just bump it up in your config where you seem to be hitting this problem. The default of 400 is sufficient for most people, so bloating it up for a corner case seems a bit premature. Perhaps eventually we'll have no choice and have to tolerate the bloat, as we did with LOG_BUF_SHIFT, but it's not obvious that we've hit that point with kmemleak yet. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] kmemleak: config-options: Default buffer size for 2010-06-22 11:31 ` Paul Mundt @ 2010-06-22 12:05 ` Catalin Marinas 2010-06-22 12:14 ` [PATCH] kmemleak: config-options: Default buffer size for kmemleak Paul Mundt 2010-06-22 12:21 ` [PATCH] kmemleak: config-options: Default buffer size for Pekka Enberg 0 siblings, 2 replies; 12+ messages in thread From: Catalin Marinas @ 2010-06-22 12:05 UTC (permalink / raw) To: Paul Mundt Cc: Sankar P, penberg, linux-sh, linux-kernel, lrodriguez, rnagarajan, teheo, linux-mm, paulmck, mingo, akpm On Tue, 2010-06-22 at 12:31 +0100, Paul Mundt wrote: > On Tue, Jun 22, 2010 at 02:16:43PM +0530, Sankar P wrote: > > If we try to find the memory leaks in kernel that is > > compiled with 'make defconfig', the default buffer size > > of DEBUG_KMEMLEAK_EARLY_LOG_SIZE seem to be inadequate. > > > > Change the buffer size from 400 to 1000, > > which is sufficient for most cases. > > > Or you could just bump it up in your config where you seem to be hitting > this problem. The default of 400 is sufficient for most people, so > bloating it up for a corner case seems a bit premature. Perhaps > eventually we'll have no choice and have to tolerate the bloat, as we did > with LOG_BUF_SHIFT, but it's not obvious that we've hit that point with > kmemleak yet. I agree. The 400 seems to be sufficient with standard kernel configurations (I usually try some of the Ubuntu configs on x86). The error message is hopefully clear enough about what needs to be changed. The defconfig change for this specific platform may be a better option but I thought defconfigs are to provide a stable (and maybe close to optimal) configuration without all the debugging features enabled (especially those slowing things down considerably). -- Catalin ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] kmemleak: config-options: Default buffer size for kmemleak 2010-06-22 12:05 ` [PATCH] kmemleak: config-options: Default buffer size for Catalin Marinas @ 2010-06-22 12:14 ` Paul Mundt 2010-06-22 12:21 ` [PATCH] kmemleak: config-options: Default buffer size for Pekka Enberg 1 sibling, 0 replies; 12+ messages in thread From: Paul Mundt @ 2010-06-22 12:14 UTC (permalink / raw) To: Catalin Marinas Cc: Sankar P, penberg, linux-sh, linux-kernel, lrodriguez, rnagarajan, teheo, linux-mm, paulmck, mingo, akpm On Tue, Jun 22, 2010 at 01:05:51PM +0100, Catalin Marinas wrote: > On Tue, 2010-06-22 at 12:31 +0100, Paul Mundt wrote: > > On Tue, Jun 22, 2010 at 02:16:43PM +0530, Sankar P wrote: > > > If we try to find the memory leaks in kernel that is > > > compiled with 'make defconfig', the default buffer size > > > of DEBUG_KMEMLEAK_EARLY_LOG_SIZE seem to be inadequate. > > > > > > Change the buffer size from 400 to 1000, > > > which is sufficient for most cases. > > > > > Or you could just bump it up in your config where you seem to be hitting > > this problem. The default of 400 is sufficient for most people, so > > bloating it up for a corner case seems a bit premature. Perhaps > > eventually we'll have no choice and have to tolerate the bloat, as we did > > with LOG_BUF_SHIFT, but it's not obvious that we've hit that point with > > kmemleak yet. > > I agree. The 400 seems to be sufficient with standard kernel > configurations (I usually try some of the Ubuntu configs on x86). The > error message is hopefully clear enough about what needs to be changed. > > The defconfig change for this specific platform may be a better option > but I thought defconfigs are to provide a stable (and maybe close to > optimal) configuration without all the debugging features enabled > (especially those slowing things down considerably). > I would be fine with that, but I don't see any correlation between the posted dmesg and the defconfig? I've run the config in question without hitting problems, so I'm a bit confused as to why that particular config was singled out. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] kmemleak: config-options: Default buffer size for 2010-06-22 12:05 ` [PATCH] kmemleak: config-options: Default buffer size for Catalin Marinas 2010-06-22 12:14 ` [PATCH] kmemleak: config-options: Default buffer size for kmemleak Paul Mundt @ 2010-06-22 12:21 ` Pekka Enberg 2010-06-22 12:35 ` Catalin Marinas 1 sibling, 1 reply; 12+ messages in thread From: Pekka Enberg @ 2010-06-22 12:21 UTC (permalink / raw) To: Catalin Marinas Cc: Paul Mundt, Sankar P, linux-sh, linux-kernel, lrodriguez, rnagarajan, teheo, linux-mm, paulmck, mingo, akpm On Tue, Jun 22, 2010 at 3:05 PM, Catalin Marinas <catalin.marinas@arm.com> wrote: > The defconfig change for this specific platform may be a better option > but I thought defconfigs are to provide a stable (and maybe close to > optimal) configuration without all the debugging features enabled > (especially those slowing things down considerably). The defconfig change was definitely not a clean solution to this problem. Better bake the fix in Kconfig proper even if it means dependency on CONFIG_SH or something. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] kmemleak: config-options: Default buffer size for 2010-06-22 12:21 ` [PATCH] kmemleak: config-options: Default buffer size for Pekka Enberg @ 2010-06-22 12:35 ` Catalin Marinas 2010-06-22 12:41 ` Pekka Enberg 0 siblings, 1 reply; 12+ messages in thread From: Catalin Marinas @ 2010-06-22 12:35 UTC (permalink / raw) To: Pekka Enberg Cc: Paul Mundt, Sankar P, linux-sh, linux-kernel, lrodriguez, rnagarajan, teheo, linux-mm, paulmck, mingo, akpm On Tue, 2010-06-22 at 13:21 +0100, Pekka Enberg wrote: > On Tue, Jun 22, 2010 at 3:05 PM, Catalin Marinas > <catalin.marinas@arm.com> wrote: > > The defconfig change for this specific platform may be a better option > > but I thought defconfigs are to provide a stable (and maybe close to > > optimal) configuration without all the debugging features enabled > > (especially those slowing things down considerably). > > The defconfig change was definitely not a clean solution to this > problem. Better bake the fix in Kconfig proper even if it means > dependency on CONFIG_SH or something. OK, maybe something like this default 1000 if SH default 400 It seems that kbuild only considers the first encounter of "default". Thanks. -- Catalin ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] kmemleak: config-options: Default buffer size for 2010-06-22 12:35 ` Catalin Marinas @ 2010-06-22 12:41 ` Pekka Enberg 0 siblings, 0 replies; 12+ messages in thread From: Pekka Enberg @ 2010-06-22 12:41 UTC (permalink / raw) To: Catalin Marinas Cc: Paul Mundt, Sankar P, linux-sh, linux-kernel, lrodriguez, rnagarajan, teheo, linux-mm, paulmck, mingo, akpm On Tue, Jun 22, 2010 at 3:35 PM, Catalin Marinas <catalin.marinas@arm.com> wrote: > On Tue, 2010-06-22 at 13:21 +0100, Pekka Enberg wrote: >> On Tue, Jun 22, 2010 at 3:05 PM, Catalin Marinas >> <catalin.marinas@arm.com> wrote: >> > The defconfig change for this specific platform may be a better option >> > but I thought defconfigs are to provide a stable (and maybe close to >> > optimal) configuration without all the debugging features enabled >> > (especially those slowing things down considerably). >> >> The defconfig change was definitely not a clean solution to this >> problem. Better bake the fix in Kconfig proper even if it means >> dependency on CONFIG_SH or something. > > OK, maybe something like this > > default 1000 if SH > default 400 > > It seems that kbuild only considers the first encounter of "default". Sure, I'm fine with that. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] mm: kmemleak: Change kmemleak default buffer size 2010-06-22 6:59 ` [PATCH] mm: kmemleak: Change kmemleak default buffer size Sankar P 2010-06-22 8:11 ` Pekka Enberg @ 2010-06-22 16:55 ` Luis R. Rodriguez 2010-06-24 7:43 ` Sankar P 1 sibling, 1 reply; 12+ messages in thread From: Luis R. Rodriguez @ 2010-06-22 16:55 UTC (permalink / raw) To: Sankar P Cc: linux-kernel@vger.kernel.org, lethal@linux-sh.org, linux-sh@vger.kernel.org, Luis Rodriguez, penberg@cs.helsinki.fi, catalin.marinas@arm.com, rnagarajan@novell.com, teheo@novell.com, linux-mm@kvack.org On Mon, Jun 21, 2010 at 11:58:29PM -0700, Sankar P wrote: > If we try to find the memory leaks in kernel that is > compiled with 'make defconfig', the default buffer size > seem to be inadequate. Change the buffer size from > 400 to 1000, which is sufficient in most cases. > > Signed-off-by: Sankar P <sankar.curiosity@gmail.com> What's your full name? Please read the "Developer's Certificate of Origin 1.1" It says: then you just add a line saying Signed-off-by: Random J Developer <random@developer.example.org> using your real name (sorry, no pseudonyms or anonymous contributions.) Also you may want to post on a new thread instead of using this old thread unless the maintainer is reading this and wants to pick it up. Luis > --- > arch/sh/configs/sh7785lcr_32bit_defconfig | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/sh/configs/sh7785lcr_32bit_defconfig b/arch/sh/configs/sh7785lcr_32bit_defconfig > index 71f39c7..b02e5ae 100644 > --- a/arch/sh/configs/sh7785lcr_32bit_defconfig > +++ b/arch/sh/configs/sh7785lcr_32bit_defconfig > @@ -1710,7 +1710,7 @@ CONFIG_SCHEDSTATS=y > # CONFIG_DEBUG_OBJECTS is not set > # CONFIG_DEBUG_SLAB is not set > CONFIG_DEBUG_KMEMLEAK=y > -CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE@0 > +CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE\x1000 > # CONFIG_DEBUG_KMEMLEAK_TEST is not set > CONFIG_DEBUG_PREEMPT=y > # CONFIG_DEBUG_RT_MUTEXES is not set > -- > 1.6.4.2 > ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] mm: kmemleak: Change kmemleak default buffer size 2010-06-22 16:55 ` [PATCH] mm: kmemleak: Change kmemleak default buffer size Luis R. Rodriguez @ 2010-06-24 7:43 ` Sankar P 2010-06-24 18:56 ` Luis R. Rodriguez 0 siblings, 1 reply; 12+ messages in thread From: Sankar P @ 2010-06-24 7:43 UTC (permalink / raw) To: Luis R. Rodriguez Cc: linux-kernel@vger.kernel.org, lethal@linux-sh.org, linux-sh@vger.kernel.org, Luis Rodriguez, penberg@cs.helsinki.fi, catalin.marinas@arm.com, rnagarajan@novell.com, teheo@novell.com, linux-mm@kvack.org On Tue, Jun 22, 2010 at 10:25 PM, Luis R. Rodriguez <lrodriguez@atheros.com> wrote: > On Mon, Jun 21, 2010 at 11:58:29PM -0700, Sankar P wrote: >> If we try to find the memory leaks in kernel that is >> compiled with 'make defconfig', the default buffer size >> seem to be inadequate. Change the buffer size from >> 400 to 1000, which is sufficient in most cases. >> >> Signed-off-by: Sankar P <sankar.curiosity@gmail.com> > > What's your full name? Please read the "Developer's Certificate of Origin 1.1" > It says: > > then you just add a line saying > > Signed-off-by: Random J Developer <random@developer.example.org> > > using your real name (sorry, no pseudonyms or anonymous contributions.) > > > Also you may want to post on a new thread instead of using this old thread > unless the maintainer is reading this and wants to pick it up. > In our part of the world, we dont have lastnames. We just use the first letter of our father's name as the last name. I will send the updated patch as a new mail, I thought it will be easier to follow if all mails belongs to the same thread. Thanks > Luis > >> --- >> arch/sh/configs/sh7785lcr_32bit_defconfig | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/arch/sh/configs/sh7785lcr_32bit_defconfig b/arch/sh/configs/sh7785lcr_32bit_defconfig >> index 71f39c7..b02e5ae 100644 >> --- a/arch/sh/configs/sh7785lcr_32bit_defconfig >> +++ b/arch/sh/configs/sh7785lcr_32bit_defconfig >> @@ -1710,7 +1710,7 @@ CONFIG_SCHEDSTATS=y >> # CONFIG_DEBUG_OBJECTS is not set >> # CONFIG_DEBUG_SLAB is not set >> CONFIG_DEBUG_KMEMLEAK=y >> -CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE@0 >> +CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE\x1000 >> # CONFIG_DEBUG_KMEMLEAK_TEST is not set >> CONFIG_DEBUG_PREEMPT=y >> # CONFIG_DEBUG_RT_MUTEXES is not set >> -- >> 1.6.4.2 >> > -- Sankar P http://psankar.blogspot.com ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] mm: kmemleak: Change kmemleak default buffer size 2010-06-24 7:43 ` Sankar P @ 2010-06-24 18:56 ` Luis R. Rodriguez 0 siblings, 0 replies; 12+ messages in thread From: Luis R. Rodriguez @ 2010-06-24 18:56 UTC (permalink / raw) To: Sankar P Cc: Luis Rodriguez, linux-kernel@vger.kernel.org, lethal@linux-sh.org, linux-sh@vger.kernel.org, penberg@cs.helsinki.fi, catalin.marinas@arm.com, rnagarajan@novell.com, teheo@novell.com, linux-mm@kvack.org On Thu, Jun 24, 2010 at 12:31:11AM -0700, Sankar P wrote: > On Tue, Jun 22, 2010 at 10:25 PM, Luis R. Rodriguez > <lrodriguez@atheros.com> wrote: > > On Mon, Jun 21, 2010 at 11:58:29PM -0700, Sankar P wrote: > >> If we try to find the memory leaks in kernel that is > >> compiled with 'make defconfig', the default buffer size > >> seem to be inadequate. Change the buffer size from > >> 400 to 1000, which is sufficient in most cases. > >> > >> Signed-off-by: Sankar P <sankar.curiosity@gmail.com> > > > > What's your full name? Please read the "Developer's Certificate of Origin 1.1" > > It says: > > > > then you just add a line saying > > > > Signed-off-by: Random J Developer <random@developer.example.org> > > > > using your real name (sorry, no pseudonyms or anonymous contributions.) > > > > > > Also you may want to post on a new thread instead of using this old thread > > unless the maintainer is reading this and wants to pick it up. > > > > In our part of the world, we dont have lastnames. We just use the > first letter of our father's name as the last name. Oh wow, what part of the world is that? Interesting. > I will send the updated patch as a new mail, I thought it will be > easier to follow if all mails belongs to the same thread. It does help in-thread, but patches should be sent separately unless you know for sure the maintainer *will* read this. Luis ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2010-06-24 18:56 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <AANLkTimb7rP0rS0OU8nan5uNEhHx_kEYL99ImZ3c8o0D@mail.gmail.com>
2010-06-22 6:59 ` [PATCH] mm: kmemleak: Change kmemleak default buffer size Sankar P
2010-06-22 8:11 ` Pekka Enberg
2010-06-22 8:58 ` [PATCH] kmemleak: config-options: Default buffer size for kmemleak Sankar P
2010-06-22 11:31 ` Paul Mundt
2010-06-22 12:05 ` [PATCH] kmemleak: config-options: Default buffer size for Catalin Marinas
2010-06-22 12:14 ` [PATCH] kmemleak: config-options: Default buffer size for kmemleak Paul Mundt
2010-06-22 12:21 ` [PATCH] kmemleak: config-options: Default buffer size for Pekka Enberg
2010-06-22 12:35 ` Catalin Marinas
2010-06-22 12:41 ` Pekka Enberg
2010-06-22 16:55 ` [PATCH] mm: kmemleak: Change kmemleak default buffer size Luis R. Rodriguez
2010-06-24 7:43 ` Sankar P
2010-06-24 18:56 ` Luis R. Rodriguez
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).