How to disable multi threading in redhat linux hosted in AWS?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In AWS, you have virtual servers. The servers are pieces of cpu, or a cpu usually. Multi threading enables a process to run code at the same time. I do not see why you would want to go single thread. It would be like asking for a text screen that only shows 1 line of text. Why do you want to disable it? I think aws mini/micro is 1 cpu, and during the server build determines how many cpus you get.
I followed exactly what was mentioned in the blog.. Made the changes in grub file and ran grub2-mkconfig command.. After that rebooted the server, whatever changes I made was vanished.. System was using 16 CPUs again
I followed exactly what was mentioned in the blog.. Made the changes in grub file and ran grub2-mkconfig command.. After that rebooted the server, whatever changes I made was vanished.. System was using 16 CPUs again
There is this:
Quote:
IMPORTANT NOTE: In some cases the hyper threading is controlled via the BIOS of the hardware so you must also disable HT in the BIOS, disabling alone from the OS will not work
emphasis added...
I'm guessing you don't have access to the BIOS on that VPS...is that correct?
Thanks for all ur time to spend on this. If I find a way to disable it permanently, will let u know.. For time being my client want multi threading to be disabled in the server. Will let you know in brief once I get to know abt it.. Thanks again.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818
Rep:
Quote:
Originally Posted by Bala123
For time being my client want multi threading to be disabled in the server.
Why would they want this? I'm guessing it's the client's reaction to the security problems that have made the headlines where Intel and AMD chips (if I understand the problem) can allow parallel threads to peek into parts of the CPU that other threads are running on and, somehow, obtain data they shouldn't be able to see. I thought Red Hat and others had mitigated that problem with kernel patches.
Why would they want this? I'm guessing it's the client's reaction to the security problems that have made the headlines where Intel and AMD chips (if I understand the problem) can allow parallel threads to peek into parts of the CPU that other threads are running on and, somehow, obtain data they shouldn't be able to see. I thought Red Hat and others had mitigated that problem with kernel patches.
Could be, in which case the OP (or the client) should contact Red Hat support, as previously suggested, to determine if the solution they seek is even necessary.
Performance is better when we disable multi threading,hence client wants to disable it.
Followed the below steps to disable multi-threading in RHEL7.
1. Add the nr_cpus=N parameter to the “GRUB_CMDLINE_LINUX” line in “/etc/sysconfig/grub”
2. Run grub2-mkconfig -o /boot/grub2/grub.cfg
3. Reboot the server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.