home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / misc / 4180 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  2.7 KB

  1. Xref: sparky comp.unix.misc:4180 comp.unix.questions:13454 comp.sys.sgi:16463 comp.graphics:11907
  2. Newsgroups: comp.unix.misc,comp.unix.questions,comp.sys.sgi,comp.graphics
  3. Path: sparky!uunet!pmafire!mica.inel.gov!ux1!news.byu.edu!eff!sol.ctr.columbia.edu!emory!swrinde!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uimrl7.mrl.uiuc.edu!ercolessi
  4. From: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
  5. Subject: Re: Interactive vs Background users
  6. References: <1dsh2fINNeok@manuel.anu.edu.au> <1992Nov13.042252.11811@kurango.cit.gu.edu.au> <1992Nov15.143104.6301@discus.technion.ac.il>
  7. Message-ID: <BxsApH.4FH@news.cso.uiuc.edu>
  8. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  9. Reply-To: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
  10. Organization: MRL - UIUC
  11. Date: Mon, 16 Nov 1992 00:58:27 GMT
  12. Lines: 48
  13.  
  14. In article <1992Nov15.143104.6301@discus.technion.ac.il>, ori@marvin.technion.ac.il (Ori Degani)
  15. writes:
  16. |>In article <1992Nov13.042252.11811@kurango.cit.gu.edu.au>, anthony@kurango.cit.gu.edu.au (Anthony
  17. |>Thyssen) writes:
  18. |>|> aps583@huxley.anu.edu.au (Anthony P Scott) writes:
  19. |>|> |  The problem is that they are only used
  20. |>|> | for a small part of the day and certainly not at night. WE wish to
  21. |>|> | soak up the excess CPU cycles by running GAUSSIAN and other cpu
  22. |>|> | intensive programs in the background.
  23. |>|> |
  24. |>|> | Unfortunately when an interactive user comes along the terminal response
  25. |>|> | is terrible, they get  upset and we are forced to kill the background
  26. |>|> | proccess.
  27. |>|> |
  28. |>|> If you nice the background process (heavly) you will find that the
  29. |>|> backgroud program only runs when no other process is available.
  30. |>|> 
  31. |>|> IE: instead for running
  32. |>|> 
  33. |>|>       gaussian &
  34. |>|> 
  35. |>|> run
  36. |>|> 
  37. |>|>      nice -15 gaussian &
  38. |>|> 
  39. |>
  40. |>  Doesn't this make priority very HIGH?!
  41. |>
  42. |>|> 
  43. |>|> This puts the programs prioity very low. so if the machine is not busy
  44. |>|> it will get run otherwise it will wait until the cpu is free.
  45.  
  46. to make life interesting, nice has different syntaxes depending on the 
  47. shell invoking it.  probably, Anthony Thyssen is using sh or a derivative, 
  48. while Ori Degani is using csh or a derivative.
  49.  
  50. However, nice is quite useless for this kind of problems.  The problem
  51. is that as soon as the machine has nothing to do, it resumes work
  52. on gaussian, and "nothing to do" is defined on a time scale too fast
  53. for humans.  So for example, between one keystroke and the next.
  54.  
  55. SGI users are particularly lucky to have the 'npri' command which
  56. allows to define the time slice, which is the critical parameter.   
  57. --
  58. Furio Ercolessi
  59. Materials Research Laboratory           |   Intl School for Advanced Studies
  60. Univ. of Illinois at Urbana-Champaign   |   Trieste, Italy
  61. furio@uiuc.edu                          |   furio@sissa.it
  62.