Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IRAF Ram usage

 
Post new topic   Reply to topic    iraf.net Forum Index -> General IRAF
View previous topic :: View next topic  
Author Message
AnTaR3s
Active IRAF User


Joined: 24 Oct 2009
Posts: 56

PostPosted: Thu Oct 18, 2012 10:54 am    Post subject: IRAF Ram usage Reply with quote

Hey

I am trying to use blkavg on about 13000 images and my script is very very simple:

...
blkavg (input="Ks_v20091104_00394_11.fit",output="b_Ks_v20091104_00394_11.fit",b1="2",b2="2",option="average")
blkavg (input="Ks_v20091104_00394_12.fit",output="b_Ks_v20091104_00394_12.fit",b1="2",b2="2",option="average")
blkavg (input="Ks_v20091104_00394_13.fit",output="b_Ks_v20091104_00394_13.fit",b1="2",b2="2",option="average")
...

The problem here is that IRAF continuously keeps everything in memory so that I end up filling up my RAM within a minute or so. Is there a way to prevent this or maybe a command that can purge the memory which I could insert in the script after every 10th line or so...?

thanks
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Sun Oct 21, 2012 2:39 am    Post subject: Reply with quote

If you're saying the memory used by the x_images.e binary is growing and you eventually get an 'out of memory' error, then this is a new bug I would have to fix. OTOH, if you're saying the memory usage reported by 'top' or 'free' grows with each image the I would say this is normal in the the sense that the system will try to cache data in memory (and swap out what's unneeded) all the time.

You can try inserting the command 'flpr 0' (zero, not oh) into your script to force the x_images.e binary to restart, but this won't have any effect on the system memory caching (which you shouldn't worry about anyway).
Back to top
View user's profile Send private message
AnTaR3s
Active IRAF User


Joined: 24 Oct 2009
Posts: 56

PostPosted: Tue Oct 23, 2012 2:43 pm    Post subject: Reply with quote

Hey

Inserting just flpr fixed the problem! Smile

thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> General IRAF All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.09 seconds