Subject: Re: Ported: Tcsh 6.05 and Top3.3beta3
To: None <joshin@sei.com>
From: Greg Earle <earle@isolar.Tujunga.CA.US>
List: port-sparc
Date: 02/01/1995 17:46:25
> Tcsh 6.05 replacement to sh and csh (I like it better so sue me...)
> 
>   Not much of a port, mainly recompiled and changed the assumptions in
>         the code "if Sparc then SunOS must be the OS".

The current release of "tcsh" - 6.05.03 - builds without needing to be
"ported" at all on NetBSD/SPARC.  I only made one minor change to the
Imakefile:

netbsd4me# diff -rc1 Imakefile.dist Imakefile
*** Imakefile.dist      Fri Jan 20 16:37:15 1995
--- Imakefile   Mon Jan 30 19:55:27 1995
***************
*** 163,167 ****
  
! # ifdef i386BsdArchitecture
  #  define ConfigH bsd4.4
! # endif /* i386BsdArchitecture */
  
--- 163,167 ----
  
! # if defined(i386BsdArchitecture) || defined(NetBSDArchitecture)
  #  define ConfigH bsd4.4
! # endif /* i386BsdArchitecture || NetBSDArchitecture */
  
***************
*** 381,383 ****
--- 381,387 ----
  #else
+ #if defined(MipsBsdArchitecture) || defined(BSD386Architecture) || defined(NetBSDArchitecture)
+ TCSH_MANDIR = $(TCSHTOP)/man/cat$(MANSUFFIX)
+ #else
  TCSH_MANDIR = $(TCSHTOP)/man/man$(MANSUFFIX)
+ #endif
  #endif

tcsh 6.05.03 is available from

	ftp://tesla.EE.Cornell.EDU/pri/tcsh-6.05.tar.gz

> Top 3.3beta3 Great system info utility, tells about load, real and
>   virtual memory, individual processes and probably makes breakfast too ...

There has been a working machine/m_netbsd.c available for quite some time now:

	ftp://ftp.Resort.COM/pub/netbsd/netbsd-top-machine.c.gz

I've been using it on NetBSD/SPARC 1.0 for several months now without
much trouble; although I don't think I believe some of these "RES" values
shown below:

netbsd4me# top -n 58
load averages:  0.40,  0.28,  0.20    17:42:55
46 processes:  1 running, 43 sleeping, 2 stopped

Memory: Real: 12M/35M Virt: 1866M/2056M Free: 616K


  PID USERNAME PRI NICE   SIZE   RES STATE   TIME   WCPU    CPU COMMAND
  129 root       2    0 15480K 22540K sleep 189:01  3.71%  3.71% Xsun
 7540 earle      2    0   496K 2276K sleep   1:56  1.27%  1.27% xterm
 7539 earle      2    0   516K 2532K sleep   3:05  0.34%  0.34% xterm
 7544 earle      2    0   204K 1640K sleep   1:23  0.05%  0.05% xbiff
17204 root      40    0   180K  632K run     0:00  0.00%  0.00% top
 7633 root      18    0   436K 18316K sleep   0:13  0.00%  0.00% csh
   57 root       2    0    84K  312K sleep   5:27  0.00%  0.00% ypbind
   89 root      18    0   168K 32888K sleep   1:05  0.00%  0.00% cron
 7551 earle     18    0   728K 10128K sleep   0:09  0.00%  0.00% tcsh
 7552 earle     18    0   700K 8044K sleep   0:07  0.00%  0.00% tcsh
 7553 earle     18    0   704K 5336K sleep   0:05  0.00%  0.00% tcsh
   87 root      18    0    28K  148K sleep   2:04  0.00%  0.00% update
   23 root      10    0 10416K 4832K sleep   0:23  0.00%  0.00% mount_mfs
 7520 earle     10    0   372K 1564K sleep   0:01  0.00%  0.00% sh
 7511 root      10    0   308K 1324K sleep   0:01  0.00%  0.00% xdm
    1 root      10    0   228K  224K sleep   0:00  0.00%  0.00% init
...
 7545 earle      2    4  8676K 142168K sleep  18:52  0.00%  0.00% xmh
  105 root       2    0   332K 21092K sleep   0:14  0.00%  0.00% sendmail


Hmmn, only 36 Mbytes of RAM and 70+ of swap, don't think "xmh" is really using
up 142 Mb (and "cron" using 32 Mb)  :-)

(It also shows more processes when I say "-I" - show non-idle processes only -
 than I would expect.  Right now my load average is "0.10" and it is
 consistently showing 4-7 processes ... )

	- Greg