Solved

FInding out how many CPU threads available on Ubuntu

Posted on 2011-09-23
4
328 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

733 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