[Tile-serving] [openstreetmap/osm2pgsql] Improved debug information about memory use of Lua (PR #1696)
mmd
notifications at github.com
Sun Jul 24 19:15:06 UTC 2022
Right. I think it doesn't really matter if you run this analysis inside your Lua code, or a custom allocator, both options are feasible.
Regarding controlling the maximum memory consumed by Lua (and thereby simulating out of memory conditions), I could trigger a segfault in `push_osm_object_to_lua_stack` --> lua_pushstring didn't get any memory, and eventually called abort().
I'm not sure how relevant this is in real life. In case you want to take a look for yourself, I've uploaded the prototype code here: https://github.com/mmd-osm/osm2pgsql/tree/prototype/customalloc
Anyway, that's probably a topic for another issue...
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1696#issuecomment-1193377588
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/1696/c1193377588 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220724/bd3e4513/attachment.htm>
More information about the Tile-serving
mailing list