How to get physical CPU count, cores per CPU, and CPU type on RHEL and CentOS
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Thanks. So I'm guessing, and correct me if i'm wrong, the Sockets output is #1, Cores per CPU is #2, but for #3 I see the Vendor ID line, but is there a way to have it tell me something like "Intel Xeon L1234 @ 3GHz" or something like that, maybe with another command?
Well my debian (lscpu v2.25.2) tells me this on line "Model Name" (next under "Model"), but my CentOS (lscpu v2.17.2) does not provide me this line at all. So i suppose it's a version issue.
also, don't assume the number "names" reported equals number of cores. I have a 4-core i7, but it shows 8 results, because each of the 4 cores are hyper-threaded.
Thanks. I see the output from that shows the full model name. So sounds like I use lscpu for #1 and #2, then for #3 I can run that and just use the name it repeats, right?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.