home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!chx400!aragorn.unibe.ch!iacrs1!haedener
- From: haedener@iacrs1.unibe.ch (Konrad Haedener)
- Newsgroups: comp.unix.aix
- Subject: Re: Running batchjobs without disturbing interactive usage, ok now?
- Message-ID: <1992Aug28.143928.4432@aragorn.unibe.ch>
- Date: 28 Aug 92 14:39:28 GMT
- References: <BIS.92Aug28152036@maud.ifi.uio.no>
- Sender: haedener@iacrs1 (Konrad Haedener)
- Reply-To: haedener@iacrs1.unibe.ch
- Followup-To: <BIS.92Aug28152036@maud.ifi.uio.no>
- Organization: University of Berne
- Lines: 58
-
- In article <BIS.92Aug28152036@maud.ifi.uio.no>, bis@ifi.uio.no (Bjorn Ivar Stark) writes:
- |> We tried to run heavy batchjobs with max nicefactor (eq. 20) and
- |> limited the RSS by setting the default RSS variable in
- |> /etc/security/limits file, so that the interactive grafical user
- |> could do his work more or less unotified of the batch runs (we
- |> hoped).
- |>
- |> However in 3.1.5 this didn't work satisfactory, and we had to
- |> dedicate this machine for grafical use (RS/6000 mod 550) and I
- |> heard that neither the low priority nor the RSS limit was
- |> implemented properly.
- |>
- |> However is there any reasen that it work o.k. now in 3.2?
- |>
- |> Anybody.
- |>
- |> --
- |> ------Vennlig hilsen-----
- |> Oystein Fosli, B240
- |> Norsk Hydro a.s Ph.: (472) 739660
- |> Postboks 200 Fax: (472) 739555
- |> 1321 STABEKK internet: bis@ifi.uio.no
- |> Norway
-
- Two suggestions:
-
- o quick-and-dirty:
-
- #include <stdio.h>
- #include <sys/sched.h>
-
- main()
- {
- pid_t procid;
- int prio;
-
- printf("Enter PID: ");
- scanf("%d", &procid);
- printf("\nEnter Priority: ");
- scanf("%d", &prio);
-
- setpri(procid,prio);
- }
-
- Enter the process id of your batch job and 126 as the priority
- (you need root privs). But beware: this is only an illustration of
- setpri(); terrible things will happen to your running system when
- you enter low values for the new priority.
-
- o solid-and-mature:
-
- use NQS (the Network Queueing System).
-
- --
- Konrad Haedener Phone: +41 31 65 42 25
- Institute for Physical Chemistry FAX: +41 31 65 44 99
- University of Berne
- Switzerland haedener@iacrs1.unibe.ch
-