tilemill-project / tilemill

TileMill is a modern map design studio
https://tilemill-project.github.io/tilemill/
BSD 3-Clause "New" or "Revised" License
3.11k stars 527 forks source link

TileMill Export Optimization #2195

Open rayan opened 10 years ago

rayan commented 10 years ago

I'm currently exporting a medium-sized project to MBTiles on TileMill, using the command line, on a compute-optimized EC2 instance. After monitoring the output of top, it seems the CPU is being underutilized (the server has 32 vCPUs, but CPU usage stays around 900-1200%).

My layers are all being loaded from shapefiles, and I've moved the mapbox file directory from /usr/share/mapbox/ to the instance storage, to take advantage of the SSD for reads and writes.

Is there something in my configuration that's creating a bottleneck? Any suggestions on how to increase the speed?

Some more details about my setup:

Export settings:

System specs:

This is the export's current status:

[1h 50m 55s] 5.9367% 17.75m/299.05m @ 2.8k/s | 1d 5h 17m 38s left | ✓ 264.3k ■ 0 □ 17.49m fail 0

Here's the output of sudo perf top:

perf_top

And here's the output of top:

top

rayan commented 10 years ago

Here's the CPU utilization according to CloudWatch. Since the export process began, CPU utilization is staying around 30-40%:

cloudwatch