?
Solved

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

Posted on 2011-09-16
8
Medium Priority
?
792 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 668 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:Amol
Amol earned 668 total points
ID: 36549361
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 62

Assisted Solution

by:gheist
gheist earned 664 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Fine Tune your automatic Updates for Ubuntu / Debian
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
The goal of this video is to provide viewers with basic examples to understand opening and reading files 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.
Suggested Courses
Course of the Month14 days, 6 hours left to enroll

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