public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: bert hubert <ahu@ds9a.nl>
To: Andrew Morton <akpm@osdl.org>
Cc: Thomas Molina <tmolina@cablespeed.com>,
	torvalds@osdl.org, wli@holomorphy.com,
	linux-kernel@vger.kernel.org
Subject: Re: 2.6.0 performance problems
Date: Wed, 31 Dec 2003 12:25:45 +0100	[thread overview]
Message-ID: <20031231112545.GA3406@outpost.ds9a.nl> (raw)
In-Reply-To: <20031230173411.01d46876.akpm@osdl.org>

> CONFIG_DEBUG_PAGEALLOC really does hurt on small machines.  Mainly because
> it rounds the size of all slab object which are >= 128 bytes up to a full
> 4k.  So things like inodes and dentries take vastly more memory.
> 
> The other debug options are less costly.

The patch below rationalizes the Kconfig documentation for the debugging
options a bit.

 * removed one occurence of 'don't enable on production systems' as this
   would imply that the other options are safe to enable on such systems.

 * added a general warning that performance may suffer (but that you should
   enable nonetheless in case of debugging), and two specific warnings, one
   for slab poisoning, a big one for page alloc debugging.

 * some spelling, added notice about /proc/sysrq-trigger to magic SysRQ

 * Removed warning about SysRQ 'only if you know what it does' - I often ask
   people to press alt-sysrq to get debugging information, only to find that
   they have it turned off, even when I would be able to understand the
   output.

Against 2.6.0 (path is wrong), please consider applying:

--- linux-2.6.0-test11/arch/i386/Kconfig.orig	Wed Dec 31 12:03:20 2003
+++ linux-2.6.0-test11/arch/i386/Kconfig	Wed Dec 31 12:16:01 2003
@@ -1131,7 +1131,8 @@
 	bool "Kernel debugging"
 	help
 	  Say Y here if you are developing drivers or trying to debug and
-	  identify kernel problems.
+	  identify kernel problems. Enabling these features often incurs
+	  a performance hit, but will help debug problems much faster.
 
 config DEBUG_STACKOVERFLOW
 	bool "Check for stack overflows"
@@ -1143,7 +1144,7 @@
 	help
 	  Say Y here to have the kernel do limited verification on memory
 	  allocation as well as poisoning memory on free to catch use of freed
-	  memory.
+	  memory. Hurts performance.
 
 config DEBUG_IOVIRT
 	bool "Memory mapped I/O debugging"
@@ -1166,9 +1167,9 @@
 	  immediately or dump some status information). This is accomplished
 	  by pressing various keys while holding SysRq (Alt+PrintScreen). It
 	  also works on a serial console (on PC hardware at least), if you
-	  send a BREAK and then within 5 seconds a command keypress. The
-	  keys are documented in <file:Documentation/sysrq.txt>. Don't say Y
-	  unless you really know what this hack does.
+	  send a BREAK and then within 5 seconds a command keypress.
+	  Additionally, /proc/sysrq-trigger can be used. More documentation
+	  is in <file:Documentation/sysrq.txt>. 
 
 config DEBUG_SPINLOCK
 	bool "Spinlock debugging"
@@ -1180,19 +1181,18 @@
 	  deadlocks are also debuggable.
 
 config DEBUG_PAGEALLOC
-	bool "Page alloc debugging"
+	bool "Page alloc debugging (slow/resource intensive)"
 	depends on DEBUG_KERNEL
 	help
 	  Unmap pages from the kernel linear mapping after free_pages().
-	  This results in a large slowdown, but helps to find certain types
-	  of memory corruptions.
+	  This results in a large slowdown and requires a lot of memory,
+	  but helps to find certain types of memory corruptions.
 
 config DEBUG_HIGHMEM
 	bool "Highmem debugging"
 	depends on DEBUG_KERNEL && HIGHMEM
 	help
-	  This options enables addition error checking for high memory systems.
-	  Disable for production systems.
+	  This options enables additional error checking for high memory systems.
 
 config DEBUG_INFO
 	bool "Compile the kernel with debug info"


-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO

  reply	other threads:[~2003-12-31 11:25 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-29 22:07 2.6.0 performance problems Thomas Molina
2003-12-29 22:21 ` Linus Torvalds
2003-12-29 22:58   ` Thomas Molina
2003-12-29 23:04     ` Linus Torvalds
2003-12-30 14:14       ` Thomas Molina
2003-12-30 14:39         ` William Lee Irwin III
2003-12-30 21:14           ` Thomas Molina
2003-12-30 21:23             ` Linus Torvalds
2003-12-31  0:50               ` Thomas Molina
2003-12-31  1:01                 ` Linus Torvalds
2003-12-31  1:34                 ` Andrew Morton
2003-12-31 11:25                   ` bert hubert [this message]
2003-12-30 21:35             ` William Lee Irwin III
2003-12-30 23:46             ` Roger Luethi
2003-12-30 18:20         ` Linus Torvalds
2003-12-29 23:14     ` Martin Schlemmer
2003-12-30  5:09       ` William Lee Irwin III
2003-12-30 10:27         ` Thomas Molina
2003-12-29 23:25     ` David B. Stevens
2003-12-29 23:05   ` Thomas Molina
2003-12-29 23:43     ` Martin Schlemmer
2003-12-30  0:17       ` Thomas Molina
2003-12-30  1:23         ` Martin Schlemmer
2003-12-30  1:27         ` Dave Jones
2003-12-30  1:37           ` Martin Schlemmer
2003-12-30  1:40             ` Dave Jones
2003-12-30  1:49             ` Thomas Molina
2003-12-30  2:03               ` Mike Fedyk
2004-01-03 19:37     ` Bill Davidsen
2003-12-30  1:25 ` Roger Luethi
2003-12-30  1:37   ` Thomas Molina
2003-12-30 19:21     ` Andy Isaacson
2003-12-30 19:40       ` William Lee Irwin III
2003-12-30 22:24         ` Roger Luethi
2003-12-31  0:33           ` Thomas Molina
2003-12-31 10:17             ` Roger Luethi
2003-12-31 11:21               ` Jens Axboe
2003-12-31 21:03                 ` Roger Luethi
2004-01-01  1:27                   ` Thomas Molina
2004-01-01 10:23                     ` Roger Luethi
2004-01-01 23:09                 ` Roger Luethi
2004-01-02 10:11                   ` Jens Axboe
2003-12-30  1:27 ` Thomas Molina
2003-12-30  2:53   ` Thomas Molina
  -- strict thread matches above, loose matches on Subject: below --
2003-12-30 11:41 Samium Gromoff
2004-01-03 19:54 ` Bill Davidsen
     [not found] ` <200312300855.00741.edt@aei.ca>
2004-01-05 12:33   ` Samium Gromoff
2004-01-05 15:09     ` Ed Tomlinson
2004-01-06  2:23       ` David Lang
2004-01-06 14:44         ` Samium Gromoff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031231112545.GA3406@outpost.ds9a.nl \
    --to=ahu@ds9a.nl \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tmolina@cablespeed.com \
    --cc=torvalds@osdl.org \
    --cc=wli@holomorphy.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox