From shenkin[ AT ]still3.chem.columbia.edu Thu Feb 3 18:46:51 1994 Received: from mailhub.cc.columbia.edu for shenkin \\at// still3.chem.columbia.edu by www.ccl.net (8.6.4/930601.1506) id RAA20347; Thu, 3 Feb 1994 17:59:31 -0500 Received: from still3.chem.columbia.edu by mailhub.cc.columbia.edu with SMTP id AA12656 (5.65c+CU/IDA-1.4.4/HLK for chemistry;at;ccl.net); Thu, 3 Feb 1994 17:59:30 -0500 Received: by still3.chem.columbia.edu (930416.SGI/930416.SGI.AUTO) for *- at -*cunixf.cc.columbia.edu:chemistry*- at -*ccl.net id AA22244; Thu, 3 Feb 94 17:59:28 -0500 Date: Thu, 3 Feb 94 17:59:28 -0500 From: shenkin:~at~:still3.chem.columbia.edu (Peter Shenkin) Message-Id: <9402032259.AA22244:~at~:still3.chem.columbia.edu> To: , chemistry /at\ccl.net Subject: Re: CCL:Deprioritizing SGI unix runs > From: > Date: Thu, 03 Feb 1994 14:21:38 -0500 (EST) > Precedence: bulk > > I recall that there was a message over the net about something > better than "nice" (which hardly works at all). Can anyone tell me > how to keep background jobs from slowing foreground jobs to a > crawl? Thanks. "man npri"; example: (as superuser, unless it's your job): npri -h 150 -p will give the existing job a non-degrading priority of 150. High priorities (like high "nice" values) slow the process down. 150 is a good value for background jobs which should never preempt interactive work to a significant extent. In other words, a job with this priority, if it's the only user process on the system, will use 99+% of the CPU (e.g., at night), but it will use essentially 0% if someone is at the console interacting with, say, a molecular graphics program. The difference between npri and nice is that npri gives a *non- degrading* priority. "nice" affects the aging of priorities. You can also say, "npri -h 150 " to start up a job with a non-degrading priority of 150. Hope this helps.... -P. ***************************************************************************** ********************** "So much for global warming...." ********************* Peter S. Shenkin, Box 768 Havemeyer Hall, Dept. of Chemistry, Columbia Univ., New York, NY 10027; shenkin&$at$&still3.chem.columbia.edu; (212) 854-5143