[转]如何关闭Linux环境下的超线程
来源:互联网 发布:2016淘宝客新玩法 编辑:程序博客网 时间:2024/05/26 22:10
今天同事遇到了这问题来问俺,给出了下面的参考资料,分享大家。
转自:http://www.cyberciti.biz/faq/linux-disable-hyper-threading-for-pentium-4-server-grub-boot-loader/
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.
- [转]如何关闭Linux环境下的超线程
- Linux环境下线程的互斥
- Linux下如何识别物理cpu个数,几个核,是超线程还是多核心
- 如何判断linux下物理cpu数,核数以及是否支持超线程
- 如何判断linux下物理cpu数,核数以及是否支持超线程
- linux下如何关闭防火墙?
- linux下如何关闭防火墙
- LINUX环境下启动/关闭ORACLE数据库的OEM
- win7环境下如何关闭IIS7服务
- linux 下如何强制关闭正在运行的程…
- Linux环境下启动和关闭防火墙
- linux环境下关闭后台进程
- Linux 环境下MongoDB 启动和关闭
- linux环境下的线程的创建问题
- 转载:linux 下CPU数量、核心数量、是否支持超线程的判断
- linux 下CPU数量、核心数量、是否支持超线程的判断
- Linux环境下线程消息同步的陷阱
- Linux 超线程
- 图片尺寸自适应
- 不懂(求救)~~
- IIS&.net
- perl文件读写
- 本地安全策略
- [转]如何关闭Linux环境下的超线程
- 反编译Silverlight应用
- 绿色软件SuperMap Objects 2008的安装
- 设计模式分类 中英对照
- 在 Source Insight 中编译和执行Java 程序
- FZU 1548 猪数
- 手机连接电脑上网方法
- 遭遇lsnrctl start错误
- 日语语法实践篇十五——新编日语第一册第十六课之会话篇