Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
02-13-2006, 06:34 PM
|
#1
|
Member
Registered: Feb 2006
Distribution: Debian 40r0
Posts: 103
Rep:
|
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
|
|
|
02-13-2006, 07:20 PM
|
#2
|
Member
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 315
Rep:
|
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.
|
|
|
02-14-2006, 11:27 AM
|
#3
|
Member
Registered: Feb 2006
Distribution: Debian 40r0
Posts: 103
Original Poster
Rep:
|
The only thing to i wish is to view that my linux its actually using the two proccessors and how.
|
|
|
02-14-2006, 11:49 AM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
02-14-2006, 12:19 PM
|
#5
|
Member
Registered: Feb 2006
Distribution: Debian 40r0
Posts: 103
Original Poster
Rep:
|
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
-----------------
|
|
|
02-14-2006, 12:25 PM
|
#6
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Rep:
|
no sir, there's only one detected processor
|
|
|
02-14-2006, 01:13 PM
|
#7
|
Member
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 772
Rep:
|
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
|
|
|
02-14-2006, 01:13 PM
|
#8
|
Member
Registered: Feb 2006
Distribution: Debian 40r0
Posts: 103
Original Poster
Rep:
|
 I see... how can I enable the seccond...?
I ran the partition utility of the server and everything its ok with both proccessors....
|
|
|
02-14-2006, 01:15 PM
|
#9
|
Member
Registered: Feb 2006
Distribution: Debian 40r0
Posts: 103
Original Poster
Rep:
|
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
|
|
|
02-14-2006, 01:18 PM
|
#10
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
02-14-2006, 01:20 PM
|
#11
|
Member
Registered: Feb 2006
Distribution: Debian 40r0
Posts: 103
Original Poster
Rep:
|
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!
|
|
|
02-14-2006, 01:35 PM
|
#12
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
02-14-2006, 01:52 PM
|
#13
|
Member
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 772
Rep:
|
Sorry chaps, I just managed to confuse the issue. Blame me!
tobyl
|
|
|
02-14-2006, 02:05 PM
|
#14
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
02-14-2006, 03:47 PM
|
#15
|
Member
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|