{"id":1905,"date":"2015-06-18T22:54:30","date_gmt":"2015-06-19T05:54:30","guid":{"rendered":"http:\/\/blogs.reed.edu\/shusterman_lab\/?p=1905"},"modified":"2015-08-12T16:10:46","modified_gmt":"2015-08-12T23:10:46","slug":"out-of-memory-errors-in-spartan","status":"publish","type":"post","link":"https:\/\/blogs.reed.edu\/shusterman_lab\/2015\/06\/out-of-memory-errors-in-spartan\/","title":{"rendered":"&#8216;Out of Memory&#8217; Errors in Spartan"},"content":{"rendered":"<p>The computers in C203 are equipped with i7 8-core processors and 8G of total RAM. This occasionally leads to &#8220;out of memory&#8221; errors. These errors are particularly common during Spartan DFT IR calculations (a typical output error message reads, &#8220;Error Occurred: Not enough total memory&#8221;).<\/p>\n<p>The error occurs because of a mismatch between the available memory and Spartan&#8217;s expectations regarding memory. Spartan normally expects to use all 8 cores and to find 2G\/core, but not all Spartan calculations actually demand this much memory. When a Spartan calculation actually demands all of the expected memory, e.g., the situation that occurs in DFT IR calculations of a certain size, Spartan discovers that the memory it expects (16G total) exceeds the memory available (8G or less), and an &#8220;out of memory&#8221; error is the result.<\/p>\n<p><!--more--><\/p>\n<p>The solution is to reduce the total amount of RAM memory that Spartan will look for. This can be accomplished by reducing the number of cores that Spartan uses. Here are two different ways to set this up:<\/p>\n<ol>\n<li><span style=\"color: #ff0000\"><strong>Automatic<\/strong><\/span> CPU allocation\n<ol>\n<li>Open <strong>Options: Preferences: Jobs<\/strong> and select <strong>Automatic<\/strong>. Click <strong>OK<\/strong>.<\/li>\n<li>Open <strong>Setup: Calculations<\/strong>, set the calculation parameters you require, and enter either <strong>CPUCNT=2<\/strong> or <strong>CPUCNT=3<\/strong> in the <strong>Options<\/strong> box. Click <strong>Submit<\/strong>.<\/li>\n<\/ol>\n<\/li>\n<li><span style=\"color: #ff0000\"><strong>Manual<\/strong><\/span> CPU allocation\n<ol>\n<li>Open <strong>Options: Preferences: Jobs<\/strong> and select <strong>Manual<\/strong>. Set the <strong>#Concurrent Molecules\/Job<\/strong> to <strong>1 molecule<\/strong>. Set <strong>#Cores\/Molecule<\/strong> to either <strong>2 cores<\/strong> or <strong>3 cores<\/strong>. Click <strong>Expert<\/strong> and set <strong>Per Job Limits: Memory Limit<\/strong> to <strong>6000 MB<\/strong> or less. Click <strong>OK<\/strong>.<\/li>\n<li>Open <strong>Setup: Calculations<\/strong>, set the calculation parameters you require, and click <strong>Submit<\/strong>. (No special options are needed.)<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>Either approach will reduce the total memory that Spartan expects to 6G or less. It is necessary to set Spartan&#8217;s memory allocation to substantially less than 8G because the Windows OS and user applications also require some of the available memory.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The computers in C203 are equipped with i7 8-core processors and 8G of total RAM. This occasionally leads to &#8220;out of memory&#8221; errors. These errors are particularly common during Spartan DFT IR calculations (a typical output error message reads, &#8220;Error&nbsp;&hellip; <a href=\"https:\/\/blogs.reed.edu\/shusterman_lab\/2015\/06\/out-of-memory-errors-in-spartan\/\">finish&nbsp;reading&nbsp;&#8216;Out of Memory&#8217; Errors in Spartan<\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[32,33,31,27],"class_list":["post-1905","post","type-post","status-publish","format-standard","hentry","category-spartan-howto","tag-cores","tag-cpus","tag-memory","tag-spartan"],"_links":{"self":[{"href":"https:\/\/blogs.reed.edu\/shusterman_lab\/wp-json\/wp\/v2\/posts\/1905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.reed.edu\/shusterman_lab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.reed.edu\/shusterman_lab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.reed.edu\/shusterman_lab\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.reed.edu\/shusterman_lab\/wp-json\/wp\/v2\/comments?post=1905"}],"version-history":[{"count":8,"href":"https:\/\/blogs.reed.edu\/shusterman_lab\/wp-json\/wp\/v2\/posts\/1905\/revisions"}],"predecessor-version":[{"id":1917,"href":"https:\/\/blogs.reed.edu\/shusterman_lab\/wp-json\/wp\/v2\/posts\/1905\/revisions\/1917"}],"wp:attachment":[{"href":"https:\/\/blogs.reed.edu\/shusterman_lab\/wp-json\/wp\/v2\/media?parent=1905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.reed.edu\/shusterman_lab\/wp-json\/wp\/v2\/categories?post=1905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.reed.edu\/shusterman_lab\/wp-json\/wp\/v2\/tags?post=1905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}