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

Hello
Please answer this question:
"How many cores does your processor have? Are you assigning processor/core affinity to threads?"
hp-ux

Sham
mohet01Asked:
Who is Participating?
 
HappyCactusConnect With a Mentor Commented:
what about:

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

( https://www-304.ibm.com/support/docview.wss?uid=swg21105416 )
0
 
mohet01Author Commented:
any command or system file that i can check to know this answer?
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

 
gheistConnect With a Mentor Commented:
Second question:

Probably not since it gets asked.
0
 
eagerCommented:
"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
 
gheistCommented:
stable workload = oracle, db2, tomcat, websphere (but not apache or X11)
0
 
eagerCommented:
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
 
mohet01Author Commented:
thank u
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.