home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume6 / xnetld / patch1 / README.RUPRPC next >
Encoding:
Text File  |  1990-03-20  |  1.8 KB  |  54 lines

  1.  
  2. Changes to xnetload to use rup-like RPC for remote load:
  3. =====================================================a=
  4.  
  5. By defining RUPRPC at compile time the getload function uses Sun's RPC
  6. mechanism to obtain remote loads from rstatd(8). This is likely to be the
  7. better alternative on systems where this service is available, since rwhod(8)
  8. may have prohibitive impact on network load and is not run at
  9. many sites for this reason.
  10.  
  11. Patches:
  12.  
  13. getload.c:
  14.  
  15.     With RUPRPC defined, getload uses a simple callrpc(). The details
  16.     of the mechanism are gleaned from the rup(1) source.
  17.     Note that xnetload expects getload to return the load value in
  18.     rwhod format, hence the actual load value is multiplied by 100
  19.     and truncated to a integer.
  20.  
  21. xnetload.c:
  22.  
  23.     Allow defining DEFREMUPDATE in the Makefile.
  24.  
  25. Imakefile:
  26.  
  27.     When compiling on Suns, the RPC-based remote load mechanism is
  28.     enabled and the default update interval set to 5 seconds (same as
  29.     for local load).
  30.  
  31.     A little recursive-make hack ensures that getload.c is compiled with
  32.     Sun's cc compiler. gcc doesn't like some of the syntax in
  33.     header files in /usr/include/rpc and /usr/include/rpcsvc.
  34.     The CCOPTIONS definition in the recursive call to make may have to
  35.     be patched to match the CCOPTIONS used for gcc (e.g., put in
  36.     -f68881 if gcc uses -m68881).
  37.  
  38.     The old X11R3 Load widget code and header files are in subdirectory
  39.     X11, and the Imakefile takes that into account.
  40.  
  41. Bugs:
  42.     Still uses R3 Load widget.
  43.  
  44.     The callrpc() function used to perform the RPC does not allow
  45.     timeout specification.  So when a machine is down or not running
  46.     rstatd, xnetload will discover that only after a delay of several
  47.     (tens of) seconds.  When monitoring more than one machine,
  48.     all the displays will be slowed down by this delay.
  49.  
  50.                     Andreas Stolcke
  51.                     stolcke@icsi.berkeley.edu
  52.                     2/21/90
  53.  
  54.