jms@tardis.tymnet.com (Joe Smith) (08/01/90)
I picked up the latest sources to the 'top' program from Rice the other day, and it worked fine on a 3/50 and a 3/60, but not on a 3/480. After recompiling on the 3/480, it did the opposite. 'top' was showing the top 10 users of the CPU, but not the command they were running. Conclusion: With 4.0.3, you could get away with a single executable binary for both Sun-3 and Sun-3x systems, but that no longer works with 4.1 of SunOS. Due to kvm differences, single binary for 'top' will not run on both a Sun-3 and a Sun-3x machine. Therefore it should not be installed in /usr/local or any other common directory on the /usr partition. It should be installed in the appropriate /usr/kvm partition. For instance: install -s -o root -m 2755 -g kvm top /usr/kvm/local/top ln -s /usr/kvm/local/top /usr/local/top This warning probably needs to be added to the sources on rice. Joe Smith (408)922-6220 | SMTP: jms@tardis.tymnet.com or jms@gemini.tymnet.com BT Tymnet Tech Services | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms PO Box 49019, MS-C41 | BIX: smithjoe | 12 PDP-10s still running! "POPJ P," San Jose, CA 95161-9019 | humorous dislaimer: "My Amiga speaks for me."
andys@ulysses.att.com (Andy Sherman) (08/13/90)
In article <1990Aug2.002508.16683@rice.edu> jms@tardis.tymnet.com (Joe Smith) writes: >I picked up the latest sources to the 'top' program from Rice the other >day, and it worked fine on a 3/50 and a 3/60, but not on a 3/480. After >recompiling on the 3/480, it did the opposite. 'top' was showing the top >10 users of the CPU, but not the command they were running. > >Conclusion: With 4.0.3, you could get away with a single executable binary >for both Sun-3 and Sun-3x systems, but that no longer works with 4.1 of >SunOS. Due to kvm differences, single binary for 'top' will not run on >both a Sun-3 and a Sun-3x machine. This started in 4.0.3, not 4.1. You can hack top to do all of its kernel accesses using the kvm_ routines and then link with -lkvm. If you use the shared library, one executable will work for both architectures, since libkvm.so will be picked up from the correct /usr/kvm partition at run time. Andy Sherman/AT&T Bell Laboratories/Murray Hill, NJ AUDIBLE: (201) 582-5928 READABLE: andys@ulysses.att.com or att!ulysses!andys What? Me speak for AT&T? You must be joking!