Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!rice!sun-spots-request From: andys@ulysses.att.com (Andy Sherman) Newsgroups: comp.sys.sun Subject: Re: Problems with 'top' on a Sun3x Keywords: SunOS Message-ID: <1990Aug13.235543.26158@rice.edu> Date: 12 Aug 90 23:28:36 GMT Sender: sun-spots-request@rice.edu Organization: Sun-Spots Lines: 21 Approved: Sun-Spots@rice.edu Originator: spots@titan.rice.edu X-Sun-Spots-Digest: Volume 9, Issue 305, message 2 X-Refs: Original: v9n284 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!