Solved

"How many cores does your processor have? Are you assigning processor/core affinity to threads?"

Posted on 2011-09-16
8
761 Views
Last Modified: 2012-05-12
Hello
Please answer this question:
"How many cores does your processor have? Are you assigning processor/core affinity to threads?"
hp-ux

Sham
0
Comment
Question by:mohet01
  • 2
  • 2
  • 2
  • +2
8 Comments
 

Author Comment

by:mohet01
ID: 36547716
any command or system file that i can check to know this answer?
0
 
LVL 12

Accepted Solution

by:
HappyCactus earned 167 total points
ID: 36548084
what about:

/usr/sbin/ioscan -kf | grep processor | wc -l

( https://www-304.ibm.com/support/docview.wss?uid=swg21105416 )
0
 
LVL 9

Assisted Solution

by:amolg
amolg earned 167 total points
ID: 36549361
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 62

Assisted Solution

by:gheist
gheist earned 166 total points
ID: 36549565
Second question:

Probably not since it gets asked.
0
 
LVL 8

Expert Comment

by:eager
ID: 36554425
"cat /proc/cpuinfo" will tell you everything about the processors on your system.

No, I don't assign cpu affinity to programs or threads.  You need stable work loads to use cpu affinity effectively.  It might be used to assign a VM to a particular thread.  

0
 
LVL 62

Expert Comment

by:gheist
ID: 36554606
stable workload = oracle, db2, tomcat, websphere (but not apache or X11)
0
 
LVL 8

Expert Comment

by:eager
ID: 36554675
Er, I meant "assign a VM to a particular CPU".  

If you are running a particular application like the ones mentioned by @gheist which has high processor utilization and requires very high responsiveness, then assigning it to a particular CPU may make some sense.  Otherwise, Linux does a good job of allocating CPUs to threads, likely better than manual assignment.

Think of assigning CPU affinity to a process in the same vein as manually assigning memory to a process.  You can do both, and in some cases each may be a good idea, but operating systems are almost always much better at managing resources than users.
0
 

Author Closing Comment

by:mohet01
ID: 36556723
thank u
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

809 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