Solved

kernel config - debug considerations

Posted on 2002-05-28
5
302 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now