{"id":147,"date":"2021-12-31T13:10:05","date_gmt":"2021-12-31T13:10:05","guid":{"rendered":"\/\/localhost\/xcreate.com\/macminer\/?p=147"},"modified":"2022-01-01T03:52:32","modified_gmt":"2022-01-01T03:52:32","slug":"v0-3-command-memory-patch","status":"publish","type":"post","link":"\/\/xcreate.com\/macminer\/news\/2021\/12\/v0-3-command-memory-patch\/","title":{"rendered":"v0.3 Command Memory Patch"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"size-medium wp-image-11 aligncenter\" src=\"http:\/\/localhost\/xcreate.com\/macminer\/wp-content\/uploads\/2021\/11\/icon_512x512-300x300.png\" alt=\"\" width=\"300\" height=\"300\" srcset=\"\/\/xcreate.com\/macminer\/wp-content\/uploads\/2021\/11\/icon_512x512-300x300.png 300w, \/\/xcreate.com\/macminer\/wp-content\/uploads\/2021\/11\/icon_512x512-150x150.png 150w, \/\/xcreate.com\/macminer\/wp-content\/uploads\/2021\/11\/icon_512x512-500x500.png 500w, \/\/xcreate.com\/macminer\/wp-content\/uploads\/2021\/11\/icon_512x512.png 512w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Thanks to reports from some of our users we are happy to announce that the memory leak that was introduced in version 0.2 has now been patched.<\/p>\n<p>For technical users, the leak was coming from our switch to the metal api of which generated autorelease pool allocated command buffers. While command buffers are\u00a0extremely lightweight single use objects which are released in the autoreleasepool lifecycle, mining calculations on the GPUs can require over 100 buffers a second, which adds up fast. The solution here was to force handle the command buffer memory deallocation.<\/p>\n<p>For further reading see\u00a0<a href=\"https:\/\/developer.apple.com\/library\/archive\/documentation\/Miscellaneous\/Conceptual\/MetalProgrammingGuide\/Cmd-Submiss\/Cmd-Submiss.html\" target=\"_blank\" rel=\"noopener\">Command Organization and Execution Model<\/a>.<\/p>\n<p>Happy new year<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thanks to reports from some of our users we are happy to announce that the memory leak that was introduced in version 0.2 has now been patched. For technical users, the leak was coming from our switch to the metal api of which generated autorelease pool allocated command buffers. While command buffers are\u00a0extremely lightweight single [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"\/\/xcreate.com\/macminer\/wp-json\/wp\/v2\/posts\/147"}],"collection":[{"href":"\/\/xcreate.com\/macminer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/xcreate.com\/macminer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/xcreate.com\/macminer\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/xcreate.com\/macminer\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":7,"href":"\/\/xcreate.com\/macminer\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":165,"href":"\/\/xcreate.com\/macminer\/wp-json\/wp\/v2\/posts\/147\/revisions\/165"}],"wp:attachment":[{"href":"\/\/xcreate.com\/macminer\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/xcreate.com\/macminer\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/xcreate.com\/macminer\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}