Solved

kernel config - debug considerations

Posted on 2002-05-28
5
307 Views
Last Modified: 2013-12-16
I am customizing a kernel starting with a RedHat premade config file. I noticed kernel debug is selected as the default; however, I will be intending to use this kernel for "production" servers. What are the caveats/considerations, etc regarding this option. On one hand I want good info in the event of a problem, but not at te expense of a considerable (say 10-15%) speed hit.
0
Comment
Question by:medent
  • 2
  • 2
5 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7040030
which one do you mean?
  CONFIG_DEBUG_ERRORS
 
0
 

Author Comment

by:medent
ID: 7040051
Here is the kernel section (default redhat config)...

CONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_HIGHMEM is not set
# CONFIG_DEBUG_SLAB is not set
# CONFIG_DEBUG_IOVIRT is not set
CONFIG_MAGIC_SYSRQ=y
# CONFIG_DEBUG_SPINLOCK is not set
CONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_HIGHMEM_EMULATION is not set
CONFIG_KALLSYMS=y

0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7040104
AFAIK you may savely unset CONFIG_DEBUG_KERNEL and also CONFIG_MAGIC_SYSRQ.
Don't know about CONFIG_DEBUG_BUGVERBOSE, probaly RH special. Probably it's useless anyway if the other 2 are unset.
0
 

Author Comment

by:medent
ID: 7041425
I realize these are optional and I can safely unset them, I am looking for details to support having this on or off, what is the performance hit with debugging on, or what happens if you have a (driver,etc) problem w/o debugging on..?
0
 
LVL 2

Accepted Solution

by:
pheur earned 200 total points
ID: 7045297
CONFIG_DEBUG_BUGVERBOSE doesn't affect performance. Just takes about 100K of memory, an affordable thing these days. It sends via printk information that aids identifying a bug, after the boggy condition occurred.
CONFIG_MAGIC_SYSRQ is even recommended in production.
About support, I can't tell you anything, it's you the one that has to look in the support contract if you have something like that. Most Linux people live very happy without OS support contracts because it's either not necessary, or the skills needed to solve various problems are available in-house. I've seen LARGE companies that use Linux and only buy support for hardware.

--
Radu-Adrian Feurdean
Brainbench Linux MVP
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux tcp ports listening for testing 4 62
(Open)LDAP V2.44  search proxy to AD (W2012R2) 37 137
Remote desktop Ubuntu from Windows 10 5 59
winscp where are logs stored 3 34
The purpose of this article is to demonstrate how we can use conditional statements using Python.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question