Unix Technical Forum

Top and 4 CPU's

This is a discussion on Top and 4 CPU's within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> I installed top from sunfreeware. I am running on a SS20 with 4x100 HyperSPARC CPU's. Top's show only the ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 07:36 AM
Sean
 
Posts: n/a
Default Top and 4 CPU's

I installed top from sunfreeware. I am running on a SS20 with 4x100
HyperSPARC CPU's. Top's show only the total for all the CPU's (as far
as I can tell). I have read the man page. Anyone know how to get it to
show the load on each CPU?

Thanks!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 07:36 AM
Oscar del Rio
 
Posts: n/a
Default Re: Top and 4 CPU's

Sean wrote:

> I installed top from sunfreeware. I am running on a SS20 with 4x100
> HyperSPARC CPU's. Top's show only the total for all the CPU's (as far as
> I can tell). I have read the man page. Anyone know how to get it to show
> the load on each CPU?
>
> Thanks!
>


Try "mpstat 1" (change 1 with any time interval you want)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 07:36 AM
Sean
 
Posts: n/a
Default Re: Top and 4 CPU's

On 2004-05-02 06:16:35 -0700, Oscar del Rio <delrio@mie.utoronto.ca> said:


thanks but what i wanted to know is how to get top to show all cpu's
like it does on linux or *bsd (they have one line per cpu) that can be
toggled by hitting '1'

thanks!

> Sean wrote:
>
>> I installed top from sunfreeware. I am running on a SS20 with 4x100
>> HyperSPARC CPU's. Top's show only the total for all the CPU's (as far
>> as I can tell). I have read the man page. Anyone know how to get it to
>> show the load on each CPU?
>>
>> Thanks!
>>

>
> Try "mpstat 1" (change 1 with any time interval you want)



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-12-2008, 07:36 AM
Barbie LeVile
 
Posts: n/a
Default Re: Top and 4 CPU's

On Sun, 2 May 2004 12:31:03 -0700
Sean <sahafeez.nospam@spamsucks.zaphodb.org> wrote:
>
>
> thanks but what i wanted to know is how to get top to show all cpu's
> like it does on linux or *bsd (they have one line per cpu) that can be
>


You can't, top on solaris does not support that.


--
Barbie - Prayers are like junkmail for Jesus

I have seen things you lusers would not believe.
I've seen Sun monitors on fire off the side of the multimedia lab.
I've seen NTU lights glitter in the dark near the Mail Gate.
All these things will be lost in time, like the root partition last
week. Time to die.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-12-2008, 07:36 AM
Sean
 
Posts: n/a
Default Re: Top and 4 CPU's

On 2004-05-02 13:56:07 -0700, Barbie LeVile <barbie@gods-inc.de> said:


well that sucks.

thanks all!

> On Sun, 2 May 2004 12:31:03 -0700
> Sean <sahafeez.nospam@spamsucks.zaphodb.org> wrote:
>>
>>
>> thanks but what i wanted to know is how to get top to show all cpu's
>> like it does on linux or *bsd (they have one line per cpu) that can be
>>

>
> You can't, top on solaris does not support that.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-12-2008, 07:36 AM
Glenn
 
Posts: n/a
Default Re: Top and 4 CPU's

> + On 03-Maj-04 06:07:41
+Sean <sahafeez.nospam@spamsucks.zaphodb.org> wrote

>>> thanks but what i wanted to know is how to get top to show all cpu's
>>> like it does on linux or *bsd (they have one line per cpu) that can be
>>>

>>
>> You can't, top on solaris does not support that.



>well that sucks.



Maybe, but top on (for example) linux also sucks since it cant let the
processes "shift" between the CPU's like the solaris top.

I would like to have a combination of the two types in one program
that I can run on both my sparc/solaris and x86/linux SMP machines.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-12-2008, 07:43 AM
u n d e r a c h i e v e r
 
Posts: n/a
Default Re: Top and 4 CPU's

On Sun, 2 May 2004 01:45:34 -0700, Sean <sahafeez.nospam@spamsucks.zaphodb.org> wrote:
> I installed top from sunfreeware. I am running on a SS20 with 4x100
> HyperSPARC CPU's. Top's show only the total for all the CPU's (as far
> as I can tell). I have read the man page. Anyone know how to get it to
> show the load on each CPU?


try prstat if the system is Solaris 8 or later

--
u n d e r a c h i e v e r
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-12-2008, 07:45 AM
Scott Howard
 
Posts: n/a
Default Re: Top and 4 CPU's

u n d e r a c h i e v e r <takeme2yourNOMORESPAMPLEASE@rocketmail.com> wrote:
>> I installed top from sunfreeware. I am running on a SS20 with 4x100
>> HyperSPARC CPU's. Top's show only the total for all the CPU's (as far
>> as I can tell). I have read the man page. Anyone know how to get it to
>> show the load on each CPU?

>
> try prstat if the system is Solaris 8 or later


pre-CPU utilisation on a Solaris system is relatively useless. Processes
will move about between CPUs several times a second, so if a machine is
overall 50% busy, you'll find that the individual CPUs will basically
be 50% busy each - not half at 100% and the other half at 0%.

If you really do want the numbers, you can get the per-cpu load using
mpstat.

Scott.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-12-2008, 07:45 AM
Scott Richardson
 
Posts: n/a
Default Re: Top and 4 CPU's


"Scott Howard" <scott@hunterlink.net.au> wrote in message
news:1086402584.452445@docbert...
> u n d e r a c h i e v e r <takeme2yourNOMORESPAMPLEASE@rocketmail.com>

wrote:
> >> I installed top from sunfreeware. I am running on a SS20 with 4x100
> >> HyperSPARC CPU's. Top's show only the total for all the CPU's (as far
> >> as I can tell). I have read the man page. Anyone know how to get it to
> >> show the load on each CPU?

> >
> > try prstat if the system is Solaris 8 or later

>
> pre-CPU utilisation on a Solaris system is relatively useless. Processes
> will move about between CPUs several times a second, so if a machine is
> overall 50% busy, you'll find that the individual CPUs will basically
> be 50% busy each - not half at 100% and the other half at 0%.
>
> If you really do want the numbers, you can get the per-cpu load using
> mpstat.
>
> Scott.


Even better than that - check out DPMonitor at www.deltek.us - fully
licensed version will monitor all CPU's and a whole buncg more, while
incurring significantly less overhead in the process, (meaured at less
than 1% over time).

Regards,
Scott (a different one).


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com