Welcome to iraf.net Friday, May 17 2024 @ 11:25 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 IRAF Ram usage
   
AnTaR3s
 10/18/2012 10:54AM (Read 1701 times)  
+++--
Chatty

Status: offline


Registered: 10/24/2009
Posts: 58
HeyI 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

 
Profile Email
 Quote
fitz
 10/18/2012 10:54AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
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).

 
Profile Email
 Quote
AnTaR3s
 10/18/2012 10:54AM  
+++--
Chatty

Status: offline


Registered: 10/24/2009
Posts: 58
HeyInserting just flpr fixed the problem! Smilethanks

 
Profile Email
 Quote
   
Content generated in: 0.09 seconds
New Topic Post Reply

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