How to turn hyperthreading on/off in a batch file?


Sqrly

Well-known member
Member
VIP
Local time
1:43 AM
Posts
223
OS
Windroid 11 Pro / Win 10 Pro
Is there a way to turn hyperthreading on and off other then in the bios?

RE: Assassin's Creed Odyssey - The game now takes 5 minutes to start. Some blame windows and some blame intel anyways, If I disable hyperthreading in the bios the game starts in less than 60 seconds.

I have Intel Extreme Tunining Utility installed but I don't see anything in the gui to do with hyperthreading.

I found a webpage that says it can be done with the command line but they don't mention how to turn it back on.

Code:
xtu-cli.exe -t -s HT -v 0

Source: How to Disable Hyper-Threading on Your Processor - HogoNext
 

My Computers

System One System Two

  • OS
    Windroid 11 Pro / Win 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    Intel Core i9-14900K Raptor Lake Refreshed 6.0 GHZ
    Motherboard
    MSI MAG Z790 Tomahawk WiFi
    Memory
    32GB (2x16) GSKILL Trident Z5 RGB Series (Intel XMP 3.0) DDR5 RAM 6700MT/s
    Graphics Card(s)
    MSI Gaming GeForce RTX 4070 12GB
    Sound Card
    Onboard Realtek® ALC4080 Codec
    Monitor(s) Displays
    Monitor #1 Samsung Odyssey G50A WQHD G-Sync HDR10 Monitor #2 HP LA1911
    Screen Resolution
    2560x1440 and 1280x1024
    Hard Drives
    Samsung 980 PRO SSD 1TB PCIe 4.0 NVMe Gen 4 Gaming M.2 (145GB Win11/100GB Win10/685GB More Games)
    Crucial CT2000MX500SSD1 2TB (Games)
    Western Digital Blue WD60EZAZ 6TB (Data/Backup)
    Western Digital Blue WD60EZAZ 6TB (Media)
    Western Digital Blue WD80EAAZ 8TB (Storage)
    PSU
    Rosewill Hive-750S
    Case
    Cooler Master Elite 430 Mid Tower
    Cooling
    Cooler Master ML240L V2 Liquid CPU cooler + 3x120mm in + Isolated PSU Standard upward flow
    Keyboard
    Microsoft Natural Elite White PS/2 (with usb adapter)
    Mouse
    Microsoft D67-00001 Trackball Optical Mouse (rebuilt with ceramic bearings)
    Internet Speed
    450Mb/s hard wired
    Browser
    FF, Mullvad, Tor
    Antivirus
    Win Def
    Other Info
    Razer Tartarus V2 Gaming Keypad
    Logitech Z-906 5.1 THX 500w (Original 8" Sub with Polk Audio satellites)
  • Operating System
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    Intel Core i9-14900K Raptor Lake Refreshed 6.0 GHz FCLGA1700 (Gen 14)
    Motherboard
    MSI MAG Z790 Tomahawk WiFi
    Memory
    32GB (2x16) GSKILL Trident Z5 RGB Series (Intel XMP 3.0) DDR5 RAM 6700MT/s
    Graphics card(s)
    MSI Gaming GeForce RTX 3060Ti 8GB
    Sound Card
    Onboard Realtek® ALC4080 Codec
    Monitor(s) Displays
    Monitor #1 Samsung Odyssey G50A WQHD G-Sync HDR10 Monitor #2 Samsung TU7000 55" TV
    Screen Resolution
    2560x1440 and 3840x2160
    Hard Drives
    Samsung 980 PRO SSD 1TB PCIe 4.0 NVMe Gen 4 Gaming M.2 (System)
    Samsung 980 PRO SSD 2TB PCIe 4.0 NVMe Gen 4 Gaming M.2 (Games)
    Crucial CT1000MX500SSD1 1TB (More Games)
    WD Green WD20EZRX 2TB (Data/Backup)
    WD Blue WD60EZAZ 6TB (Media)
    PSU
    Rosewill Hive-750S
    Case
    Cooler Master N400 NSE-400-KKN2 Mid-Tower
    Cooling
    Cooler Master ML240L V2 Liquid CPU cooler + 3x120mm in + 2x120mm + Isolated PSU Reverse flow front exhaust
    Keyboard
    Logitech MK345 Wireless
    Mouse
    MSI G20 Elite and Logitech MK345 Wireless
    Internet Speed
    450Mb/s hard wired
    Browser
    FF
    Antivirus
    Win Def
    Other Info
    Razer Tartarus Gaming Keypad
    MSI GC30 Gaming Controller (Xbox style)

My Computer

System One

  • OS
    Windows 11 Pro Insider 64 bit 25H2 26200.5742
    Computer type
    PC/Desktop
    Manufacturer/Model
    Gigabyte Z390 UD
    CPU
    Intel Core i7 9700K 3.60
    Motherboard
    Gigabyte Z390 UD
    Memory
    16 GB
    Graphics Card(s)
    nVidia GEForce RTX 2060 Super
    Sound Card
    onboard
    Monitor(s) Displays
    Two 27" Dell 4K monitors
    Screen Resolution
    3840 x 2160
    Hard Drives
    M.2 NVME SSD, 500 GB; Two 2TB Mechanical HDD's
    PSU
    850w PSU
    Case
    Cyberpower PC
    Cooling
    Water cooled
    Keyboard
    Backlit Cyberpower gaming keyboard
    Mouse
    Backlit Cyberpower gaming mouse
    Internet Speed
    1 GB mbps
    Browser
    Brave
    Antivirus
    Windows Security
If you run XTUCli.exe without any arguments, you'll get a list of commands.

I don't have it, so I can't tell you what's available.
 

My Computers

System One System Two

  • OS
    Windows 11 26200.8116
    Computer type
    PC/Desktop
    Manufacturer/Model
    homebuilt
    CPU
    Amd Threadripper 7970X
    Motherboard
    Gigabyte TRX50 Aero D Rev. 1.0
    Memory
    128GB (4 X 32) G.Skill DDR5 6400 (RDIMM)
    Graphics Card(s)
    Gigabyte RTX 4090 OC
    Sound Card
    none (USB to speakers), Realtek
    Monitor(s) Displays
    Innocn 32" OLED
    Screen Resolution
    3840 X 2160 @ 60Hz
    Hard Drives
    Crucial T700 2TB M.2 NVME SSD
    WD 4TB Blue SATA SSD
    Seagate 18TB IronWolf Pro
    PSU
    BeQuiet! Straight Power 12 1500W
    Case
    Lian Li 011 Dynamic Evo XL
    Cooling
    SilverStone Technology XE360-TR5, with 3 Phanteks T30 fans
    Keyboard
    Cherry KC 500 MX LP (mechanical)
    Mouse
    Logitech M500s (wired)
    Internet Speed
    2000/250 Mbps (down/up)
    Other Info
    xFinity gateway
  • Operating System
    windows 11 26200.8116
    Computer type
    PC/Desktop
    Manufacturer/Model
    homebuilt
    CPU
    Intel I9-13900K
    Motherboard
    Asus RoG Strix Z690-E
    Memory
    64GB G.Skill DDR5-6000
    Graphics card(s)
    Gigabyte RTX 3090 ti
    Sound Card
    built in Realtek
    Monitor(s) Displays
    Philips 27E1N8900 27" OLED
    Screen Resolution
    3840 X 2160 @60Hz
    Hard Drives
    WDC SN850 1TB
    8TB Seagate Ironwolf
    4TB Seagate Ironwolf
    PSU
    eVGA SuperNOVA 1300 GT
    Case
    Lian Li 011 Dynamic Evo
    Cooling
    Corsair iCUE H150i ELITE CAPELLIX Liquid CPU Cooler
    Keyboard
    Cherry Streaming (wired)
    Mouse
    Logitech M500s (wired)
@garlin is correct. you can use powershell to check if its enabled or not, but thats all...

Code:
Get-WmiObject -Class Win32_Processor | Select-Object Name, NumberOfCores, NumberOfLogicalProcessors
 

My Computer

System One

  • OS
    Windows 11 Pro
Hyper-Threading is a hardware-only feature. Windows can take advantage of it if it's present & enabled. But it can't managed by Windows settings.

Some compute workloads are helped by HT. Others actually do worse. That's why it's NOT on by default.
 

My Computer

System One

  • OS
    Windows 7
Check out if you can restrict the cores used and avoid hyperthreading when launching the game, using start /affinity?
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2 Build 26200.8524
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built 2013
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard thingy
    Monitor(s) Displays
    5 x LG 25MS500-B - 1 x 24MK430H-B - 1 x Wacom Pro 22" Touch Screen Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech: G402 / G502 / Mx Masters / Mx Air Cordless
    Internet Speed
    2000/500Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
    TP-Link BE9300 WiFi 7 Bluetooth 5.4 (Archer TBE550E)
    TP-Link TX201 V1 2.5GB Lan

    Grandstream HT812 - VoIP
    ASUS DSL-AX82U - Mesh
    ASUS RT-AC68U - Mesh
    ASUS RT-BE88U Router

    Brother MFC-L2880DW Printer

    I’m on a horse.
  • Operating System
    Windows 11 Pro 25H2 Build 26200.8524
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7 14IRL8 - 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Antivirus
    Defender / Malwarebytes
    Other Info
    …still on a horse.

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2 Build 26200.8524
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built 2013
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard thingy
    Monitor(s) Displays
    5 x LG 25MS500-B - 1 x 24MK430H-B - 1 x Wacom Pro 22" Touch Screen Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech: G402 / G502 / Mx Masters / Mx Air Cordless
    Internet Speed
    2000/500Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
    TP-Link BE9300 WiFi 7 Bluetooth 5.4 (Archer TBE550E)
    TP-Link TX201 V1 2.5GB Lan

    Grandstream HT812 - VoIP
    ASUS DSL-AX82U - Mesh
    ASUS RT-AC68U - Mesh
    ASUS RT-BE88U Router

    Brother MFC-L2880DW Printer

    I’m on a horse.
  • Operating System
    Windows 11 Pro 25H2 Build 26200.8524
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7 14IRL8 - 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Antivirus
    Defender / Malwarebytes
    Other Info
    …still on a horse.
If you run XTUCli.exe without any arguments, you'll get a list of commands.

I don't have it, so I can't tell you what's available.
Now that I've looked I know that the newest version of XUT doesn't come with the command line utilty :(
Check out if you can restrict the cores used and avoid hyperthreading when launching the game, using start /affinity?

I tried that already. For my CPU "start /affinity 7ffffff game.exe" works for my older games that crash on startup due to all the cores. This is a more complicated issue. The game runs fine with hyperthreading on, it just takes 5 times longer to start.

I'm just going to leave it off for now and see if it causes any issues with anything else.
 

My Computers

System One System Two

  • OS
    Windroid 11 Pro / Win 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    Intel Core i9-14900K Raptor Lake Refreshed 6.0 GHZ
    Motherboard
    MSI MAG Z790 Tomahawk WiFi
    Memory
    32GB (2x16) GSKILL Trident Z5 RGB Series (Intel XMP 3.0) DDR5 RAM 6700MT/s
    Graphics Card(s)
    MSI Gaming GeForce RTX 4070 12GB
    Sound Card
    Onboard Realtek® ALC4080 Codec
    Monitor(s) Displays
    Monitor #1 Samsung Odyssey G50A WQHD G-Sync HDR10 Monitor #2 HP LA1911
    Screen Resolution
    2560x1440 and 1280x1024
    Hard Drives
    Samsung 980 PRO SSD 1TB PCIe 4.0 NVMe Gen 4 Gaming M.2 (145GB Win11/100GB Win10/685GB More Games)
    Crucial CT2000MX500SSD1 2TB (Games)
    Western Digital Blue WD60EZAZ 6TB (Data/Backup)
    Western Digital Blue WD60EZAZ 6TB (Media)
    Western Digital Blue WD80EAAZ 8TB (Storage)
    PSU
    Rosewill Hive-750S
    Case
    Cooler Master Elite 430 Mid Tower
    Cooling
    Cooler Master ML240L V2 Liquid CPU cooler + 3x120mm in + Isolated PSU Standard upward flow
    Keyboard
    Microsoft Natural Elite White PS/2 (with usb adapter)
    Mouse
    Microsoft D67-00001 Trackball Optical Mouse (rebuilt with ceramic bearings)
    Internet Speed
    450Mb/s hard wired
    Browser
    FF, Mullvad, Tor
    Antivirus
    Win Def
    Other Info
    Razer Tartarus V2 Gaming Keypad
    Logitech Z-906 5.1 THX 500w (Original 8" Sub with Polk Audio satellites)
  • Operating System
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    Intel Core i9-14900K Raptor Lake Refreshed 6.0 GHz FCLGA1700 (Gen 14)
    Motherboard
    MSI MAG Z790 Tomahawk WiFi
    Memory
    32GB (2x16) GSKILL Trident Z5 RGB Series (Intel XMP 3.0) DDR5 RAM 6700MT/s
    Graphics card(s)
    MSI Gaming GeForce RTX 3060Ti 8GB
    Sound Card
    Onboard Realtek® ALC4080 Codec
    Monitor(s) Displays
    Monitor #1 Samsung Odyssey G50A WQHD G-Sync HDR10 Monitor #2 Samsung TU7000 55" TV
    Screen Resolution
    2560x1440 and 3840x2160
    Hard Drives
    Samsung 980 PRO SSD 1TB PCIe 4.0 NVMe Gen 4 Gaming M.2 (System)
    Samsung 980 PRO SSD 2TB PCIe 4.0 NVMe Gen 4 Gaming M.2 (Games)
    Crucial CT1000MX500SSD1 1TB (More Games)
    WD Green WD20EZRX 2TB (Data/Backup)
    WD Blue WD60EZAZ 6TB (Media)
    PSU
    Rosewill Hive-750S
    Case
    Cooler Master N400 NSE-400-KKN2 Mid-Tower
    Cooling
    Cooler Master ML240L V2 Liquid CPU cooler + 3x120mm in + 2x120mm + Isolated PSU Reverse flow front exhaust
    Keyboard
    Logitech MK345 Wireless
    Mouse
    MSI G20 Elite and Logitech MK345 Wireless
    Internet Speed
    450Mb/s hard wired
    Browser
    FF
    Antivirus
    Win Def
    Other Info
    Razer Tartarus Gaming Keypad
    MSI GC30 Gaming Controller (Xbox style)
Update:

The only difference I've noticed since disabling hyperthreading other then the one game starting much quicker is that the cpu generates a bit more heat running said game.

Otherwise I've not noticed any differences system wide.

Notes: The i9-14900K CPU has 8 P-Cores + 16 E-Cores. Hyperthreading only runs on the P-Cores when enabled.

Many of the components in my PC came with RGB lighting even though I have a window on one side of my case I don't care for it. However, after discovering I had to use some kind of software to stop my memory sticks from looking like puking unicorns I also learned I could use the RGB as a crude temperature gauge. I set it up to shift from blue to red and I'm basing the increased temperatures on that.
 

My Computers

System One System Two

  • OS
    Windroid 11 Pro / Win 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    Intel Core i9-14900K Raptor Lake Refreshed 6.0 GHZ
    Motherboard
    MSI MAG Z790 Tomahawk WiFi
    Memory
    32GB (2x16) GSKILL Trident Z5 RGB Series (Intel XMP 3.0) DDR5 RAM 6700MT/s
    Graphics Card(s)
    MSI Gaming GeForce RTX 4070 12GB
    Sound Card
    Onboard Realtek® ALC4080 Codec
    Monitor(s) Displays
    Monitor #1 Samsung Odyssey G50A WQHD G-Sync HDR10 Monitor #2 HP LA1911
    Screen Resolution
    2560x1440 and 1280x1024
    Hard Drives
    Samsung 980 PRO SSD 1TB PCIe 4.0 NVMe Gen 4 Gaming M.2 (145GB Win11/100GB Win10/685GB More Games)
    Crucial CT2000MX500SSD1 2TB (Games)
    Western Digital Blue WD60EZAZ 6TB (Data/Backup)
    Western Digital Blue WD60EZAZ 6TB (Media)
    Western Digital Blue WD80EAAZ 8TB (Storage)
    PSU
    Rosewill Hive-750S
    Case
    Cooler Master Elite 430 Mid Tower
    Cooling
    Cooler Master ML240L V2 Liquid CPU cooler + 3x120mm in + Isolated PSU Standard upward flow
    Keyboard
    Microsoft Natural Elite White PS/2 (with usb adapter)
    Mouse
    Microsoft D67-00001 Trackball Optical Mouse (rebuilt with ceramic bearings)
    Internet Speed
    450Mb/s hard wired
    Browser
    FF, Mullvad, Tor
    Antivirus
    Win Def
    Other Info
    Razer Tartarus V2 Gaming Keypad
    Logitech Z-906 5.1 THX 500w (Original 8" Sub with Polk Audio satellites)
  • Operating System
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    Intel Core i9-14900K Raptor Lake Refreshed 6.0 GHz FCLGA1700 (Gen 14)
    Motherboard
    MSI MAG Z790 Tomahawk WiFi
    Memory
    32GB (2x16) GSKILL Trident Z5 RGB Series (Intel XMP 3.0) DDR5 RAM 6700MT/s
    Graphics card(s)
    MSI Gaming GeForce RTX 3060Ti 8GB
    Sound Card
    Onboard Realtek® ALC4080 Codec
    Monitor(s) Displays
    Monitor #1 Samsung Odyssey G50A WQHD G-Sync HDR10 Monitor #2 Samsung TU7000 55" TV
    Screen Resolution
    2560x1440 and 3840x2160
    Hard Drives
    Samsung 980 PRO SSD 1TB PCIe 4.0 NVMe Gen 4 Gaming M.2 (System)
    Samsung 980 PRO SSD 2TB PCIe 4.0 NVMe Gen 4 Gaming M.2 (Games)
    Crucial CT1000MX500SSD1 1TB (More Games)
    WD Green WD20EZRX 2TB (Data/Backup)
    WD Blue WD60EZAZ 6TB (Media)
    PSU
    Rosewill Hive-750S
    Case
    Cooler Master N400 NSE-400-KKN2 Mid-Tower
    Cooling
    Cooler Master ML240L V2 Liquid CPU cooler + 3x120mm in + 2x120mm + Isolated PSU Reverse flow front exhaust
    Keyboard
    Logitech MK345 Wireless
    Mouse
    MSI G20 Elite and Logitech MK345 Wireless
    Internet Speed
    450Mb/s hard wired
    Browser
    FF
    Antivirus
    Win Def
    Other Info
    Razer Tartarus Gaming Keypad
    MSI GC30 Gaming Controller (Xbox style)
Back
Top Bottom