<div dir="ltr"><div>We compile 64-bit.</div>Sorry, probably I gave not clear explanation. <div>It does not fails at 2GB, after we insert data into repo-ng we still have 5GB. </div><div>Repo-ng utilizes 2 GB for the inserted data file. And in the moment of error (when repo-ng fails) this 2GB get free.</div><div>That what I was saying. So repo-ng fails on exact same memory that was in a moment before error (5GB). </div><div> </div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(0,0,0);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:13.3333330154419px;line-height:18.2000007629395px">Best Regards,</span><br><div><span style="color:rgb(0,0,0);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:13.3333330154419px;line-height:18.2000007629395px">Alexander Ni</span></div><div><span style="color:rgb(0,0,0);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:13.3333330154419px;line-height:18.2000007629395px"><br></span></div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Jun 29, 2017 at 3:12 AM, Nick Briggs <span dir="ltr"><<a href="mailto:nicholas.h.briggs@gmail.com" target="_blank">nicholas.h.briggs@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Did you happen to compile it as a 32-bit program instead of 64-bit?   Suspicious that it fails at 2 GB.<span class=""><div><br><div><blockquote type="cite"><div>On Jun 28, 2017, at 9:49 AM, Alexander Ni <<a href="mailto:alexni1992@gmail.com" target="_blank">alexni1992@gmail.com</a>> wrote:</div><br class="m_-1846514284949454901Apple-interchange-newline"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span style="font-size:12.8px"><br class="m_-1846514284949454901Apple-interchange-newline">std::bad_alloc is usually associated with a memory overflow. Run `watch free -m` to see if the machine is running out of memory.</span></blockquote><div><span style="font-size:12.8px"><br></span></div><div>We have 5 Gbyte of free memory. In the next moment after the error repo-ng just release the 2 GB that it used to store the data.   </div><div class="gmail_extra"><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div class="m_-1846514284949454901gmail_signature"><div dir="ltr"><div><br></div></div></div></div></div></div></blockquote></div></div></span></div></blockquote></div><br></div>