"ps" on Solaris 2.x

"ps" on Solaris 2.x

Post by Duane T. M » Sun, 31 Oct 1993 03:48:05



"Jason" == Jason Austin <Jason> writes:

-> top(1) is not part of SunOS 4.
->
-> Note: it does build on SunOS 5.

Jason>       It builds but doesn't seem to work.  Spits out this error:

Jason> top: kvm_read for cpu: Error 0

Jason>       Has anyone got this to work?  This is under 5.2 with Suns C
Jason> compiler 2.0.1.

Mine works fine...built with gcc 2.4.5.

-- dtm

 
 
 

"ps" on Solaris 2.x

Post by Walid Cham » Sun, 31 Oct 1993 05:11:13




>    It builds but doesn't seem to work.  Spits out this error:

>top: kvm_read for cpu: Error 0

>    Has anyone got this to work?  This is under 5.2 with Suns C
>compiler 2.0.1.
>--
>Jason C. Austin


 Try "top" from :

Host pith.uoregon.edu

    Location: /pub/Solaris2.x/bin
           FILE -rwxr-xr-x      67208  Sep  7 13:12  top

 it did work on SunOS 5.2

 Walid
 -----

 
 
 

"ps" on Solaris 2.x

Post by George Lindho » Sun, 31 Oct 1993 08:10:31



Quote:> "Jason" == Jason Austin <Jason> writes:

> -> top(1) is not part of SunOS 4.
> ->
> -> Note: it does build on SunOS 5.
> Jason>  It builds but doesn't seem to work.  Spits out this error:
> Jason> top: kvm_read for cpu: Error 0
> Jason>  Has anyone got this to work?  This is under 5.2 with Suns C
> Jason> compiler 2.0.1.

> Mine works fine...built with gcc 2.4.5.

Same here. Did you install it with group=sys and set-gid permission? top
needs that to read the kernel structures.

   George

--
George Lindholm                                  phone:    (604) 822-4375
University Computing Services, UBC               fax:      (604) 822-5116

V6T 1Z2

 
 
 

"ps" on Solaris 2.x

Post by Casper H.S. D » Sun, 31 Oct 1993 19:13:47



>    It builds but doesn't seem to work.  Spits out this error:
>top: kvm_read for cpu: Error 0
>    Has anyone got this to work?  This is under 5.2 with Suns C
>compiler 2.0.1.

Top expects the CPUs to be adjactant in the cpus array, they are not
on certain MP machines.  Do you have a 10/52 with two modules?
(both cpus on a seperate Mbus module)

Casper