I think the memory problems occured during the <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">osm-</span><span class="il" style="background-color:rgb(255,255,204);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">history</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">-importer [1] process</span><br>
<br>Some people were successfull in building the database for limited areas, but France is extract is huge in comparison. <div>Is there a way to limit RAM usage for such large files during import ?<br><br>[1] <a href="https://github.com/MaZderMind/osm-history-renderer">https://github.com/MaZderMind/osm-history-renderer</a><br>
<br><div class="gmail_quote">2012/7/16 Jochen Topf <span dir="ltr"><<a href="mailto:jochen@remote.org" target="_blank">jochen@remote.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Jul 16, 2012 at 01:28:50PM +0200, Aurélien FILEZ wrote:<br>
> I'm searching history statistics of the french territory contributions in<br>
> order to make some graphics about :<br>
> - Number of "named roads"<br>
> - Numbers of "house numbers"<br>
> - Number of kilometers of different types of roads (highway, primary,<br>
> secondary, tertiary, residential).<br>
><br>
> I tried OSMIUM with the last avalable france.osh.pbf, but data are too many<br>
> data and cause bad allocs errors on a 8 Gb memory server.<br>
<br>
</div>What exactly did you do?<br>
<br>
If you use the RangeFromHistory handler to filter out one specific date in the<br>
history and then the Statistics handler, you should be able to generate some<br>
statistics, though not exactly the kind of statistics you are asking for. But<br>
you can use the Statistics handler as a model on how to write your own.<br>
<br>
You'd have to tun the thing several times, each time filtering out a different<br>
date with RangeFromHistory.<br>
<br>
Or you write your own handler that directyl works on history data, but thats<br>
a bit more tricky.<br>
<br>
In any case it should not need 8GB for all of this. You might have used the<br>
MmapAnon node storage instead of SparseTable handler. This explains the<br>
different options:<br>
<a href="http://wiki.openstreetmap.org/wiki/Osmium/Storing_Node_Positions" target="_blank">http://wiki.openstreetmap.org/wiki/Osmium/Storing_Node_Positions</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Jochen<br>
--<br>
Jochen Topf  <a href="mailto:jochen@remote.org">jochen@remote.org</a>  <a href="http://www.remote.org/jochen/" target="_blank">http://www.remote.org/jochen/</a>  <a href="tel:%2B49-721-388298" value="+49721388298">+49-721-388298</a><br>

</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><a href="http://wiki.openstreetmap.org/wiki/User:Ab_fab" target="_blank">ab_fab</a><br>"Il n'y a pas de pas perdus"<br>
</div>