home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.misc:4180 comp.unix.questions:13454 comp.sys.sgi:16463 comp.graphics:11907
- Newsgroups: comp.unix.misc,comp.unix.questions,comp.sys.sgi,comp.graphics
- 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
- From: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
- Subject: Re: Interactive vs Background users
- References: <1dsh2fINNeok@manuel.anu.edu.au> <1992Nov13.042252.11811@kurango.cit.gu.edu.au> <1992Nov15.143104.6301@discus.technion.ac.il>
- Message-ID: <BxsApH.4FH@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Reply-To: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
- Organization: MRL - UIUC
- Date: Mon, 16 Nov 1992 00:58:27 GMT
- Lines: 48
-
- In article <1992Nov15.143104.6301@discus.technion.ac.il>, ori@marvin.technion.ac.il (Ori Degani)
- writes:
- |>In article <1992Nov13.042252.11811@kurango.cit.gu.edu.au>, anthony@kurango.cit.gu.edu.au (Anthony
- |>Thyssen) writes:
- |>|> aps583@huxley.anu.edu.au (Anthony P Scott) writes:
- |>|> | The problem is that they are only used
- |>|> | for a small part of the day and certainly not at night. WE wish to
- |>|> | soak up the excess CPU cycles by running GAUSSIAN and other cpu
- |>|> | intensive programs in the background.
- |>|> |
- |>|> | Unfortunately when an interactive user comes along the terminal response
- |>|> | is terrible, they get upset and we are forced to kill the background
- |>|> | proccess.
- |>|> |
- |>|> If you nice the background process (heavly) you will find that the
- |>|> backgroud program only runs when no other process is available.
- |>|>
- |>|> IE: instead for running
- |>|>
- |>|> gaussian &
- |>|>
- |>|> run
- |>|>
- |>|> nice -15 gaussian &
- |>|>
- |>
- |> Doesn't this make priority very HIGH?!
- |>
- |>|>
- |>|> This puts the programs prioity very low. so if the machine is not busy
- |>|> it will get run otherwise it will wait until the cpu is free.
-
- to make life interesting, nice has different syntaxes depending on the
- shell invoking it. probably, Anthony Thyssen is using sh or a derivative,
- while Ori Degani is using csh or a derivative.
-
- However, nice is quite useless for this kind of problems. The problem
- is that as soon as the machine has nothing to do, it resumes work
- on gaussian, and "nothing to do" is defined on a time scale too fast
- for humans. So for example, between one keystroke and the next.
-
- SGI users are particularly lucky to have the 'npri' command which
- allows to define the time slice, which is the critical parameter.
- --
- Furio Ercolessi
- Materials Research Laboratory | Intl School for Advanced Studies
- Univ. of Illinois at Urbana-Champaign | Trieste, Italy
- furio@uiuc.edu | furio@sissa.it
-