Solved

FInding out how many CPU threads available on Ubuntu

Posted on 2011-09-23
4
322 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 15

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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…

863 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

22 Experts available now in Live!

Get 1:1 Help Now