LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 01: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, 02:16 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Most of the time processes don't belong to any particular processor(s).
And why would you care ???.
 
Old 12-04-2007, 05:31 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
The processes get shuffled between cpus by the OS. IOW, they are not permanently assigned to one cpu (or core).
 
Old 01-11-2008, 02: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



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 08:19 AM
Process System cpu rajesht Linux - General 1 05-19-2005 09:16 AM
SMP and 2nd cpu FeeBLe Linux - Hardware 4 05-04-2005 11:57 AM
"stealth" system process slamming cpu 360 Linux - General 4 11-24-2004 12:04 PM
Multithreaded System On 4 Cpu Linux Machine, process stuck on certain thread eyalzm Programming 1 05-10-2004 11:46 AM

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

All times are GMT -5. The time now is 09:17 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
Open Source Consulting | Domain Registration