LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-04-2007, 02:55 AM   #1
hhshr825
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
SMP system :how to know which CPU a process belong to ?


Does anybody please give me some explanations for my topic about INTEL CPU and PowerPC?

thank you very much in advance !
 
Old 12-04-2007, 03:16 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Check the output of top, which should have a cpu column listed there. ps will also tell you this.
 
Old 12-04-2007, 03:42 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,941

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
Most of the time processes don't belong to any particular processor(s).
And why would you care ???.
 
Old 12-04-2007, 06:31 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
The processes get shuffled between cpus by the OS. IOW, they are not permanently assigned to one cpu (or core).
 
Old 01-11-2008, 03:04 AM   #5
hhshr825
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
The processes get shuffled between cpus by the OS. IOW, they are not permanently assigned to one cpu (or core).

Thanks all of you a lot.

So, do you mean that , sometimes , the process would be loaded to one CPU , sometimes , it would be loaded to other one ? According to the payload of CPUs.

BR,

Anderson
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is SMP really using every cpu? deadlinx Linux - Kernel 3 06-26-2006 09:19 AM
Process System cpu rajesht Linux - General 1 05-19-2005 10:16 AM
SMP and 2nd cpu FeeBLe Linux - Hardware 4 05-04-2005 12:57 PM
"stealth" system process slamming cpu 360 Linux - General 4 11-24-2004 01:04 PM
Multithreaded System On 4 Cpu Linux Machine, process stuck on certain thread eyalzm Programming 1 05-10-2004 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration