I executed command "renderd -f -c /usr/local/etc/renderd.conf". I want to know how much time will it take to completely load India map tiles on local.

asked 06 Jun '19, 06:59

Puranjay's gravatar image

accept rate: 0%

I assume this largely depend on CPU, memory, disk speed. Since you provide none of those parameters, I would expect it will be hard to answer your questions.

(06 Jun '19, 10:02) escada

But when I was following the wiki docs there was no command to provide the CPU parameters. It was asked only in osm2pgsql command.

(06 Jun '19, 10:53) Puranjay

I'm guessing you've followed https://switch2osm.org/manually-building-a-tile-server-18-04-lts/ and got as far as "Running renderd for the first time"?

(06 Jun '19, 11:11) SomeoneElse ♦

Yes, exactly. But I want to know how much time will it take for execution of this command.

(06 Jun '19, 11:30) Puranjay

I am getting "debug: Creating and writing a metatile to /var/lib/mod_tile/ajt/0/0/0/0/0/0.meta" in console.

(06 Jun '19, 11:31) Puranjay

Strictly speaking, "renderd -f -c /usr/local/etc/renderd.conf" will never "finish executing" because it's a server that sits there until you tell it to stop (when running interactively like this, usually by pressing ^c).

(06 Jun '19, 11:46) SomeoneElse ♦
showing 5 of 6 show 1 more comments

After you've done that, renderd will just sit there waiting for connections. When you request a local tile, you'll see "START TILE" and "END TILE" in the output. The second line tells you how long it took to do that tile. Tiles at different zoom levels will take different amounts of time to render.

permanent link
This answer is marked "community wiki".

answered 06 Jun '19, 10:24

SomeoneElse's gravatar image

SomeoneElse ♦
accept rate: 15%

I will se "Start tile" and "End Tile" after execution of this command..Am I right?

(06 Jun '19, 10:52) Puranjay

Here's an example from a server of mine . I zoomed in so that the web browser asked for some tiles, and the results (in my case from syslog as that's where renderd output is going) are as follows:

renderaccount@map:~$ sudo tail -f /var/log/syslog | grep " TILE "
[sudo] password for ajtown:
Jun  6 12:04:44 map renderd[1727]: DEBUG: START TILE ajt 13 4072-4079 2632-2639, age 10000.12 days
Jun  6 12:04:44 map renderd[1727]: DEBUG: START TILE ajt 13 4064-4071 2632-2639, age 10000.12 days
Jun  6 12:04:49 map renderd[1727]: DEBUG: DONE TILE ajt 13 4072-4079 2632-2639 in 5.013 seconds
Jun  6 12:04:50 map renderd[1727]: DEBUG: DONE TILE ajt 13 4064-4071 2632-2639 in 5.491 seconds

So rerendering those two tiles at zoom 13 took 5 seconds each.

(06 Jun '19, 11:09) SomeoneElse ♦

If I will run this command before "renderd -f -c /usr/local/etc/renderd.conf" it won't show anything because tiles are still being loaded.

(06 Jun '19, 11:50) Puranjay

I don't understand that last comment?

(06 Jun '19, 11:52) SomeoneElse ♦

Puranjay, I have the feeling you are under the misconception that renderd is loading all the possible tiles from somewhere in one go. Instead it is sort of a server that renders (builds) a tile at at time from the data file on request as soon as it is asked to supply one to e.g. a web server. (I hope I explained that right, I am by no means an expert on this)

(06 Jun '19, 12:55) TZorn

Yes I was thinking that rendered is loading all the tiles. So what command should be used for viewing the tiles?

(06 Jun '19, 13:25) Puranjay

Point a web browser at the web server that has mod_tile installed, which passes the tile render request to renderd.

The relevant line in the switch2osm guide is the one that says "Point a web browser at: http://yourserveripaddress/hot/0/0/0.png".

(06 Jun '19, 13:32) SomeoneElse ♦

ok got it. Where can I change the zoom level for tile?

(06 Jun '19, 13:37) Puranjay

In the web browser. https://switch2osm.org/manually-building-a-tile-server-18-04-lts/ suggests "In order to see tiles, we’ll cheat and use an html file “sample_leaflet.html” in mod_tile’s “extras” folder".

(06 Jun '19, 14:34) SomeoneElse ♦
showing 5 of 9 show 4 more comments
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 06 Jun '19, 06:59

question was seen: 462 times

last updated: 06 Jun '19, 14:34

powered by OSQA