Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

render_list multi threading is not working, it seems

オープン
#405 コメント 13 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp, postgresql

調査の方向性

まず、ズーム 15 で --num-threads=40 を指定して render_list コマンドを実行し、次にレポートに記載されている renderd の設定と PostgreSQL の設定を確認します。観測されたスレッドとリソースの使用状況を、想定される動作と比較します。マルチスレッドが機能しているかどうかを判断し、機能していない場合は具体的な設定変更または実装変更を文書化できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Hi Team,

Its rather asking for help, presumably not a bug (not sure).

I have followed this page to configure postgres with OSM planet data and configured mod_tile and renderd.

I have a cloud VM with 350GB RAM and 46 threads to use for this exercise. Hence, I have updated the postgres configure parameters as mentioned below to take most out of available resources.

shared_buffers = 200GB
work_mem = 10GB
maintenance_work_mem = 40GB
effective_cache_size = 40GB
max_connections = 100

I was able to render the tiles successfully, however, my goal is to pre-generate all zoom level tiles and hence executed below command

render_list -m default -a -z 0 -Z 19 --num-threads=40

Till zoom level 13, it was too fast but later started getting slow, I know the number of tiles to be generated gets exponential as zoom level goes up.

So tried with just zoom level only 15 with setup, surprisingly, no major consumption of RAM and the process is too slow even with 40 threads.

render_list -m default -a -z 15 -Z 15 --num-threads=40

Just wondering if this threads usage is working fine or am I missing anything to make most out of available resources to generate tiles quickly? Any suggestions would be greatly appreciated.

-Prem

主要言語
C++
スター
318
フォーク
199
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openstreetmap/mod_tile のほかの issue

openstreetmap/mod_tile の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。