public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] SLUB: detach SLUB_DEBUG and SYSFS
@ 2008-08-01  0:04 Alexey Dobriyan
  2008-08-01 13:28 ` Christoph Lameter
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Alexey Dobriyan @ 2008-08-01  0:04 UTC (permalink / raw)
  To: penberg, cl; +Cc: akpm, linux-kernel

Right now, SYSFS=n means no SLUB debugging, no even basic poisoning,
to hell with tunables.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 init/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/init/Kconfig
+++ b/init/Kconfig
@@ -736,7 +736,7 @@ config VM_EVENT_COUNTERS
 config SLUB_DEBUG
 	default y
 	bool "Enable SLUB debugging support" if EMBEDDED
-	depends on SLUB && SYSFS
+	depends on SLUB
 	help
 	  SLUB has extensive debug support features. Disabling these can
 	  result in significant savings in code size. This also disables


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] SLUB: detach SLUB_DEBUG and SYSFS
  2008-08-01  0:04 [PATCH] SLUB: detach SLUB_DEBUG and SYSFS Alexey Dobriyan
@ 2008-08-01 13:28 ` Christoph Lameter
  2008-08-02  8:34 ` Pekka Enberg
  2008-08-03 18:28 ` Max Krasnyansky
  2 siblings, 0 replies; 9+ messages in thread
From: Christoph Lameter @ 2008-08-01 13:28 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: penberg, akpm, linux-kernel

Alexey Dobriyan wrote:
> Right now, SYSFS=n means no SLUB debugging, no even basic poisoning,
> to hell with tunables.

True. We did this because otherwise we would have complex #ifdeffery in slub.

commit f6acb63508700b5f8cd817082b62c96ba907775e
Author: Christoph Lameter <clameter@sgi.com>
Date:   Tue Apr 29 16:16:06 2008 -0700

    slub: #ifdef simplification

    If we make SLUB_DEBUG depend on SYSFS then we can simplify some
    #ifdefs and avoid others.

    Signed-off-by: Christoph Lameter <clameter@sgi.com>
    Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] SLUB: detach SLUB_DEBUG and SYSFS
  2008-08-01  0:04 [PATCH] SLUB: detach SLUB_DEBUG and SYSFS Alexey Dobriyan
  2008-08-01 13:28 ` Christoph Lameter
@ 2008-08-02  8:34 ` Pekka Enberg
  2008-08-04 13:23   ` Christoph Lameter
  2008-08-03 18:28 ` Max Krasnyansky
  2 siblings, 1 reply; 9+ messages in thread
From: Pekka Enberg @ 2008-08-02  8:34 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: cl, akpm, linux-kernel

Alexey Dobriyan wrote:
> Right now, SYSFS=n means no SLUB debugging, no even basic poisoning,
> to hell with tunables.

Applied, thanks!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] SLUB: detach SLUB_DEBUG and SYSFS
  2008-08-01  0:04 [PATCH] SLUB: detach SLUB_DEBUG and SYSFS Alexey Dobriyan
  2008-08-01 13:28 ` Christoph Lameter
  2008-08-02  8:34 ` Pekka Enberg
@ 2008-08-03 18:28 ` Max Krasnyansky
  2 siblings, 0 replies; 9+ messages in thread
From: Max Krasnyansky @ 2008-08-03 18:28 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: penberg, cl, akpm, linux-kernel



Alexey Dobriyan wrote:
> Right now, SYSFS=n means no SLUB debugging, no even basic poisoning,
> to hell with tunables.
> 
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> ---
> 
>  init/Kconfig |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- a/init/Kconfig
> +++ b/init/Kconfig
> @@ -736,7 +736,7 @@ config VM_EVENT_COUNTERS
>  config SLUB_DEBUG
>  	default y
>  	bool "Enable SLUB debugging support" if EMBEDDED
> -	depends on SLUB && SYSFS
> +	depends on SLUB
>  	help
>  	  SLUB has extensive debug support features. Disabling these can
>  	  result in significant savings in code size. This also disables

While at it, can you guys move this into lib/Kconfig.debug ?

Max

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] SLUB: detach SLUB_DEBUG and SYSFS
  2008-08-02  8:34 ` Pekka Enberg
@ 2008-08-04 13:23   ` Christoph Lameter
  2008-08-04 14:10     ` Pekka Enberg
  0 siblings, 1 reply; 9+ messages in thread
From: Christoph Lameter @ 2008-08-04 13:23 UTC (permalink / raw)
  To: Pekka Enberg; +Cc: Alexey Dobriyan, akpm, linux-kernel

Pekka Enberg wrote:
> Alexey Dobriyan wrote:
>> Right now, SYSFS=n means no SLUB debugging, no even basic poisoning,
>> to hell with tunables.
> 
> Applied, thanks!

Do not apply. This partially reverts an earlier commit and would cause build
issues because the #ifdef parts in slub.c were not reverted.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] SLUB: detach SLUB_DEBUG and SYSFS
  2008-08-04 13:23   ` Christoph Lameter
@ 2008-08-04 14:10     ` Pekka Enberg
  2008-08-04 22:02       ` Alexey Dobriyan
  0 siblings, 1 reply; 9+ messages in thread
From: Pekka Enberg @ 2008-08-04 14:10 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: Alexey Dobriyan, akpm, linux-kernel

Christoph Lameter wrote:
> Pekka Enberg wrote:
>> Alexey Dobriyan wrote:
>>> Right now, SYSFS=n means no SLUB debugging, no even basic poisoning,
>>> to hell with tunables.
>> Applied, thanks!
> 
> Do not apply. This partially reverts an earlier commit and would cause build
> issues because the #ifdef parts in slub.c were not reverted.

Aww, crap. OK, taking it out.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] SLUB: detach SLUB_DEBUG and SYSFS
  2008-08-04 14:10     ` Pekka Enberg
@ 2008-08-04 22:02       ` Alexey Dobriyan
  2008-08-04 22:06         ` Pekka Enberg
  2008-08-05 14:33         ` Christoph Lameter
  0 siblings, 2 replies; 9+ messages in thread
From: Alexey Dobriyan @ 2008-08-04 22:02 UTC (permalink / raw)
  To: Pekka Enberg; +Cc: Christoph Lameter, akpm, linux-kernel

On Mon, Aug 04, 2008 at 05:10:37PM +0300, Pekka Enberg wrote:
> Christoph Lameter wrote:
>> Pekka Enberg wrote:
>>> Alexey Dobriyan wrote:
>>>> Right now, SYSFS=n means no SLUB debugging, no even basic poisoning,
>>>> to hell with tunables.
>>> Applied, thanks!
>> Do not apply. This partially reverts an earlier commit and would cause 
>> build
>> issues because the #ifdef parts in slub.c were not reverted.
>
> Aww, crap. OK, taking it out.

OK, I'll test-compile it to death.

For now, do you agree that SYSFS=n users shouldn't be discriminated
against poisoning?

As real world situation, NET_NS feature which is currently in
active development doesn't work with SYSFS, so it was a bit of cold
shower to realise that I did much testing of conntracking in netns
without poisoning. :-(


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] SLUB: detach SLUB_DEBUG and SYSFS
  2008-08-04 22:02       ` Alexey Dobriyan
@ 2008-08-04 22:06         ` Pekka Enberg
  2008-08-05 14:33         ` Christoph Lameter
  1 sibling, 0 replies; 9+ messages in thread
From: Pekka Enberg @ 2008-08-04 22:06 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: Christoph Lameter, akpm, linux-kernel

Alexey Dobriyan wrote:
> OK, I'll test-compile it to death.
> 
> For now, do you agree that SYSFS=n users shouldn't be discriminated
> against poisoning?
> 
> As real world situation, NET_NS feature which is currently in
> active development doesn't work with SYSFS, so it was a bit of cold
> shower to realise that I did much testing of conntracking in netns
> without poisoning. :-(

I'm okay with that as long as it doesn't break the build :-)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] SLUB: detach SLUB_DEBUG and SYSFS
  2008-08-04 22:02       ` Alexey Dobriyan
  2008-08-04 22:06         ` Pekka Enberg
@ 2008-08-05 14:33         ` Christoph Lameter
  1 sibling, 0 replies; 9+ messages in thread
From: Christoph Lameter @ 2008-08-05 14:33 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: Pekka Enberg, akpm, linux-kernel

Alexey Dobriyan wrote:
> On Mon, Aug 04, 2008 at 05:10:37PM +0300, Pekka Enberg wrote:
>> Christoph Lameter wrote:
>>> Pekka Enberg wrote:
>>>> Alexey Dobriyan wrote:
>>>>> Right now, SYSFS=n means no SLUB debugging, no even basic poisoning,
>>>>> to hell with tunables.
>>>> Applied, thanks!
>>> Do not apply. This partially reverts an earlier commit and would cause 
>>> build
>>> issues because the #ifdef parts in slub.c were not reverted.
>> Aww, crap. OK, taking it out.
> 
> OK, I'll test-compile it to death.

Not sure what the point would be. If you look at the commit you are reverting
then its clear what configurations will break,

> For now, do you agree that SYSFS=n users shouldn't be discriminated
> against poisoning?

If you want a minimal memory footprint then I thought that also implies that
the debug code would not be compiled in?

> As real world situation, NET_NS feature which is currently in
> active development doesn't work with SYSFS, so it was a bit of cold
> shower to realise that I did much testing of conntracking in netns
> without poisoning. :-(

Ohh.. There are kernel features that conflict with SYSFS?




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-08-05 14:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-01  0:04 [PATCH] SLUB: detach SLUB_DEBUG and SYSFS Alexey Dobriyan
2008-08-01 13:28 ` Christoph Lameter
2008-08-02  8:34 ` Pekka Enberg
2008-08-04 13:23   ` Christoph Lameter
2008-08-04 14:10     ` Pekka Enberg
2008-08-04 22:02       ` Alexey Dobriyan
2008-08-04 22:06         ` Pekka Enberg
2008-08-05 14:33         ` Christoph Lameter
2008-08-03 18:28 ` Max Krasnyansky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox