{"id":2228,"date":"2013-07-12T11:14:15","date_gmt":"2013-07-12T03:14:15","guid":{"rendered":"http:\/\/rmohan.com\/?p=2228"},"modified":"2013-07-12T14:54:25","modified_gmt":"2013-07-12T06:54:25","slug":"cpu-architecture-information-under-linux-operating","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=2228","title":{"rendered":"CPU architecture information under Linux operating"},"content":{"rendered":"<h1>You can use \/proc\/cpuinfo file or use the lscpu command to get info about CPU architecture. It will display information like:<\/h1>\n<ul>\n<li>Number of CPUs<\/li>\n<li>Threads<\/li>\n<li>Cores<\/li>\n<li>Sockets<\/li>\n<li>NUMA nodes<\/li>\n<li>Information about CPU caches,<\/li>\n<li>CPU family, model and stepping.<\/li>\n<li>in human-readable format. Alternatively, it can print out in parsable<\/li>\n<li>format including how different caches are shared by different CPUs,<\/li>\n<li>which can also be fed to other programs.<\/li>\n<\/ul>\n<div>Open a terminal and type the following command:<br \/>\n<code><b>$ less \/proc\/cpuinfo<\/b><\/code><br \/>\nOR<br \/>\n<code><b>$ lscpu<\/b><\/code><br \/>\nSample outputs:<\/div>\n<pre>Architecture:          x86_64\r\nCPU op-mode(s):        32-bit, 64-bit\r\nCPU(s):                8\r\nThread(s) per core:    2\r\nCore(s) per socket:    4\r\nCPU socket(s):         1\r\nNUMA node(s):          1\r\nVendor ID:             GenuineIntel\r\nCPU family:            6\r\nModel:                 30\r\nStepping:              5\r\nCPU MHz:               1199.000\r\nVirtualization:        VT-x\r\nL1d cache:             32K\r\nL1i cache:             32K\r\nL2 cache:              256K\r\nL3 cache:              8192K<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>You can use \/proc\/cpuinfo file or use the lscpu command to get info about CPU architecture. It will display information like: Number of CPUs Threads Cores Sockets NUMA nodes Information about CPU caches, CPU family, model and stepping. in human-readable format. Alternatively, it can print out in parsable format including how different caches are shared [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2228"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2228"}],"version-history":[{"count":4,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2228\/revisions"}],"predecessor-version":[{"id":2230,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2228\/revisions\/2230"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}