<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Barbara,<div class=""><br class=""></div><div class="">Ok, I’m a little puzzled as to why it won’t fit in memory, because the cluster doesn’t seem like it should be too luminous. </div><div class=""><br class=""></div><div class="">There are two things I can think of:</div><div class=""><br class=""></div><div class="">1) Obviously, we are limited by memory. I typically run these calculations on a machine with 32 GB of RAM, which is definitely sufficient for most cases (though I have encountered this problem myself before when trying to run with a large effective area). I’m not sure what the memory on your machine is, but unfortunately this algorithm is very memory-hungry. If you have access to a machine with more RAM, then you could move the calculation there, or, even better, if you can run the code in parallel (using mpi4py) on a parallel machine this would also help. </div><div class=""><br class=""></div><div class="">2) One thing we could try, which sounds a little annoying but nevertheless should work, is to split this problem up into multiple chunks, i.e., several short exposure times and then merge the event files together afterwards. As a first measure, this should definitely work. </div><div class=""><br class=""></div><div class="">So I would try first photons_per_chunk to 50e6, and then half your exposure time (if that doesn’t work, make it a quarter). After you make the observations we can merge them easily. </div><div class=""><br class=""></div><div class="">In any case, I see that this points to the need for me to tweak the algorithm a little bit, so that </div><div class=""><br class=""></div><div class="">a) the messages about running out of memory are more informative and point to a resolution</div><div class="">b) finding a way to cut down on memory usage, though this will be hard. </div><div class=""><br class=""></div><div class="">If you don’t mind, it would be immensely helpful if I could have a copy of your dataset, so I can figure out exactly what it is that is going on, and it lead me to a quicker resolution of the problem. If you’re ok with this, we can post it somewhere and you can privately email me the location at <a href="mailto:jzuhone@gmail.com" class="">jzuhone@gmail.com</a>. After I’m done, I’ll delete my copy of the data. </div><div class=""><br class=""></div><div class="">I’d be happy to try to find a way to improve the code soon, so that we don’t run into this problem again, but in the meantime I would suggest 1) or 2) above. What do you think? </div><div class=""><br class=""></div><div class="">Best,</div><div class=""><br class=""></div><div class="">John</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 22, 2015, at 10:01 AM, Barbara Ramirez <<a href="mailto:Barbara.Ramirez-Mosquera@uibk.ac.at" class="">Barbara.Ramirez-Mosquera@uibk.ac.at</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    <div class="moz-cite-prefix">Hello John!<br class="">
      Sure, I hadn't understand before. Here are my object properties:<br class="">
      <br class="">
      R200: 1.00654482691 Mpccm/h<br class="">
      Total Mass at R200: 3.65901447937e+14 Msun<br class="">
      Avg Temperature at R200: 5.70273 E 7 K<br class="">
      <br class="">
      I tried decreasing the Area to 2000 but I'm still getting the
      memory error.<br class="">
      <br class="">
      With a photons_per_chunk of: 10 E 6 I get:<br class="">
        <font color="#666666" class="">  RuntimeError: Number of photons
        generated for this chunk exceeds photons_per_chunk</font><br class="">
      With an increase of 10 (10 E 7 photons_per_chunk) I get the same
      Runtime error, but with an increase of 100 I get memory error!<br class="">
      <br class="">
      Again, observation parameters:<br class="">
          A = 2000.<br class="">
          exp_time = 100.0e3<br class="">
          redshift = 0.05<br class="">
      <br class="">
      Do you have any idea on how could we solve this?<br class="">
      <br class="">
      Thanks for your time!<br class="">
      <br class="">
    </div>
    <pre class="moz-signature" cols="72">-- 
Barbara L. Ramirez MSc.
Institut für Astro- und Teilchenphysik
University of Innsbruck</pre>
  </div>

_______________________________________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br class=""></div></blockquote></div><br class=""></div></body></html>