openstreetmap / openstreetmap/mod_tile
get_load_avg is invalid
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 318
- Forks
- 199
- PR merge metrics
- No merged PRs in 30d
Description
This issue is related to question.
get_load_avg on linux:
FILE *loadavg = fopen("/proc/loadavg", "r");
fscanf(loadavg, "%lf", &avg);
return avg;
Renderer will sleep because he used a lot of cpu time by itself. This is funny, please fix it.
Thank you.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the codebase for the get_load_avg entry point and read its callers in the renderer. Reproduce or inspect the Linux load-average behavior described in the issue, then verify that renderer throttling does not sleep because of CPU time consumed by the renderer itself.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, linux
- Domain
- backend, performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100