<p>It should be. But remember you are allocating a large array in memory with NUM_BLOCKS elements.</p>

<p>So if you set it to 64, you are creating a memory array of 2^54 elements, as each element is 24 Bytes, you are allocating an array of ~393216TB size! I am not sure your operating system will like that very much ;-)</p>

<p>If you want to use the full 64bit ID space, then it is going to be very sparse, so using --cache-strategy sparse is the appropriate option.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/osm2pgsql/issues/23#issuecomment-17312329'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/g8smGCFOcVLF28Q-xX3zcbZOnvEVErrIUIS9wQQhfruEaCskRN1O6s3fgNd_i91K.gif' height='1' width='1'></p>