home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / vmsnet / internal / 1581 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  2.0 KB

  1. Path: sparky!uunet!stanford.edu!agate!spool.mu.edu!wupost!bu.edu!rpi!usc!news.service.uci.edu!unogate!mvb.saic.com!macro32
  2. From: DWING@UH01.Colorado.EDU (would rather be skiing ...)
  3. Newsgroups: vmsnet.internals
  4. Subject: Re: re:... idle terminals
  5. Message-ID: <01GQZRPT8V1U00JZ53@VAXF.COLORADO.EDU>
  6. Date: 10 Nov 92 23:44:36 GMT
  7. Organization: Macro32<==>Vmsnet.Internals Gateway
  8. Lines: 41
  9. X-Gateway-Source-Info: Mailing List
  10.  
  11. Stafford@Vax2.Winona.MSUS.EDU, writes:
  12.  
  13. >If FORCEX is not an issue, I cannot see why this is such a complex
  14. >problem.  We have an elementary DCL procedure servering as a good
  15. >idle process killer.  It can make execeptions based upon username,
  16. >group, terminal, job and kill from the top down, protect system jobs, have
  17. >on-off hour times for certain kills, most of the good stuff.
  18.  
  19. The examples on this list were how to AVOID getting terminated, not how to
  20. write an idle process terminator.
  21.  
  22. >Elementary
  23. >
  24. >        create Indexed file
  25. >        Loop:
  26. >        wait n unless first iteration (the max idle time)
  27. >        Get PID and process info
  28. >        Process exemptions
  29. >        Append padded USERNAME to F$TIME()
  30. >        Check Indexed file - does this key exist?
  31. >                if it does then the job has been idle for n minutes.
  32. >                                KILL it.
  33. >                if it does not exist, then Put this as a KEY to Indexed file
  34. >        repeat Loop
  35.  
  36. Cute.  But, remember, this is the MACRO32 list.  And $FORCEX is very important
  37. to ensure proper image rundown.  There are usually two reasons for idle
  38. process killers:
  39.  
  40.   o security
  41.   o reduce consumption of resources by idle processes
  42.  
  43. Your DCL procedure probably consumes more resources than you would save by
  44. killing a few idle processes.
  45.  
  46. The program WATCHER, written by Matt Madison, provides all of your features
  47. and lots more, does a $FORCEX before killing the process, and hardly consumes
  48. any CPU time at all.  It's free.
  49.  
  50. -Dan Wing, dwing@uh01.colorado.edu or wing_d@ucolmcc.bitnet (DGW11)
  51.  Systems Administrator, University Hospital, Denver
  52.