Linux Disable Hyper Threading for Pentium 4 server GRUB boot loader
Q. I am using GRUB boot loader. How do I disable Hyper Threading for Pentium 4 server? I am using CentOS.
A. To improve performance in the past, threading was enabled in the software by splitting instructions into multiple streams so that multiple processors could act upon them. Hyper-Threading Technology (HT Technology) provides thread-level parallelism on each processor, resulting in more efficient use of processor resources, higher processing throughput, and improved performance on today's multithreaded software.
If you disable HT you may notice performance problem. To disable edit grub.conf file:
# vi /etc/grub.conf
OR
# vi /boot/grub/menu.lst
Locate the kernel line that you want to modify and append noht at the end:
kernel /boot/vmlinuz-2.6.8-2-686 root=/dev/hdb1 ro single noht
Save and close the file.
You can also disable HT during booting CentOS Linux. You need to pass an option to kernel.
- At GRUB menu
- Select the kernel to boot into.
- Type 'e' to modify the kernel
- Append 'noht' at the end of the line.
- Press return key to boot with this options.
- Type 'b' to boot to this kernel.
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Disable graphical GRUB splash screen
- Error /dev/hdX does not have any corresponding BIOS drive and Solution
- Linux: Grub Boot into single user mode
- I2O block arrays trouble - Linux fails to install GRUB at the end of successful installation
- Linux reset forgotten root password
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


November 23rd, 2006 at 6:34 pm
What are the pros/cons of disabling HT on P4 CPUs? I currently run Ubuntu 6.10 (Edgy) and the stock config/kernel has Hyper-Threading disabled. How do I enable this? May I enable this in GRUB or do I have to compile another kernel? uname -a > Linux ubuntu 2.6.17-10-generic #2 SMP
November 23rd, 2006 at 6:50 pm
uname -a clearly indicates that you are running SMP kernel. SMP kernel enables HT and dual core support. So you don’t have to do anything.
To be frank enabling HT will increase your performance. However some application may not work (especially old apps). Those are rare cases and you need to disable HT.
January 27th, 2007 at 4:03 am
For any type of server environment HT is beyond worthless. It will degrade your server application performance. HT is meant for interactive DESKTOP applications not DEADLINE based scheduling required by servers.