lscpu shows wrong amount of threads per core if logical CPU is disabled in a run-time on a Hyper-Threading system

Solution Verified - Updated -

Issue

After disabling one or several virtual CPUs on a Hyper-Threading system with echo 0 >/sys/devices/system/cpu/cpuX/online command, lscpu tool output shows wrong Thread(s) per core field value, telling that Hyper-Threading is disabled now.

Environment

RHEL7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.