LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-27-2008, 07:40 AM   #1
ravirao
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Rep: Reputation: 0
What is DEBUG_SLAB and REDZONE?


Hi,
I am facing a wierd sutation where a PPC blade running RHEL reboots with meaningless calltraces, The pmem logs are also not meaningful, the issue seemed to be of memory corruption, someone suggested to enable DEBUG_SLAB and redzoning, am wondering what they are and how can enabling them be useful.

Please let me know about this.
Regards,
//P Ravi Rao
 
Old 11-27-2008, 08:32 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
The redzone is for loading and unloading only. Enabling redzone reserves a certain amount of space on the stack for use by hardware when handling interrupts, x86_64 machines need to have this on and it should be enabled by default already on those architectures, if you are making your own module for this type of platform then you need to make sure its on in your compile flags or pull in the kernels compile flags since they should have it. PPC architecture might have this same requirement, I don't know.

slab debugging puts poison markers in memory so you can catch double frees and check to see if you are using unallocated space, it might do some other things but thats what I recall offhand.

Last edited by estabroo; 11-27-2008 at 08:33 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration