Xref: utzoo comp.sys.amiga.tech:4333 comp.sys.amiga:31221 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!ames!xanth!cs.odu.edu!tadguy From: tadguy@cs.odu.edu (Tad Guy) Newsgroups: comp.sys.amiga.tech,comp.sys.amiga Subject: Re: Dnet at 1200 baud Summary: use uptime, but it's still very inefficient Message-ID: <8212@xanth.cs.odu.edu> Date: 27 Mar 89 17:24:36 GMT References: <42700008@m.cs.uiuc.edu> Sender: news@cs.odu.edu Reply-To: tadguy@cs.odu.edu (Tad Guy) Followup-To: comp.sys.amiga Organization: Old Dominion University, Norfolk, VA Lines: 31 In-reply-to: schwager@m.cs.uiuc.edu [ This isn't a technical amiga discussion anymore. Followups to comp.sys.amiga. ] In article <42700008@m.cs.uiuc.edu>, schwager@m.cs writes: >Also, to use loadav Dnet expects a command called "la" on the Unix side. >Where can I get this? You're running an obsolete version of DNet. The current version (2.01) uses the more commonly found ``uptime'' command. You can get the current version via anonymous ftp from ucbvax.berkeley.edu (/pub/amiga/dnet*) or xanth.cs.odu.edu (/amiga/dnet-2.01.tar.Z). If you don't want to upgrade, you can use the ``uptime'' command in place of ``la'' in sloadav.c in the UNIX code. The old sloadav does work with the uptime command. However, you might not want to use sloadav. It's setup to invoke ``uptime'' for *each* update. This means that for every update, your server process forks, invokes a shell which execs uptime. This is a lot of overhead for a loadav display. A better solution would be either to have sloadav read /dev/kmem directly (security problems aside), or use RPC/XDR to get the data more efficiently (but not everyone has rpc, though it is available). I don't run loadav because of the amount of load it adds to the system... (Seems self defeating...) ...tad -- Tad Guy Old Dominion University, Norfolk, VA