<p></p>
<p>Also I found that there is a little inconsistent information about --slim mode and required cache size.</p>
<p>In <a href="https://osm2pgsql.org/doc/manual.html#caching" rel="nofollow">8.3 Caching</a> section:</p>
<pre><code> The rule of thumb in slim mode is as follows: use the size of the PBF file you are trying to import or about 75% of RAM, whatever is smaller.
</code></pre>
<p>In <a href="https://osm2pgsql.org/doc/manual.html#middle-command-line-options" rel="nofollow">8.5 Middle Command Line Options</a> section:</p>
<pre><code> As a rule of thumb, give a bit more than the size of the import file in PBF format.
</code></pre>
<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/discussions/1433#discussioncomment-506061">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353UYMM6B7XT7EYO6PX3TER4IVANCNFSM4ZQG5ZSQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353R3R2F7YSKBVWM5DLDTER4IVA5CNFSM4ZQG5ZS2YY3PNVWWK3TUL52HS4DFWFCGS43DOVZXG2LPNZBW63LNMVXHJKTDN5WW2ZLOORPWSZGOAAD3RTI.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/discussions/1433#discussioncomment-506061",
"url": "https://github.com/openstreetmap/osm2pgsql/discussions/1433#discussioncomment-506061",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>