LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-13-2006, 06:34 PM   #1
sugar2
Member
 
Registered: Feb 2006
Distribution: Debian 40r0
Posts: 103

Rep: Reputation: 15
Post monitoring proccess by processor#


hi, how can I monitor my proccess by proccessor? i have a dell porweredge 4400 with 2 cpu's and with slackware 10.1 installed.
and i wish to know how they are used by the system.

Thanks in advance
 
Old 02-13-2006, 07:20 PM   #2
guzzi
Member
 
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 315

Rep: Reputation: 42
monitor my proccess

On a Dual HT Xeon system, I use the top command to view the %CPU use.

Breaking this use down to the individual processes is not something I have ever thought of doing. Compiling the kernel is the most cpu intesive operation I ever do on a regular basis.
 
Old 02-14-2006, 11:27 AM   #3
sugar2
Member
 
Registered: Feb 2006
Distribution: Debian 40r0
Posts: 103

Original Poster
Rep: Reputation: 15
The only thing to i wish is to view that my linux its actually using the two proccessors and how.
 
Old 02-14-2006, 11:49 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
cat /proc/cpuinfo

If you have two "processor" entries Linux sees them both.

In Slack, however, SMP is *disabled* by default, you'll need to
recompile your kernel.


Cheers,
Tink
 
Old 02-14-2006, 12:19 PM   #5
sugar2
Member
 
Registered: Feb 2006
Distribution: Debian 40r0
Posts: 103

Original Poster
Rep: Reputation: 15
that is what I got: does it mean my Linux its only using one or actually two?
thanks!

-----------------------------------
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
stepping : 6
cpu MHz : 993.401
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips : 1979.18

-----------------
 
Old 02-14-2006, 12:25 PM   #6
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
no sir, there's only one detected processor
 
Old 02-14-2006, 01:13 PM   #7
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 772

Rep: Reputation: 68
I only have one CPU, so I cant test it, but I read that top can be toggled through multiple cpu's by pressing "1" while it is running...

tobyl
 
Old 02-14-2006, 01:13 PM   #8
sugar2
Member
 
Registered: Feb 2006
Distribution: Debian 40r0
Posts: 103

Original Poster
Rep: Reputation: 15
I see... how can I enable the seccond...?
I ran the partition utility of the server and everything its ok with both proccessors....
 
Old 02-14-2006, 01:15 PM   #9
sugar2
Member
 
Registered: Feb 2006
Distribution: Debian 40r0
Posts: 103

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by tobyl
I only have one CPU, so I cant test it, but I read that top can be toggled through multiple cpu's by pressing "1" while it is running...

tobyl

YES!!!

Thanks!

Now i see both
first of them is named CPU
and the other one is named CPU0


Thanks
 
Old 02-14-2006, 01:18 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Sorry mate, if you see a cpu0 (but not a cpu1) that still is
only ONE processor. The only difference is that CPU would show
the sum of both CPUs (but there's only one being detected), so
they'll always display the same info. And as I said in my first
response: you can't just go and "enable" it; you need to recompile
your kernel.


Cheers,
Tink
 
Old 02-14-2006, 01:20 PM   #11
sugar2
Member
 
Registered: Feb 2006
Distribution: Debian 40r0
Posts: 103

Original Poster
Rep: Reputation: 15
Do you recommendme to recompile the kernel... even if i can toggle between cpu and cpu0 in the top command?

can i recompile my kernel when i have 25 users connected to my samba server?

Thanks!
 
Old 02-14-2006, 01:35 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
No, you can't "toggle" between CPUs. You can toggle between an
accumulated and a perCpu view, which will display the same stuff
with only one cpu picked up (you'd have to see cpu1 as well as cpu0
in the same screen if there were two).
I don't "recommend" anything. All I'm saying is that you won't use
both unless you recompile the kernel with SMP enabled ;)


Cheers,
Tink
 
Old 02-14-2006, 01:52 PM   #13
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 772

Rep: Reputation: 68
Sorry chaps, I just managed to confuse the issue. Blame me!

tobyl
 
Old 02-14-2006, 02:05 PM   #14
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by tobyl
Sorry chaps, I just managed to confuse the issue. Blame me!

tobyl
Not at all :}
Your information was correct - albeit not helpful since
he didn't (or doesn't appear to have) read the man-page. ;}


Cheers,
Tink
 
Old 02-14-2006, 03:47 PM   #15
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 32
Well to be fair, he might not have known WHICH man page to read, since he may not have known that top is the command to display processes being ran.
 
  


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
URGENT how to kill a proccess? ivj Linux - Software 5 07-21-2005 01:13 AM
basic proccess acrors Fedora 16 12-03-2004 05:47 PM
automat proccess juanb Linux - Software 1 12-09-2003 07:47 AM
Monitoring processor usage bananaman Linux - General 3 04-22-2003 06:21 AM
How do I kill a proccess? bripage Linux - General 8 08-09-2002 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:08 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