tilemaker icon indicating copy to clipboard operation
tilemaker copied to clipboard

Tile generation using --store is singlethreaded

Open lokkelvin2 opened this issue 4 years ago • 5 comments

Using --store to generate the asia extract seems to run in single-threaded mode. This is after reading the pbf and at the zoom xx: writing tile xxx of xxx stage. My machine runs a dual socket Xeon 8168 with 192gb of RAM and the --store cache is 315gb on a nvme ssd. I believe that the computation at this stage should be multithreaded. However, cpu usage is only on 1 out of 96 cores and my disk i/o is basically 0%.

I am using the CI generated Windows artifact from commit 4053d523a31596d0156cd0458d17c8c45dbbbaff .

Any ideas what I could be doing wrong?

lokkelvin2 avatar Aug 23 '21 12:08 lokkelvin2

It should be multithreaded at this phase. Also reading the pbf is multi-threaded.

Maybe try to start the process with explicit specify the number of threads with: --threads 96

kleunen avatar Aug 23 '21 13:08 kleunen

Thanks for the advice. I just retried it on my xeon machine and no dice, the CPU utilisation is still in the single digits. Strangely enough, the same binary runs multithreaded on a Ryzen 3600 pc when started without --store. I'll do some more investigation on the Xeon machine to see where the bottleneck is.

lokkelvin2 avatar Aug 25 '21 11:08 lokkelvin2

yes, if you could investigate what the problem might be, that would be helpful, because I honestly have no clue what could be the problem. It is the windows executable, correct ?

kleunen avatar Aug 25 '21 12:08 kleunen

Without --store it does run fine ?

kleunen avatar Aug 25 '21 19:08 kleunen

After some testing, I settled with generating the entire continent by merging countries together using --merge and running the commands sequentially with a batch script. This way, I can see some progress in the tile generation, and it runs multithreaded without using --store on my xeon machine.

I'm still not sure what caused the singlethreaded behaviour when using --store.

lokkelvin2 avatar Aug 31 '21 16:08 lokkelvin2