?
Solved

FInding out how many CPU threads available on Ubuntu

Posted on 2011-09-23
4
Medium Priority
?
345 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 400 total points
ID: 36590250
command:

 cat /proc/cpuinfo  | grep processor

0
 
LVL 21

Accepted Solution

by:
Papertrip earned 360 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 240 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
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.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

801 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