Welcome to iraf.net Sunday, May 19 2024 @ 11:12 PM GMT


 Forum Index > Archives > Sitemail Archives
 "nice" in IRAF?
   
Anonymous: Guest
 09/24/1999 06:59PM (Read 358 times)  



Dear IRAF,Is there any way to "nice" an IRAF task? I'm running "drizzle" on big
stacks of images and would like to be able to do some other things
meantime, but it hogs the CPU and memory so much it brings the system to
its knees. Thanks,James
-----------------------------------------------
| |
| James D. Lowenthal |
| Department of Physics and Astronomy |
| University of Massachusetts |
| Amherst, MA 01003 |
| Work: (413)545-3070 Home: (413)586-4088 |
| FAX: (413)545-4223 james@astro.umass.edu |
| www.astro.umass.edu/~james |
| |
-----------------------------------------------

 
Anonymous: Guest
 09/24/1999 06:59PM  



Hi James,
All you need to do is get the process id and execute the nice command
in a shell escape. For example, cl> prc
[05] pisces!23075(5A23X) HL bin$x_system.e
0
0
0
cl> !nice 10 23075Would renice the x_system.e process, whose id is 23075. In your case you're
looking for the x_drizzle executable in the prcache output.Cheers,
-Mike

 
Anonymous: Guest
 09/24/1999 06:59PM  



On Fri, 24 Sep 1999, James D. Lowenthal wrote:> Is there any way to "nice" an IRAF task? I'm running "drizzle" on big
> stacks of images and would like to be able to do some other things
> meantime, but it hogs the CPU and memory so much it brings the system to
> its knees. Mike wrote:> All you need to do is get the process id and execute the nice command
> in a shell escape. For example,
>
> cl> prc
> [05] pisces!23075(5A23X) HL bin$x_system.e
> 0
> 0
> 0
> cl> !nice 10 23075
>
> Would renice the x_system.e process, whose id is 23075. In your case you're
> looking for the x_drizzle executable in the prcache output.
There is an easier and more direct way, which will also get subprocesses.
First, any iraf background job (run with &Wink is automatically run at a nice
value of 4. To increase the nice level you can issue the command like
this: cl> <command> &10which should run the background command at a nice value of 10. - Doug

 
Anonymous: Guest
 09/24/1999 06:59PM  



> There is an easier and more direct way, which will also get subprocesses.
> First, any iraf background job (run with &Wink is automatically run at a nice
> value of 4. To increase the nice level you can issue the command likeActually I think 6 is the default, not that it matters much.If the operation is i/o bound or pages a lot, the nice won't make much
of a difference.

 
   

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login