<div dir="ltr">Hi all,<div>I am currently setting up an OSM instance serving tiles based on the planet file. The spec is:</div><div>- Ubuntu 14.04</div><div>- 32 GB RAM, 8 cores, 1 TB of virtual volume (500 MB/sec throughput)</div><div><br></div><div>I followed the script by <a href="http://opentileserver.org/">http://opentileserver.org/</a></div><div><br></div><div>I witness utterly bad performance. Parts of the query take around 300+ seconds. Serving a tile takes approx. 20 minutes (1 tile!).</div><div><br></div><div>autovaccuum and fsync are turned off. The obvious performance measures have been applied. </div><div><br></div><div>Any help on this issue will be highly appreciated!</div><div><br></div><div>Cheers Theodor</div><div><br></div><div><br></div><div>log snippet:</div><div><div>2017-01-02 15:29:01 UTC LOG:  00000: execute <unnamed>: SELECT ST_AsBinary("way") AS geom,"type" FROM ( SELECT way, way_area AS area, COALESCE(landuse, leisure, "natural", highway, amenity, tourism) AS type</div><div>          FROM planet_osm_polygon</div><div>          WHERE way_area > 100000</div><div>          ORDER BY way_area DESC</div><div>        ) AS data WHERE "way" && ST_SetSRID('BOX3D(-10644926.3071125 -626172.1357125007,626172.1357124997 10644926.30711249)'::box3d, 900913)</div><div>2017-01-02 15:29:01 UTC LOCATION:  exec_execute_message, postgres.c:1935</div><div>2017-01-02 15:37:40 UTC LOG:  00000: duration: 519101.014 ms</div></div><div><div>2017-01-02 15:38:40 UTC LOG:  00000: execute <unnamed>: SELECT ST_AsBinary("way") AS geom FROM ( SELECT way, "natural" AS type, way_area AS area</div><div>          FROM planet_osm_polygon</div><div>          WHERE ("natural" IN ('water', 'pond')</div><div>            OR waterway IN ('basin', 'canal', 'mill_pond', 'pond', 'riverbank', 'stream'))</div><div>            AND way_area > 10000</div><div>        ) AS data WHERE "way" && ST_SetSRID('BOX3D(-10644926.3071125 -626172.1357125007,626172.1357124997 10644926.30711249)'::box3d, 900913)</div><div>2017-01-02 15:38:40 UTC LOCATION:  exec_execute_message, postgres.c:1935</div><div>2017-01-02 15:45:33 UTC LOG:  00000: duration: 412829.916 ms</div></div><div><br></div></div>