Solved

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

Posted on 2011-09-16
8
772 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
[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
  • 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
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 
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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.

705 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