cancel
Showing results for 
Search instead for 
Did you mean: 

installation of GNU top

 
Highlighted

installation of GNU top

Hello!

I had tried the GNU top (top-3.6.1) depot package (HP-UX 11i v3). In during porcess of installation i got the ERROR messages:

ERROR: Unknown owner and/or group for file "/usr/local/bin/top". SUID and/or SGID bit was not set.

After installation i tried to execute /usr/local/bin/top:

# /usr/local/bin/top
/dev/kmem: reading mpid: Bad address

I saw:

# ls -l /dev/kmem
crw-r----- 1 bin sys 3 0x000001 Mar 13 2007 /dev/kmem
# ls -l /usr/local/bin/top
-rwxr-xr-x 1 root sys 141588 Oct 19 17:10 /usr/local/bin/top

I changed mode of file:

# chmod 2755 /usr/local/bin/top

And i executed:

# /usr/local/bin/top
/dev/kmem: reading mpid: Bad address

The ERROR stayed.
How i can remove cause of ERROR? Why did ERROR happen during installation process?

14 REPLIES 14
Highlighted
Acclaimed Contributor

Re: installation of GNU top

Why is GNU top better than HP's?

>changed mode of file:
# chmod 2755 /usr/local/bin/top

This sets the SGUI. You need chmod u+s,g-s.
Compare to /usr/bin/top.
Highlighted

Re: installation of GNU top

>> Why is GNU top better than HP's?

# dmesg| grep Physical
Physical: 8368188 Kbytes, lockable: 6099064 Kbytes, available: 6927468 Kbytes

i.e. the physical memory is 8368188 Kbytes, whereas /usr/bin/top shows:

Memory: 238668K (78820K) real, 463036K (161672K) virtual, 6481420K free Page# 1/5

>>Compare to /usr/bin/top.

# ls -l /usr/bin/top
-r-xr-xr-x 1 bin bin 145176 Feb 16 2007 /usr/bin/top
Highlighted
Acclaimed Contributor

Re: installation of GNU top

>the physical memory is 8368188 Kbytes

You can also get this from SAM.

>-r-xr-xr-x bin ... /usr/bin/top

It appears your foreign devil top wants to use SUID to do its work. Is this something you trust?
Did you try "chmod u+s,g-s"?
Highlighted
Honored Contributor

Re: installation of GNU top

hi,

you can also try glance.

e.g.

SRV2:home/yogeeraj>glance -m
..
--------------------------------------------------------------------------------
MEMORY REPORT Users= 2
Event Current Cumulative Current Rate Cum Rate High Rate
--------------------------------------------------------------------------------
Page Faults 58 58 82.8 82.8 82.8
Page In 24 24 34.2 34.2 34.2
Page Out 0 0 0.0 0.0 0.0
KB Paged In 0kb 0kb 0.0 0.0 0.0
KB Paged Out 0kb 0kb 0.0 0.0 0.0
Reactivations 0 0 0.0 0.0 0.0
Deactivations 0 0 0.0 0.0 0.0
KB Deactivated 0kb 0kb 0.0 0.0 0.0
VM Reads 0 0 0.0 0.0 0.0
VM Writes 0 0 0.0 0.0 0.0

Total VM : 1.20gb Sys Mem : 728.8mb User Mem: 450.3mb Phys Mem: 8.00gb


kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)

Re: installation of GNU top

>>you can also try glance.

Is it proprietary/commercial software?
Highlighted

Re: installation of GNU top

>>You can also get this from SAM

I havn't found this in my SMH (11i v3).

>>It appears your foreign devil top wants to use SUID to do its work. Is this something you trust?

I need to watch using of physical memory. :)

>>Did you try "chmod u+s,g-s"?

# chmod u+s,g-s /usr/local/bin/top; ls -l /usr/local/bin/top
-rwsr-xr-x 1 root sys 141588 Oct 19 17:10 /usr/local/bin/top

And:

# /usr/local/bin/top
/dev/kmem: reading mpid: Bad address

Highlighted
Honored Contributor

Re: installation of GNU top

hi again,

which version of HP-UX are you running? What type of installation is this?

revert

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Highlighted
Acclaimed Contributor

Re: installation of GNU top

>>you can also try glance.

>Is it proprietary/commercial software?

Yes. There is a trial version of glance with HP-UX.

>I haven't found this in my SMH (11i v3).

Under SAM it was under Performance.

>-rwsr-xr-x 1 root sys /usr/local/bin/top
># /usr/local/bin/top
/dev/kmem: reading mpid: Bad address

Ok, it doesn't work anyway.
Highlighted

Re: installation of GNU top

>>which version of HP-UX are you running? What type of installation is this?

# uname -a
HP-UX ... B.11.31 U ia64 2021222857 unlimited-user license
#
# model
ia64 hp server rx2660
#
# machinfo
...
OS info:
...
Release: HP-UX B.11.31
Version: U (unlimited-user license)
Machine: ia64
...
vmunix _release_version:
@(#) $Revision: vmunix: B.11.31_LR FLAVOR=perf