[Tilesathome] Memory requirement of T at H

mkalkal mkalkal at interia.pl
Thu Dec 20 20:20:36 GMT 2007


Hi

Today inkscape failed on 2099,1354 z12.
The SVG file output-31396-z12.svg is  about 35M . When I tried to open 
it with inkscape memory usage grows to about 2,5G and process dies,
but when I load the file with Iceape web browser everything works 
(except for loading time it took more than hour ). Memory usage of
iceape never exceeded 600M. So it is possible to render big SVG files 
without a lot of memory.

Regards,
Maciek Kaliszewski

Brent Easton wrote:
> Hi Maciek,
>
> This is known as the T at H Unrenderability theorem:
>
> For any given computer system, there exists a set of tiles that are too complex for that system to render in real time.
>
> There are a couple of approaches to this problem:
>
> 1. I have working with Dodi on reducing the size of the SVG files generated. The files are bloated out with a lot of extra stuff that is outside of the render box and so never get's rendered. It get's pulled in along with the place names to handle generation of names accross tile borders. The use of the smart-linecaps feature for nearly every single line generated also blows out the size and complexity by a factor of at least 2, especially in the lowzoom processing. If we can reduce the size of the generated SVG, then Inkscape will be better able to process it. Dodi seems to be tied up at the moment, so this work has stalled.
>
> 2. I have added the option to use Batik instead of Inkscape to render tiles. You may have better luck with Batik in extreme situations. Unfortunately, there is a bug in Osmarender that causes Batik to fail occasionally. Still working on this one also.
>
> 3. A more general solution is to use Osmosis to cut the dowloaded OSM file into smaller strips for processing the higher zoom levels. This will result in smalled SVG's. Since the higher zoom levels process the SVG's in strips anyway, nothing is lost. This requires a mod to Osmosis and much work on tilesgen.pl and I just haven't had a chance to work on it.
>
>
> Hopefully, after Christmas, we can get something happening. Options 1 and 2 are in hand. Any assistance offered with option 3 would be appreciated.
>
>
> Regards,
> Brent.
>
>
>
> *********** REPLY SEPARATOR  ***********
>
> On 19/12/2007 at 1:13 AM mkalkal  wrote:
>
>   
>> Hi,
>>
>>   My computer has 1GB of RAM and 3GB of swap,but  when I was given to 
>> render such tiles :
>> Doing tileset 1171,1547 (zoom 12)
>> Doing tileset 2103,1347 (zoom 12)
>> inkscape was  killed with out of memory message. My current system is 
>> Debian lenny and i686 kernel.
>> I wonder if I should to switch to amd64 kernel in order to give inkscape 
>> more virtual space ?
>> Simply adding more swap may not work.
>> What do you think ?
>>
>>
>> Maciek Kaliszewski
>>
>>
>>
>> ---------------------------------------------------------------------- 	 
>> Najlepsze zdjecia listopada!
>> Zobacz >> http://link.interia.pl/f1ca8
>>
>>
>> _______________________________________________
>> Tilesathome mailing list
>> Tilesathome at openstreetmap.org
>> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/tilesathome
>>
>>
>> -- 
>> No virus found in this incoming message.
>> Checked by AVG Free Edition. 
>> Version: 7.5.503 / Virus Database: 269.17.4/1188 - Release Date: 17/12/2007 2:13 PM
>>     
>
>
> ____________________________________________________________
> Brent Easton                       
> Analyst/Programmer                               
> University of Western Sydney                                   
> Email: b.easton at uws.edu.au
>
>
>
>   



----------------------------------------------------------------------
Wejdz do swiata wojny wampirow!
http://link.interia.pl/f1cb4





More information about the Tilesathome mailing list