Solved

FInding out how many CPU threads available on Ubuntu

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

828 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