The load_avg is being read for every request, but it's only actually used if 
the tile is old or missing. 87% of requests that reach apache on tile.osm.org 
are for current tiles. Skip load_avg in that case. Saves about 1.2% Apache CPU 
time (a few micros per tile).
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/mod_tile/pull/521

-- Commit Summary --

  * only read the load average for tiles that are old or missing

-- File Changes --

    M src/mod_tile.c (9)

-- Patch Links --

https://github.com/openstreetmap/mod_tile/pull/521.patch
https://github.com/openstreetmap/mod_tile/pull/521.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/pull/521
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/mod_tile/pull/[email protected]>
_______________________________________________
Tile-serving mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/tile-serving

Reply via email to