LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-31-2011, 08:19 PM   #1
aayyagari
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Rep: Reputation: Disabled
Disable Branch Prediction in Ububntu - i386 architecture


Hi,

Can anyone please give me clear instruction on disabling Branch Predictor in Linux kernel for i386 arch. and how to compile the kernel after disabling the Branch Predictor.

Thanks,
Aravind
 
Old 09-01-2011, 12:27 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Branch prediction is a function of the cpu, not part of the linux kernel - it's not a user configurable option.
 
Old 09-01-2011, 12:31 AM   #3
aayyagari
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
So can you by any chance tell me how can i disable it in CPU ... I wanted to run SPEC benchmarks by disabling Branch Prediction.

(I am not Sure, but according to what i heard was that, there will be a flag in linux kernel where we can disable Branch Prediction .... )

Last edited by aayyagari; 09-01-2011 at 12:34 AM.
 
Old 09-01-2011, 01:01 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
It's part of the hardware. Maybe what you're meaning is that you're trying to detune the kernel and want to remove some of the optimisations? .. There are options in there to tell the compiler (gcc) whether a jump is more likely to be taken or not, which will allow it to alter the code ordering and therefore improve branch prediction hits. But there's no way to actually turn branch prediction off in the cpu, it's like the old turbo button on the front of your pc - why would anyone want to turn it off? (I know why, just trying to make a point)
 
Old 09-01-2011, 02:10 AM   #5
aayyagari
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for your help

Last edited by aayyagari; 09-01-2011 at 08:40 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
assembly error: i386 architecture incompatible with i386:x86-64 output rohedin Programming 11 08-11-2015 08:13 AM
[SOLVED] which architecture do i have?? i386, i586 etc Firefox54 Linux - Hardware 4 07-01-2011 03:38 AM
Help ! Package Architecture (uclibc-linux-i386) does not match system (i386) blink182 Debian 1 04-17-2011 09:05 AM
i386 :/x86-64 architecture of input file '*.o' is incompatible with i386 output Fiona Linux - Newbie 1 05-07-2008 07:23 AM
i686 vs i386 instruction architecture Earth Linux - Newbie 1 06-08-2005 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:38 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