?
Solved

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

Posted on 2011-09-16
8
Medium Priority
?
777 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 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
Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

 
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

Industry Leaders: 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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

770 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