Solved

FInding out how many CPU threads available on Ubuntu

Posted on 2011-09-23
4
319 Views
Last Modified: 2012-05-12
Hello,

I want to set the thread_concurrency setting in the my.cnf file on a Ubuntu server.

I'm not sure how many threads it is capable of - is there a command I can run? Not sure if HT technology on the cores enables more threads etc..

It has 2 cores but not quite sure of the processor exact model and tech. Was hoping the OS can tell me :)

Cheers
David
0
Comment
Question by:dolythgoe
4 Comments
 
LVL 14

Assisted Solution

by:DonConsolio
DonConsolio earned 100 total points
ID: 36590250
command:

 cat /proc/cpuinfo  | grep processor

0
 
LVL 21

Accepted Solution

by:
Papertrip earned 90 total points
ID: 36590425
'cat /proc/cpuinfo' without the grep will show you the processor(s) model type.
0
 
LVL 4

Assisted Solution

by:klodefactor
klodefactor earned 60 total points
ID: 36590718
If it's an Intel CPU, ark.intel.com has excellent information, including # of cores, # of threads, etc.  If cores is 2, and threads is 4, you know you have a dual-core processor with Hyperthreading enabled.  Capabilities such as hyperthreading are also listed at the bottom of each processor info page.  As an example, the Xeon E5430's page is http://ark.intel.com/products/33081.

Intel's Hyperthreading enables one more thread per core.  This second thread is only available if the mix of instructions means that work is available for idle execution units.  For a modern OS that recognizes the difference between physical cores and logical (HT-based) cores, you can safely leave HT enabled for most workloads.  According to Intel, you can expect something in the range of 30% more performance, again for most workloads.

--klodefactor
0
 

Author Closing Comment

by:dolythgoe
ID: 36595455
Thanks all
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now