<p>Parallel processing is used only when indexes are created and<br>
in the second processing stage of updates. In both cases the<br>
number of parallel threads should not be too high. Indexing<br>
requires a lot of memory and having too many in parallel running<br>
actually slows down the process. Updates are generally run in<br>
parallel with other load (like rendering) and should therefore<br>
also not take up too many CPUs.</p>
<p><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #885.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="388745926" data-permission-text="Issue title is private" data-url="https://github.com/openstreetmap/osm2pgsql/issues/885" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/osm2pgsql/issues/885/hovercard" href="https://github.com/openstreetmap/osm2pgsql/issues/885">#885</a>.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/osm2pgsql/pull/959'>https://github.com/openstreetmap/osm2pgsql/pull/959</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Reduce max number of default parallel threads to 4</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/959/files#diff-0">options.cpp</a>
(3)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/osm2pgsql/pull/959.patch'>https://github.com/openstreetmap/osm2pgsql/pull/959.patch</a></li>
<li><a href='https://github.com/openstreetmap/osm2pgsql/pull/959.diff'>https://github.com/openstreetmap/osm2pgsql/pull/959.diff</a></li>
</ul>
<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/pull/959?email_source=notifications&email_token=AA6353TPN5KFUDV2KUDHXSLQORQULA5CNFSM4JAOOKP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HRSN33Q">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353TF7NMOPMFSQEYUWITQORQULANCNFSM4JAOOKPQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353VVHJ3LIQXDYGIVPQLQORQULA5CNFSM4JAOOKP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HRSN33Q.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/pull/959?email_source=notifications\u0026email_token=AA6353TPN5KFUDV2KUDHXSLQORQULA5CNFSM4JAOOKP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HRSN33Q",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/959?email_source=notifications\u0026email_token=AA6353TPN5KFUDV2KUDHXSLQORQULA5CNFSM4JAOOKP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HRSN33Q",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>