<p></p>
<p dir="auto">The 64 GB RAM isn't because it absolutely needs this, it is because it will be unbearably slow without it, i.e. it might take weeks instead of half a day to import the planet. So swap isn't going to help. And uncompressing before doesn't work either. That's not where the memory goes. And no, importing region by region doesn't work either. You really need that RAM.</p>
<p dir="auto">There is a memory-related fix in osm2pgsql master which is not in a released version yet. You might have some success with that.</p>
<p dir="auto">As this is a bug tracker and not a "help line" I am closing this issue now. If you are running with the recommended amount of memory and still have problems, open a new issue.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/1582#issuecomment-971692515">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353TM6GGIU66NIRJ6DBTUMPDC3ANCNFSM5IFKNN2Q">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AA6353RCTUG4OJXSLPXN5M3UMPDC3A5CNFSM5IFKNN22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHHVNTYY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/1582#issuecomment-971692515",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1582#issuecomment-971692515",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>